bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static void main(String[] args) { try { String name = "/javax/swing/text/html/default.css"; InputStream in = CSSScanner.class.getResourceAsStream(name); BufferedInputStream bin = new BufferedInputStream(in); InputStreamReader r = new InputStreamReader(bin); CSSParser...
public static void main(String[] args) { try { String name = "/javax/swing/text/html/default.css"; InputStream in = CSSScanner.class.getResourceAsStream(name); BufferedInputStream bin = new BufferedInputStream(in); InputStreamReader r = new InputStreamReader(bin); CSSParser...
21,753
public static void main(String[] args) { try { String name = "/javax/swing/text/html/default.css"; InputStream in = CSSScanner.class.getResourceAsStream(name); BufferedInputStream bin = new BufferedInputStream(in); InputStreamReader r = new InputStreamReader(bin); CSSParser...
public static void main(String[] args) { try { String name = "/javax/swing/text/html/default.css"; InputStream in = CSSScanner.class.getResourceAsStream(name); BufferedInputStream bin = new BufferedInputStream(in); InputStreamReader r = new InputStreamReader(bin); CSSParser...
21,754
public void startStatement(String selector) { System.out.println("startStatement: " + selector); }
public void startStatement(Selector[] selector) { System.out.println("startStatement: " + selector); }
21,755
public void startStatement(String selector) { System.out.println("startStatement: " + selector); }
public void startStatement(String selector) { System.out.print("startStatement: "); for (int i = 0; i < selector.length; i++) { System.out.print(selector[i]); if (i < selector.length - 1) System.out.print(','); else System.out.println(); } }
21,756
private boolean parseDeclaration() throws IOException { // Maybe fetch one DELIM. int token = readToken(); if (token == CSSScanner.DELIM) token = readToken(); boolean ret = true; // Parse property String property = null; if (token == CSSScanner.IDENT) { property = new String(s...
private boolean parseDeclaration() throws IOException { // Maybe fetch one DELIM. int token = readToken(); if (token == CSSScanner.DELIM) token = readToken(); boolean ret = true; // Parse property String property = null; if (token == CSSScanner.IDENT) { property = new String(s...
21,757
private boolean parseRuleset() throws IOException { StringBuilder selector = new StringBuilder(); parseSelector(selector); callback.startStatement(selector.toString()); // Read any number of whitespace. int token; do { token = readToken(); } while (token == CSSScanner.S); boo...
private boolean parseRuleset() throws IOException { StringBuilder selector = new StringBuilder(); parseSelector(selector); StringTokenizer selSplitter = new StringTokenizer(selector.toString(), ","); Selector[] sels = new Selector[selSplitter.countTokens()]; for (int i = 0; selSplitter.hasMoreTokens(); i...
21,758
private boolean parseValue(StringBuilder s) throws IOException { // FIXME: Handle block and ATKEYWORD. return parseAny(s); }
private boolean parseValue(StringBuilder s) throws IOException { // FIXME: Handle block and ATKEYWORD. boolean success = parseAny(s); while (parseAny(s)); return success; }
21,759
void startStatement(String selector);
void startStatement(Selector[] selector);
21,760
private final char safeGetChar (ResourceBundle bundle, String name, char def) { String r = null; if (bundle != null) { try { r = bundle.getString(name); } catch (MissingResourceException x) { } } if (r == null || r.length() < 1) return def; return r.charAt(0); }
private char safeGetChar(ResourceBundle bundle, String name, char def) { String r = null; if (bundle != null) { try { r = bundle.getString(name); } catch (MissingResourceException x) { } } if (r == null || r.length() < 1) return def; return r.charAt(0); }
21,761
private final String safeGetString (ResourceBundle bundle, String name, String def) { if (bundle != null) { try { return bundle.getString(name); } catch (MissingResourceException x) { } } return def; }
private String safeGetString(ResourceBundle bundle, String name, String def) { if (bundle != null) { try { return bundle.getString(name); } catch (MissingResourceException x) { } } return def; }
21,762
private final int extractAndNormalizeSample(int pixel, int component) { int value = extractAndScaleSample(pixel, component); if (hasAlpha() && isAlphaPremultiplied()) value = value*255/getAlpha(pixel); return value; }
private int extractAndNormalizeSample(int pixel, int component) { int value = extractAndScaleSample(pixel, component); if (hasAlpha() && isAlphaPremultiplied()) value = value*255/getAlpha(pixel); return value; }
21,763
private final int extractAndScaleSample(int pixel, int component) { int field = pixel & getMask(component); int to8BitShift = 8 - shifts[component] - getComponentSize(component); return (to8BitShift>0) ? (field << to8BitShift) : (field >>> (-to8BitShift)); }
private int extractAndScaleSample(int pixel, int component) { int field = pixel & getMask(component); int to8BitShift = 8 - shifts[component] - getComponentSize(component); return (to8BitShift>0) ? (field << to8BitShift) : (field >>> (-to8BitShift)); }
21,764
private final int value16ToField(int val, int component) { int toFieldShift = getComponentSize(component) + shifts[component] - 16; return (toFieldShift>0) ? (val << toFieldShift) : (val >>> (-toFieldShift)); }
private int value16ToField(int val, int component) { int toFieldShift = getComponentSize(component) + shifts[component] - 16; return (toFieldShift>0) ? (val << toFieldShift) : (val >>> (-toFieldShift)); }
21,765
private final int valueToField(int val, int component, int highBit) { int toFieldShift = getComponentSize(component) + shifts[component] - highBit; int ret = (toFieldShift>0) ? (val << toFieldShift) : (val >>> (-toFieldShift)); return ret & getMask(component); }
private int valueToField(int val, int component, int highBit) { int toFieldShift = getComponentSize(component) + shifts[component] - highBit; int ret = (toFieldShift>0) ? (val << toFieldShift) : (val >>> (-toFieldShift)); return ret & getMask(component); }
21,766
public static TypeCode type() { ORB orb = Restricted_ORB.Singleton; return orb.create_alias_tc(id(), "VersionSpec", orb.create_string_tc(0)); }
public static TypeCode type() { ORB orb = OrbRestricted.Singleton; return orb.create_alias_tc(id(), "VersionSpec", orb.create_string_tc(0)); }
21,767
public static TypeCode type() { if (typecode == null) { ORB orb = Restricted_ORB.Singleton; typecode = orb.create_value_box_tc(id(), "StringValue", tString); } return typecode; }
public static TypeCode type() { if (typecode == null) { ORB orb = OrbRestricted.Singleton; typecode = orb.create_value_box_tc(id(), "StringValue", tString); } return typecode; }
21,768
public void paintTrack(Graphics g) { Color shadowColor = MetalLookAndFeel.getControlShadow(); if (slider.getOrientation() == JSlider.HORIZONTAL) { int trackX = trackRect.x; int trackY = trackRect.y + (trackRect.height - getTrackWidth()) / 2; int trackW = trackRect.width - 1; int ...
public void paintTrack(Graphics g) { Color shadowColor = MetalLookAndFeel.getControlShadow(); if (slider.getOrientation() == JSlider.HORIZONTAL) { int trackX = trackRect.x; int trackY = trackRect.y + (trackRect.height - getTrackWidth()) / 2; int trackW = trackRect.width - 1; int ...
21,769
public void paintTrack(Graphics g) { Color shadowColor = MetalLookAndFeel.getControlShadow(); if (slider.getOrientation() == JSlider.HORIZONTAL) { int trackX = trackRect.x; int trackY = trackRect.y + (trackRect.height - getTrackWidth()) / 2; int trackW = trackRect.width - 1; int ...
public void paintTrack(Graphics g) { Color shadowColor = MetalLookAndFeel.getControlShadow(); if (slider.getOrientation() == JSlider.HORIZONTAL) { int trackX = trackRect.x; int trackY = trackRect.y + (trackRect.height - getTrackWidth()) / 2; int trackW = trackRect.width - 1; int ...
21,770
public Object clone() throws CloneNotSupportedException { if (this instanceof Cloneable) return super.clone(); else throw new CloneNotSupportedException(); }
protected Object clone() throws CloneNotSupportedException { if (this instanceof Cloneable) return super.clone(); else throw new CloneNotSupportedException(); }
21,771
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; int day = (int) (localTime / (24 * 60 * 60 * 1000L)); int millisInDay = (int) (localTime % (24 * 60 ...
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; int day = (int) (localTime / (24 * 60 * 60 * 1000L)); int millisInDay = (int) (localTime % (24 * 60 ...
21,773
protected synchronized void computeTime() { int era = isSet[ERA] ? fields[ERA] : AD; int year = isSet[YEAR] ? fields[YEAR] : 1970; if (era == BC) year = 1 - year; int[] daysOfYear = getDayOfYear(year); int hour = 0; if (isSet[HOUR_OF_DAY]) hour = fields[HOUR_OF_DAY]; else if (isSet[HOUR]) { hour = fields[...
protected synchronized void computeTime() { int era = isSet[ERA] ? fields[ERA] : AD; int year = isSet[YEAR] ? fields[YEAR] : 1970; if (era == BC) year = 1 - year; int[] daysOfYear = getDayOfYear(year); int hour = 0; if (isSet[HOUR_OF_DAY]) hour = fields[HOUR_OF_DAY]; else if (isSet[HOUR]) { hour = fields[...
21,774
private long getLinearTime(int year, int dayOfYear, int millis) { // The 13 is the number of days, that were omitted in the Gregorian // Calender until the epoch. // We shift right by 2 instead of dividing by 4, to get correct // results for negative years (and this is even more efficient). int julianDay = ((year...
private long getLinearTime(int year, int dayOfYear, int millis) { // The 13 is the number of days, that were omitted in the Gregorian // Calender until the epoch. // We shift right by 2 instead of dividing by 4, to get correct // results for negative years (and this is even more efficient). int julianDay = ((year...
21,775
public static TypeCode type() { recordTypeCode r = new recordTypeCode(TCKind.tk_alias); r.setName("PolicyErrorCode"); r.setId(id()); r.setContentType(new primitiveTypeCode(TCKind.tk_short)); return r; }
public static TypeCode type() { RecordTypeCode r = new RecordTypeCode(TCKind.tk_alias); r.setName("PolicyErrorCode"); r.setId(id()); r.setContentType(new primitiveTypeCode(TCKind.tk_short)); return r; }
21,776
public static TypeCode type() { recordTypeCode r = new recordTypeCode(TCKind.tk_alias); r.setName("PolicyErrorCode"); r.setId(id()); r.setContentType(new primitiveTypeCode(TCKind.tk_short)); return r; }
public static TypeCode type() { recordTypeCode r = new recordTypeCode(TCKind.tk_alias); r.setName("PolicyErrorCode"); r.setId(id()); r.setContentType(new PrimitiveTypeCode(TCKind.tk_short)); return r; }
21,777
public MenuItem() { }
public MenuItem() { }
21,778
public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); enableEvents(AWTEvent.ACTION_EVENT_MASK); }
addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); enableEvents(AWTEvent.ACTION_EVENT_MASK); }
21,779
public void addNotify() { if (peer != null) peer = getToolkit().createMenuItem(this); }
public void addNotify() { if (peer != null) peer = getToolkit().createMenuItem(this); }
21,780
public void deleteShortcut() { shortcut = null; }
deleteShortcut() { shortcut = null; }
21,781
public void disable() { setEnabled(false); }
public void disable() { setEnabled(false); }
21,782
protected final void disableEvents(long events) { eventMask &= ~events; }
disableEvents(long events) { eventMask &= ~events; }
21,783
void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); }
void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); }
21,784
void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); }
void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); if (!e.isConsumed ()) ((Menu) getParent ()).processEvent (e); }
21,785
public void enable(boolean enabled) { setEnabled(enabled); }
public void enable(boolean enabled) { setEnabled(enabled); }
21,786
protected final void enableEvents(long events) { eventMask |= events; // TODO: see comment in Component.enableEvents(). }
enableEvents(long events) { eventMask |= events; // TODO: see comment in Component.enableEvents(). }
21,787
public String getActionCommand() { return (actionCommand); }
public String getActionCommand() { return (actionCommand); }
21,788
public MenuShortcut getShortcut() { return (shortcut); }
public MenuShortcut getShortcut() { return (shortcut); }
21,789
public boolean isEnabled() { return (enabled); }
public boolean isEnabled() { return (enabled); }
21,790
public String paramString() { return ("label=" + label + ",enabled=" + enabled + ",actionCommand=" + actionCommand + "," + super.paramString()); }
public String paramString() { return ("label=" + label + ",enabled=" + enabled + ",actionCommand=" + actionCommand + "," + super.paramString()); }
21,791
protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); }
processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); }
21,792
public synchronized void removeActionListener(ActionListener l) { action_listeners = AWTEventMulticaster.remove(action_listeners, l); }
removeActionListener(ActionListener l) { action_listeners = AWTEventMulticaster.remove(action_listeners, l); }
21,793
public void setActionCommand(String actionCommand) { this.actionCommand = actionCommand; }
setActionCommand(String actionCommand) { this.actionCommand = actionCommand; }
21,794
public synchronized void setEnabled(boolean enabled) { if (enabled == this.enabled) return; this.enabled = enabled; if (peer != null) { MenuItemPeer mp = (MenuItemPeer) peer; mp.setEnabled(enabled); } }
public synchronized void setEnabled(boolean enabled) { if (enabled == this.enabled) return; this.enabled = enabled; if (peer != null) { MenuItemPeer mp = (MenuItemPeer) peer; mp.setEnabled(enabled); } }
21,795
public synchronized void setLabel(String label) { this.label = label; if (peer != null) { MenuItemPeer mp = (MenuItemPeer) peer; mp.setLabel(label); } }
setLabel(String label) { this.label = label; if (peer != null) { MenuItemPeer mp = (MenuItemPeer) peer; mp.setLabel(label); } }
21,796
public synchronized void setLabel(String label) { this.label = label; if (peer != null) { MenuItemPeer mp = (MenuItemPeer) peer; mp.setLabel(label); } }
public synchronized void setLabel(String label) { this.label = label; if (peer != null) { MenuItemPeer mp = (MenuItemPeer) peer; mp.setLabel(label); } }
21,797
public void setShortcut(MenuShortcut shortcut) { this.shortcut = shortcut; }
setShortcut(MenuShortcut shortcut) { this.shortcut = shortcut; }
21,799
protected final VmThreadQueueEntry addToQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry, boolean ignorePriority) { entry.setQueue(this); if (queue == null) { return entry; } else if (ignorePriority) { VmThreadQueueEntry t = queue; while (t.ne...
protected final VmThreadQueueEntry addToQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry, boolean ignorePriority) { entry.setQueue(this); if (queue == null) { return entry; } else if (ignorePriority) { VmThreadQueueEntry t = queue; while (t.ne...
21,800
protected final VmThreadQueueEntry addToQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry, boolean ignorePriority) { entry.setQueue(this); if (queue == null) { return entry; } else if (ignorePriority) { VmThreadQueueEntry t = queue; while (t.ne...
protected final VmThreadQueueEntry addToQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry, boolean ignorePriority) { entry.setQueue(this); if (queue == null) { return entry; } else if (ignorePriority) { VmThreadQueueEntry t = queue; while (t.ne...
21,801
protected final VmThreadQueueEntry removeFromQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry) { if (queue == null) { return queue; } else if (entry == null) { return queue; } else if (queue == entry) { VmThreadQueueEntry result = entry.next; ...
static VmThreadQueueEntry removeFromQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry) { if (queue == null) { return queue; } else if (entry == null) { return queue; } else if (queue == entry) { VmThreadQueueEntry result = entry.next; ...
21,802
protected final VmThreadQueueEntry removeFromQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry) { if (queue == null) { return queue; } else if (entry == null) { return queue; } else if (queue == entry) { VmThreadQueueEntry result = entry.next; ...
protected final VmThreadQueueEntry removeFromQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry) { if (queue == null) { return queue; } else if (entry == null) { return queue; } else if (queue == entry) { VmThreadQueueEntry result = entry.next; ...
21,803
public void repaint(long tm, int x, int y, int width, int height) {}
public void repaint(long tm, int x, int y, int width, int height) { Component p = comp.getParent(); if (p != null) p.repaint(tm, x + comp.getX(), y + comp.getY(), width, height); }
21,804
public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc...
public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc...
21,805
public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc...
public void run() { running = true; try { sleep(init_delay); while (running) { sleep(delay); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catch (...
21,806
public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc...
public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc...
21,807
public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc...
public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc...
21,808
public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc...
public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeats) break; } running = false; } catch (Ex...
21,809
public static boolean getLogTimers() { return verbose; }
public static boolean getLogTimers() { return logTimers; }
21,810
public void setInitialDelay(int initialDelay) { init_delay = initialDelay; }
public void setInitialDelay(int i) { init_delay = initialDelay; }
21,811
public void setInitialDelay(int initialDelay) { init_delay = initialDelay; }
public void setInitialDelay(int initialDelay) { initialDelay = i; }
21,812
public static void setLogTimers(boolean flag) { verbose = flag; }
public static void setLogTimers(boolean lt) { verbose = flag; }
21,813
public static void setLogTimers(boolean flag) { verbose = flag; }
public static void setLogTimers(boolean flag) { logTimers = lt; }
21,814
public PseudoInstructions(final Map labels) { super(labels); }
public PseudoInstructions(final Map labels) { super(labels); }
21,815
public X86Support(Assembler assembler, List instructions, Map labels) { this.modules = new ArrayList(); this.assembler = assembler; this.instructions = instructions; this.labels = labels; modules.add(new X86Core(labels)); modules.add(assembler.getPseudo()); }
public X86Support(Assembler assembler, List instructions, Map labels, Map constants) { this.modules = new ArrayList(); this.assembler = assembler; this.instructions = instructions; this.labels = labels; modules.add(new X86Core(labels)); modules.add(assembler.getPseudo()); ...
21,816
public X86Support(Assembler assembler, List instructions, Map labels) { this.modules = new ArrayList(); this.assembler = assembler; this.instructions = instructions; this.labels = labels; modules.add(new X86Core(labels)); modules.add(assembler.getPseudo()); }
public X86Support(Assembler assembler, List instructions, Map labels) { this.modules = new ArrayList(); this.assembler = assembler; this.instructions = instructions; this.labels = labels; modules.add(new X86Core(labels, constants)); modules.add(assembler.getPseudo()); }
21,817
protected Flags runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", //"-b", // Ignore white space change "-E", // Ignore changes due ...
protected Flags runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", //"-b", // Ignore white space change "-E", // Ignore changes due ...
21,818
public void mouseWheelMoved(MouseWheelEvent event) { // TODO: Implement this properly. }
public void mouseWheelMoved(MouseWheelEvent e) { // TODO: Implement this properly. }
21,819
protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizont...
protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizont...
21,821
protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizont...
protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizont...
21,822
protected void uninstallListeners(JComponent c) { JScrollPane sp = (JScrollPane) c; sp.removePropertyChangeListener(spPropertyChangeListener); sp.getHorizontalScrollBar().getModel() .removeChangeListener(hsbChangeListener); sp.getVerticalScrollBar().getModel() ...
protected void uninstallListeners(JComponent c) { JScrollPane sp = (JScrollPane) c; sp.removePropertyChangeListener(spPropertyChangeListener); sp.getHorizontalScrollBar().getModel() .removeChangeListener(hsbChangeListener); sp.getVerticalScrollBar().getModel() ...
21,823
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED & COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED & COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ...
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED & COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ...
21,824
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED & COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED & COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ...
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED & COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ...
21,825
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED & COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED & COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ...
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED & COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED & COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ...
21,826
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED & COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED & COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ...
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED & COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED & COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ...
21,827
public void addImage(Image image, int id) { MediaEntry e = new MediaEntry(); e.id = id; e.image = image; e.next = head; head = e; // Start tracking image status. target.checkImage(image, e); }
public void addImage(Image image, int id) { MediaEntry e = new MediaEntry(); e.id = id; e.image = image; e.next = head; head = e; // Start tracking image status. int flags = target.checkImage(image, e); e.imageUpdate(image, flags, -1, -1, -1, -1); }
21,828
public CloneNotSupportedException() { super(); }
public CloneNotSupportedException() { super(); }
21,829
public void activateFrame(JInternalFrame frame) { // TODO } // activateFrame()
public void activateFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(frame); else { try { frame.setSelected(true); } catch (PropertyVetoException e) { } } frame.toFront(); // TODO } // activateFrame()
21,830
public void beginDraggingFrame(JComponent component) { // TODO } // beginDraggingFrame()
public void beginDraggingFrame(JComponent component) { if (component instanceof JDesktopIcon) pane = ((JDesktopIcon) component).getInternalFrame().getDesktopPane(); else pane = ((JInternalFrame) component).getDesktopPane(); if (pane == null) return; dragCache = component.getBounds(); if (! (pane instanceof JDesktopP...
21,831
public void beginResizingFrame(JComponent component, int direction) { // TODO } // beginResizingFrame()
public void beginResizingFrame(JComponent component, int direction) { pane = ((JInternalFrame) component).getDesktopPane(); if (pane == null) return; dragCache = component.getBounds(); if (! (pane instanceof JDesktopPane)) currentDragMode = JDesktopPane.LIVE_DRAG_MODE; else currentDragMode = ((JDesktopPane) pane).get...
21,832
public void closeFrame(JInternalFrame frame) { // TODO } // closeFrame()
public void closeFrame(JInternalFrame frame) { Container c = frame.getParent(); frame.doDefaultCloseAction(); if (c != null) { if (frame.isIcon()) c.remove(frame.getDesktopIcon()); else c.remove(frame); c.repaint(); } // TODO } // closeFrame()
21,833
public void deactivateFrame(JInternalFrame frame) { // TODO } // deactivateFrame()
public void deactivateFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); if (p != null) { if (p.getSelectedFrame() == frame) p.setSelectedFrame(null); } else { try { frame.setSelected(false); } catch (PropertyVetoException e) { } } // TODO } // deactivateFrame()
21,834
public void deiconifyFrame(JInternalFrame frame) { // TODO } // deiconifyFrame()
public void deiconifyFrame(JInternalFrame frame) { JDesktopIcon icon = frame.getDesktopIcon(); Container c = icon.getParent(); removeIconFor(frame); c.add(frame); frame.setVisible(true); if (! frame.isSelected()) { JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(frame); else { try { frame....
21,835
public void dragFrame(JComponent component, int newX, int newY) { // TODO } // dragFrame()
public void dragFrame(JComponent component, int newX, int newY) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { } else { Rectangle b = component.getBounds(); if (component instanceof JDesktopIcon) component.setBounds(newX, newY, b.width, b.height); else setBoundsForFrame((JInternalFrame) component, newX, n...
21,836
public void endDraggingFrame(JComponent component) { // TODO } // endDraggingFrame()
public void endDraggingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); // TODO } // endDraggingFrame()
21,837
public void endResizingFrame(JComponent component) { // TODO } // endResizingFrame()
public void endResizingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); // TODO } // endResizingFrame()
21,838
protected Rectangle getBoundsForIconOf(JInternalFrame frame) { return null; // TODO } // getBoundsForIconOf()
protected Rectangle getBoundsForIconOf(JInternalFrame frame) { return null; // TODO } // getBoundsForIconOf()
21,839
protected Rectangle getPreviousBounds(JInternalFrame frame) { return null; // TODO } // getPreviousBounds()
protected Rectangle getPreviousBounds(JInternalFrame frame) { return null; // TODO } // getPreviousBounds()
21,840
public void iconifyFrame(JInternalFrame frame) { // TODO } // iconifyFrame()
public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { } } Container c = frame.getParent()...
21,841
public void maximizeFrame(JInternalFrame frame) { // TODO } // maximizeFrame()
public void maximizeFrame(JInternalFrame frame) { if (frame.isIcon()) return; frame.setNormalBounds(frame.getBounds()); Container p = frame.getParent(); if (p != null) { Rectangle pBounds = p.getBounds(); Insets insets = p.getInsets(); pBounds.width -= insets.left + insets.right; pBounds.height -= insets.top + ins...
21,842
public void minimizeFrame(JInternalFrame frame) { // TODO } // minimizeFrame()
public void minimizeFrame(JInternalFrame frame) { Rectangle normalBounds = frame.getNormalBounds(); JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(frame); else { try { frame.setSelected(true); } catch (PropertyVetoException e) { } } setBoundsForFrame(frame, normalBounds.x, normalBounds.y...
21,843
public void openFrame(JInternalFrame frame) { // TODO } // openFrame()
public void openFrame(JInternalFrame frame) { Container c = frame.getParent(); if (c == null) c = frame.getDesktopIcon().getParent(); if (c == null) return; c.remove(frame.getDesktopIcon()); c.add(frame); frame.setVisible(true); // TODO } // openFrame()
21,844
protected void removeIconFor(JInternalFrame frame) { // TODO } // removeIconFor()
protected void removeIconFor(JInternalFrame frame) { JDesktopIcon icon = frame.getDesktopIcon(); Container c = icon.getParent(); if (c != null && icon != null) c.remove(icon); // TODO } // removeIconFor()
21,845
public void resizeFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { // TODO } // resizeFrame()
public void resizeFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { dragCache.setBounds(newX, newY, newWidth, newHeight); dragCache = findMinimum(dragCache, component); if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { } else setBoundsForFrame(component, dragCache.x, dragCache.y...
21,846
public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { // TODO } // setBoundsForFrame()
public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { // TODO } // setBoundsForFrame()
21,847
protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) { // TODO } // setPreviousBounds()
protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) { frame.setNormalBounds(rect); // TODO } // setPreviousBounds()
21,848
protected void setWasIcon(JInternalFrame frame, Boolean value) { // TODO } // setWasIcon()
protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); // TODO } // setWasIcon()
21,849
protected boolean wasIcon(JInternalFrame frame) { return false; // TODO } // wasIcon()
protected boolean wasIcon(JInternalFrame frame) { return false; // TODO } // wasIcon()
21,850
public String getAccessibleDescription() { return null; }
public String getAccessibleDescription() { String result = super.getAccessibleDescription(); if (result == null) result = text; return result; }
21,852
public AccessibleRole getAccessibleRole() { return null; }
public AccessibleRole getAccessibleRole() { return AccessibleRole.TOOL_TIP; }
21,853
public AccessibleContext getAccessibleContext() { return null; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJToolTip(); return accessibleContext; }
21,854
protected String paramString() { return "JToolTip"; }
protected String paramString() { StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",tiptext="); if (text != null); sb.append(text); return sb.toString(); }
21,855
public SummedAreaTable(Raster src) { if (src.getNumBands() != 1) { throw new IllegalArgumentException("src.bands != 1"); } this.width = src.getWidth(); this.height = src.getHeight(); this.table = new float[width * height]; createTable(src); }
public SummedAreaTable(Raster src) { if (src.getNumBands() != 1) { throw new IllegalArgumentException("src.bands != 1"); } this.width = src.getWidth(); this.height = src.getHeight(); this.table = new float[width * height]; createTable(src); }
21,858