bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
22,514
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
22,515
protected void resetMarksAtZero() { if (gapStart != 0) return; positionMarks[0] = 0; }
protected void resetMarksAtZero() { if (gapStart != 0) return; for (int i = 0; i < marks.size(); i++) { Mark m = (Mark) marks.get(i); if (m.mark <= gapEnd) m.mark = 0; } }
22,517
protected void shiftEnd(int newSize) { assert newSize > (gapEnd - gapStart) : "The new gap size must be greater " + "than the old gap size"; int delta = newSize - gapEnd + gapStart; // Update the marks after the gapEnd. adjustPositionsInRange(gapEnd, buffer.lengt...
protected void shiftEnd(int newSize) { assert newSize > (gapEnd - gapStart) : "The new gap size must be greater " + "than the old gap size"; int delta = newSize - gapEnd + gapStart; // Update the marks after the gapEnd. adjustPositionsInRange(gapEnd, buffer.lengt...
22,518
protected void shiftEnd(int newSize) { assert newSize > (gapEnd - gapStart) : "The new gap size must be greater " + "than the old gap size"; int delta = newSize - gapEnd + gapStart; // Update the marks after the gapEnd. adjustPositionsInRange(gapEnd, buffer.lengt...
protected void shiftEnd(int newSize) { assert newSize > (gapEnd - gapStart) : "The new gap size must be greater " + "than the old gap size"; int delta = newSize - gapEnd + gapStart; // Update the marks after the gapEnd. adjustPositionsInRange(gapEnd, buffer.lengt...
22,519
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
22,521
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
22,522
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
22,523
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
22,524
protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; setPositionsInRange(gapEnd, newGapEnd, false); gapEnd = newGapEnd; }
protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; int adjIndex = searchFirst(gapEnd); int count = marks.size(); for (int i = adjIndex; i < count; i++) { ...
22,525
protected void shiftGapStartDown(int newGapStart) { if (newGapStart == gapStart) return; assert newGapStart < gapStart : "The new gap start must be less than the " + "old gap start."; setPositionsInRange(newGapStart, gapStart, false); gapStart = newGapStart; }
protected void shiftGapStartDown(int newGapStart) { if (newGapStart == gapStart) return; assert newGapStart < gapStart : "The new gap start must be less than the " + "old gap start."; int adjIndex = searchFirst(newGapStart); int count = marks.size(); for (int i = adjI...
22,527
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
22,530
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; ResourceBundle bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); Enumeration e = bundle.getKeys(); ArrayList tempList = new ArrayList(); tempList = ...
22,531
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
22,532
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
22,533
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
22,534
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
22,535
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
22,536
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
private static String[] getISOStrings(String tableName) List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName)...
22,537
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
private static String[] getISOStrings(String tableName) { List tempList; ResourceBundle bundle; Enumeration keys; int count = 0; String[] strings; tempList = new ArrayList(); bundle = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation"); keys = ((Hashtable) bundle.getObject(tableName...
22,538
public void updateUI() { setUI((DesktopPaneUI) UIManager.getUI(this)); invalidate(); }
public void updateUI() { setUI((DesktopPaneUI) UIManager.getUI(this)); }
22,539
public synchronized void addHierarchyBoundsListener(HierarchyBoundsListener l) { hierarchyBoundsListener = AWTEventMulticaster.add(hierarchyBoundsListener, l); if (hierarchyBoundsListener != null) enableEvents(AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK); }
public synchronized void addHierarchyBoundsListener(HierarchyBoundsListener l) { hierarchyBoundsListener = AWTEventMulticaster.add(hierarchyBoundsListener, l); if (hierarchyBoundsListener != null) enableEvents(AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK); }
22,541
public boolean areFocusTraversalKeysSet(int id) { if (id < KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS || id > KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); return focusTraversalKeys != null && focusTraversalKeys[id] != null; }
public boolean areFocusTraversalKeysSet(int id) { if (id < KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS || id > KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); return focusTraversalKeys != null && focusTraversalKeys[id] != null; }
22,542
public Rectangle bounds() { return getBounds(); }
public Rectangle bounds() { return getBounds(); }
22,543
public int checkImage(Image image, ImageObserver observer) { return checkImage(image, image.getWidth(observer), image.getHeight(observer), observer); }
public int checkImage(Image image, ImageObserver observer) { return checkImage(image, image.getWidth(observer), image.getHeight(observer), observer); }
22,544
public boolean contains(int x, int y) { return x >= 0 && y >= 0 && x < width && y < height; }
public boolean contains(int x, int y) { return x >= 0 && y >= 0 && x < width && y < height; }
22,545
public Image createImage(ImageProducer producer) { // XXX What if peer or producer is null? return peer.createImage(producer); }
public Image createImage(ImageProducer producer) { if (peer != null) // XXX What if peer or producer is null? return peer.createImage(producer); }
22,546
public void disable() { setEnabled(false); }
public void disable() { setEnabled(false); }
22,548
void dispatchEventImpl(AWTEvent e) { //System.out.println("dispatchEventImpl(" + e + ") on "+ this + ", eventMask=" + eventMask); // Make use of event id's in order to avoid multiple instanceof tests. if (e.id <= ComponentEvent.COMPONENT_LAST && e.id >= ComponentEvent.COMPONENT_FIRST && (componentListener != null |...
void dispatchEventImpl(AWTEvent e) { //System.out.println("dispatchEventImpl(" + e + ") on "+ this + ", eventMask=" + eventMask); // Make use of event id's in order to avoid multiple instanceof tests. if (e.id <= ComponentEvent.COMPONENT_LAST && e.id >= ComponentEvent.COMPONENT_FIRST && (componentListener != null |...
22,549
public void doLayout() { // nothing to do unless we're a container }
public void doLayout() { layout (); // nothing to do unless we're a container }
22,550
public void enable() { setEnabled(true); }
public void enable() { setEnabled(true); }
22,551
public Color getBackground() { if (background != null) return background; return parent == null ? null : parent.getBackground(); }
public Color getBackground() { if (background != null) return background; return parent == null ? SystemColor.window : parent.getBackground(); }
22,552
public Rectangle getBounds() { return new Rectangle(x, y, width, height); }
public Rectangle getBounds() { return new Rectangle(x, y, width, height); }
22,553
public Component getComponentAt(int x, int y) { return contains(x, y) ? this : null; }
public Component getComponentAt(int x, int y) { return contains(x, y) ? this : null; }
22,554
public Container getFocusCycleRootAncestor() { // XXX Implement. throw new Error("not implemented"); }
public Container getFocusCycleRootAncestor() { // XXX Implement. throw new Error("not implemented"); }
22,555
public Set getFocusTraversalKeys(int id) { if (id < KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS || id > KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); Set s = null; if (focusTraversalKeys != null) s = focusTraversalKeys[id]; if (s == null && parent != null) s = parent.get...
public Set getFocusTraversalKeys(int id) { if (id < KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS || id > KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); Set s = null; if (focusTraversalKeys != null) s = focusTraversalKeys[id]; if (s == null && parent != null) s = parent.get...
22,556
public Font getFont() { if (font != null) return font; return parent == null ? null : parent.getFont(); }
public Font getFont() { if (font != null) return font; if (parent != null) return parent.getFont (); else return new Font ("Dialog", Font.PLAIN, 12); }
22,557
public Color getForeground() { if (foreground != null) return foreground; return parent == null ? null : parent.getForeground(); }
public Color getForeground() { if (foreground != null) return foreground; return parent == null ? SystemColor.windowText : parent.getForeground(); }
22,558
public Point getLocation() { return new Point(x, y); }
public Point getLocation() { return new Point(x, y); }
22,559
public Dimension getMinimumSize() { if (minSize == null) minSize = (peer != null ? peer.getMinimumSize() : new Dimension(width, height)); return minSize; }
public Dimension getMinimumSize() { if (minSize == null) minSize = (peer != null ? peer.getMinimumSize() : new Dimension(width, height)); return minSize; }
22,560
public Dimension getPreferredSize() { if (prefSize == null) prefSize = (peer != null ? peer.getPreferredSize() : new Dimension(width, height)); return prefSize; }
public Dimension getPreferredSize() { if (prefSize == null) prefSize = (peer != null ? peer.getPreferredSize() : new Dimension(width, height)); return prefSize; }
22,561
public Dimension getSize() { return new Dimension(width, height); }
public Dimension getSize() { return new Dimension(width, height); }
22,562
public boolean hasFocus() { return isFocusOwner(); }
public boolean hasFocus() { return isFocusOwner(); }
22,563
public void hide() { setVisible(false); }
public void hide() { setVisible(false); }
22,564
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); }
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); }
22,565
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); }
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); }
22,566
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); }
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } } return (flags & (ALLBITS | ABORT | ERROR)) == 0; }
22,567
public boolean inside(int x, int y) { return contains(x, y); }
public boolean inside(int x, int y) { return contains(x, y); }
22,568
public boolean isFocusOwner() { // XXX Implement. throw new Error("not implemented"); }
public boolean isFocusOwner() { // XXX Implement. throw new Error("not implemented"); }
22,569
public void layout() { doLayout(); }
public void layout() { doLayout(); }
22,570
public Component locate(int x, int y) { return getComponentAt(x, y); }
public Component locate(int x, int y) { return getComponentAt(x, y); }
22,571
public Point location() { return getLocation(); }
public Point location() { return getLocation(); }
22,572
public Dimension minimumSize() { return getMinimumSize(); }
public Dimension minimumSize() { return getMinimumSize(); }
22,573
public void move(int x, int y) { setLocation(x, y); }
public void move(int x, int y) { setLocation(x, y); }
22,574
public void nextFocus() { transferFocus(); }
public void nextFocus() { transferFocus(); }
22,575
public void paint(Graphics g) { }
public void paint(Graphics g) { if (!isLightweight() && peer != null) peer.paint(g); }
22,576
public void paintAll(Graphics g) { if (!visible) return; if (peer != null) peer.paint(g); paint(g); }
public void paintAll(Graphics g) { if (!visible) return; if (peer != null) peer.paint(g); paint(g); }
22,577
public Dimension preferredSize() { return getPreferredSize(); }
public Dimension preferredSize() { return getPreferredSize(); }
22,578
protected void processEvent(AWTEvent e) { //System.out.println("processEvent(" + e + ") on " + this); /* Note: the order of these if statements are important. Subclasses must be checked first. Eg. MouseEvent must be checked before ComponentEvent, since a MouseEvent object is also an instance of a Compone...
protected void processEvent(AWTEvent e) { //System.out.println("processEvent(" + e + ") on " + this); /* Note: the order of these if statements are important. Subclasses must be checked first. Eg. MouseEvent must be checked before ComponentEvent, since a MouseEvent object is also an instance of a Compone...
22,579
public synchronized void removeHierarchyBoundsListener(HierarchyBoundsListener l) { hierarchyBoundsListener = AWTEventMulticaster.remove(hierarchyBoundsListener, l); }
public synchronized void removeHierarchyBoundsListener(HierarchyBoundsListener l) { hierarchyBoundsListener = AWTEventMulticaster.remove(hierarchyBoundsListener, l); }
22,580
public void requestFocus() { // If there's no peer then this component can't get the focus. We // treat it as a silent rejection of the request. if (peer != null) peer.requestFocus(); }
public void requestFocus () { if (isDisplayable () && isShowing () && isFocusable ()) { synchronized (getTreeLock ()) { Container parent = getParent (); while (parent != null && !(parent instanceof Window)) parent = parent.getParent (); Window toplevel = (Window) parent; if (toplevel.isFocusableWindow ()) { // If ...
22,581
public void requestFocus() { // If there's no peer then this component can't get the focus. We // treat it as a silent rejection of the request. if (peer != null) peer.requestFocus(); }
public void requestFocus() { // If there's no peer then this component can't get the focus. We // treat it as a silent rejection of the request. if (peer != null) peer.requestFocus (); else { EventQueue eq = Toolkit.getDefaultToolkit ().getSystemEventQueue (); eq.postEvent (new FocusEvent(this, FocusEvent.FOCU...
22,582
public boolean requestFocusInWindow() { // XXX Implement correctly. requestFocus(); return true; }
public boolean requestFocusInWindow() { // XXX Implement correctly. requestFocus(); return true; }
22,583
public void reshape(int x, int y, int width, int height) { setBounds(x, y, width, height); }
public void reshape(int x, int y, int width, int height) { setBounds(x, y, width, height); }
22,584
public void resize(int width, int height) { setSize(width, height); }
public void resize(int width, int height) { setSize(width, height); }
22,585
public void setBackground(Color c) { firePropertyChange("background", background, c); if (peer != null) peer.setBackground(c); background = c; }
public void setBackground(Color c) { if (c == null && parent != null) c = parent.getBackground(); firePropertyChange("background", background, c); if (peer != null) peer.setBackground(c); background = c; }
22,586
public void setBackground(Color c) { firePropertyChange("background", background, c); if (peer != null) peer.setBackground(c); background = c; }
public void setBackground(Color c) { firePropertyChange("background", background, c); if (peer != null && c != null) peer.setBackground(c); background = c; }
22,587
public void setBounds(int x, int y, int w, int h) { if (this.x == x && this.y == y && width == w && height == h) { return; } invalidate(); this.x = x; this.y = y; width = w; height = h; if (peer != null) { peer.setBounds(x, y, w, h); } }
public void setBounds(int x, int y, int w, int h) { if (this.x == x && this.y == y && width == w && height == h) { return; } invalidate(); this.x = x; this.y = y; width = w; height = h; if (peer != null) { peer.setBounds(x, y, w, h); } }
22,588
public void setEnabled(boolean b) { this.enabled = b; if (peer != null) peer.setEnabled(b); }
public void setEnabled(boolean b) { this.enabled = b; if (peer != null) peer.setEnabled(b); }
22,589
public void setFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; String name; switch (id) { case KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS : sa = getFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS); sb = getFocusT...
public void setFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) { Container parent = getParent (); while (parent != null) { if (parent.areFocusTraversalKeysSet (id)) { keystrokes = parent.getFocusTraversalKeys (id); break; } parent = parent.getParent (); } if (keystrokes == null) keystrokes = ...
22,590
public void setLocation(int x, int y) { if (this.x == x && this.y == y) return; invalidate(); this.x = x; this.y = y; if (peer != null) peer.setBounds(x, y, width, height); }
public void setLocation(int x, int y) { if (this.x == x && this.y == y) return; invalidate(); this.x = x; this.y = y; if (peer != null) peer.setBounds(x, y, width, height); }
22,592
public void setSize(int width, int height) { if (this.width == width && this.height == height) return; invalidate(); this.width = width; this.height = height; if (peer != null) peer.setBounds(x, y, width, height); }
public void setSize(int width, int height) { if (this.width == width && this.height == height) return; invalidate(); this.width = width; this.height = height; if (peer != null) peer.setBounds(x, y, width, height); }
22,593
public void setVisible(boolean b) { // Inspection by subclassing shows that Sun's implementation calls // show(boolean) which then calls show() or hide(). It is the show() // method that is overriden in subclasses like Window. if (peer != null) peer.setVisible(b); this.visible = b; }
public void setVisible(boolean b) { // Inspection by subclassing shows that Sun's implementation calls // show(boolean) which then calls show() or hide(). It is the show() // method that is overriden in subclasses like Window. if (peer != null) peer.setVisible(b); this.visible = b; }
22,594
public void show() { setVisible(true); }
public void show() { setVisible(true); }
22,595
public Dimension size() { return getSize(); }
public Dimension size() { return getSize(); }
22,596
public void transferFocus() { Component next; if (parent == null) next = findNextFocusComponent(null); else next = parent.findNextFocusComponent(this); if (next != null && next != this) next.requestFocus(); }
public void transferFocus() { Component next; if (parent == null) next = findNextFocusComponent(null); else next = parent.findNextFocusComponent(this); if (next != null && next != this) next.requestFocus(); }
22,597
public void transferFocusBackward() { // XXX Implement. throw new Error("not implemented"); }
public void transferFocusBackward() { // XXX Implement. throw new Error("not implemented"); }
22,598
public void transferFocusUpCycle() { // XXX Implement. throw new Error("not implemented"); }
public void transferFocusUpCycle() { // XXX Implement. throw new Error("not implemented"); }
22,599
public void update(Graphics g) { paint(g); }
public void update(Graphics g) { if (!isLightweight()) { Rectangle clip = g.getClipBounds(); if (clip == null) g.clearRect(0, 0, width, height); else g.clearRect(clip.x, clip.y, clip.width, clip.height); } paint(g); }
22,600
public static WritableRaster createBandedRaster(int dataType, int w, int h, int bands, Point location) { // FIXME: Implement; throw new UnsupportedOperationException("not implemented yet"); }
public static WritableRaster createBandedRaster(int dataType, int w, int h, int bands, Point location) { // FIXME: Implement; SampleModel sm = new BandedSampleModel(dataType, w, h, bands); return createWritableRaster(sm, location); }
22,601
public Object getChild(Object value0, int value1) { return null; // TODO }
public Object getChild(Object node, int idx) { return null; // TODO }
22,602
public Object getChild(Object value0, int value1) { return null; // TODO }
public Object getChild(Object value0, int value1) { if (node instanceof TreeNode) return ((TreeNode)node).getChildAt(idx); else return null; // TODO }
22,603
public int getChildCount(Object value0) { return 0; // TODO }
public int getChildCount(Object node) { return 0; // TODO }
22,604
public int getChildCount(Object value0) { return 0; // TODO }
public int getChildCount(Object value0) { if (node instanceof TreeNode) return ((TreeNode)node).getChildCount(); else return 0; // TODO }
22,605
public boolean isLeaf(Object value0) { return false; // TODO }
public boolean isLeaf(Object node) { return false; // TODO }
22,606
public boolean isLeaf(Object value0) { return false; // TODO }
public boolean isLeaf(Object value0) { if (node instanceof TreeNode) return ((TreeNode)node).isLeaf(); else return true; // TODO }
22,607
getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException{ if (!isDataFlavorSupported(flavor)) throw new UnsupportedFlavorException(flavor); return(new StringBufferInputStream(data));}
getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException{ if (!isDataFlavorSupported(flavor)) throw new UnsupportedFlavorException(flavor); if (DataFlavor.plainTextFlavor == flavor) return(new StringReader(data)); else return data;}
22,608
public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke) { return null; }
public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke) { return null; }
22,609
public int getConditionForKeyStroke(KeyStroke aKeyStroke) { return UNDEFINED_CONDITION; }
public int getConditionForKeyStroke(KeyStroke aKeyStroke) { return UNDEFINED_CONDITION; }
22,610
public void setBorder(Border border) { this.border = border; revalidate(); repaint(); }
public void setBorder(Border newBorder) { this.border = border; revalidate(); repaint(); }
22,612
public void setBorder(Border border) { this.border = border; revalidate(); repaint(); }
public void setBorder(Border border) { Border oldBorder = border; border = newBorder; firePropertyChange("border", oldBorder, newBorder); revalidate(); repaint(); }
22,613
public void setEnabled(boolean e) { super.setEnabled(e); revalidate(); repaint(); }
public void setEnabled(boolean enable) { super.setEnabled(e); revalidate(); repaint(); }
22,614
public void setEnabled(boolean e) { super.setEnabled(e); revalidate(); repaint(); }
public void setEnabled(boolean e) { boolean oldEnabled = isEnabled(); super.setEnabled(enable); firePropertyChange("enabeld", oldEnabled, enable); revalidate(); repaint(); }
22,615
public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < localeNames.length; i++) { String language; String regio...
public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < localeNames.length; i++) { String language; String regio...
22,621
public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < localeNames.length; i++) { String language; String regio...
public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < len; i++) { String language; String region = ""; ...
22,622
public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < localeNames.length; i++) { String language; String regio...
public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < localeNames.length; i++) { String language; String regio...
22,623
public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < localeNames.length; i++) { String language; String regio...
public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < localeNames.length; i++) { String language; String regio...
22,624
public static String[] getISOCountries() { if (countryCache == null) { countryCache = getISOStrings("territories"); } return countryCache; }
public static String[] getISOCountries() { if (countryCache == null) { countryCache = getISOStrings("territories"); } return (String[]) countryCache.clone(); }
22,625
public static String[] getISOLanguages() { if (languageCache == null) { languageCache = getISOStrings("languages"); } return languageCache; }
public static String[] getISOLanguages() { if (languageCache == null) { languageCache = getISOStrings("languages"); } return (String[]) languageCache.clone(); }
22,626
public java.awt.Image getIcon(int iconType) { return icons != null ? icons[iconType] : null; }
public java.awt.Image getIcon(int iconType) { return icons != null ? icons[iconType] : null; }
22,627