bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public Component getComponent(int n) { synchronized (getTreeLock()) { if (n < 0 || n >= ncomponents) throw new ArrayIndexOutOfBoundsException("no such component"); return component[n]; } }
public Component getComponent(int n) { synchronized (getTreeLock()) { if (n < 0 || n >= ncomponents) throw new ArrayIndexOutOfBoundsException("no such component"); return component[n]; } }
21,393
public Component getComponent(int n) { synchronized (getTreeLock()) { if (n < 0 || n >= ncomponents) throw new ArrayIndexOutOfBoundsException("no such component"); return component[n]; } }
public Component getComponent(int n) { synchronized (getTreeLock()) { if (n < 0 || n >= ncomponents) throw new ArrayIndexOutOfBoundsException("no such component"); return component[n]; } }
21,394
public Component getComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; if (comp...
public Component getComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; if (comp...
21,395
public int getComponentCount() { return ncomponents; }
public int getComponentCount() { return ncomponents; }
21,396
public Component[] getComponents() { synchronized (getTreeLock()) { Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents); return result; } }
public Component[] getComponents() { synchronized (getTreeLock()) { Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents); return result; } }
21,397
public Component[] getComponents() { synchronized (getTreeLock()) { Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents); return result; } }
public Component[] getComponents() { synchronized (getTreeLock()) { Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents); return result; } }
21,398
public Component[] getComponents() { synchronized (getTreeLock()) { Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents); return result; } }
public Component[] getComponents() { synchronized (getTreeLock()) { Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents); return result; } }
21,399
public synchronized ContainerListener[] getContainerListeners() { return (ContainerListener[]) AWTEventMulticaster.getListeners(containerListener, ContainerListener.class); }
public synchronized ContainerListener[] getContainerListeners() { return (ContainerListener[]) AWTEventMulticaster.getListeners(containerListener, ContainerListener.class); }
21,400
public Set getFocusTraversalKeys(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); return nu...
public Set getFocusTraversalKeys(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); return nu...
21,401
public Set getFocusTraversalKeys(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); return nu...
public Set getFocusTraversalKeys(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); return nu...
21,402
public FocusTraversalPolicy getFocusTraversalPolicy() { return null; }
public FocusTraversalPolicy getFocusTraversalPolicy() { return null; }
21,403
public Insets getInsets() { if (peer == null) return new Insets(0, 0, 0, 0); return ((ContainerPeer) peer).getInsets(); }
public Insets getInsets() { if (peer == null) return new Insets(0, 0, 0, 0); return ((ContainerPeer) peer).getInsets(); }
21,404
public LayoutManager getLayout() { return layoutMgr; }
public LayoutManager getLayout() { return layoutMgr; }
21,405
public EventListener[] getListeners(Class listenerType) { if (listenerType == ContainerListener.class) return getContainerListeners(); return super.getListeners(listenerType); }
public EventListener[] getListeners(Class listenerType) { if (listenerType == ContainerListener.class) return getContainerListeners(); return super.getListeners(listenerType); }
21,406
public Dimension getMaximumSize() { if (layoutMgr != null && layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.maximumLayoutSize(this); } else return super.getMaximumSize(); }
public Dimension getMaximumSize() { if (layoutMgr != null && layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.maximumLayoutSize(this); } else return super.getMaximumSize(); }
21,407
public Dimension getMinimumSize() { if (layoutMgr != null) return layoutMgr.minimumLayoutSize(this); else return super.getMinimumSize(); }
public Dimension getMinimumSize() { if (layoutMgr != null) return layoutMgr.minimumLayoutSize(this); else return super.getMinimumSize(); }
21,408
public Dimension getPreferredSize() { if (layoutMgr != null) return layoutMgr.preferredLayoutSize(this); else return super.getPreferredSize(); }
public Dimension getPreferredSize() { if (layoutMgr != null) return layoutMgr.preferredLayoutSize(this); else return super.getPreferredSize(); }
21,409
public Insets insets() { return getInsets(); }
public Insets insets() { return getInsets(); }
21,410
public void invalidate() { super.invalidate(); }
public void invalidate() { super.invalidate(); }
21,411
public boolean isAncestorOf(Component comp) { synchronized (getTreeLock()) { while (true) { if (comp == null) return false; if (comp == this) return true; comp = comp.getParent(); } } }
public boolean isAncestorOf(Component comp) { synchronized (getTreeLock()) { while (true) { if (comp == null) return false; if (comp == this) return true; comp = comp.getParent(); } } }
21,412
public boolean isFocusCycleRoot(Container c) { return false; }
public boolean isFocusCycleRoot(Container c) { return false; }
21,413
public boolean isFocusTraversalPolicySet() { return false; }
public boolean isFocusTraversalPolicySet() { return false; }
21,414
public void layout() { doLayout(); }
public void layout() { doLayout(); }
21,415
public void list(PrintStream out, int indent) { synchronized (getTreeLock()) { super.list(out, indent); for (int i = 0; i < ncomponents; ++i) component[i].list(out, indent + 2); } }
public void list(PrintStream out, int indent) { synchronized (getTreeLock()) { super.list(out, indent); for (int i = 0; i < ncomponents; ++i) component[i].list(out, indent + 2); } }
21,416
public Component locate(int x, int y) { return getComponentAt(x, y); }
public Component locate(int x, int y) { return getComponentAt(x, y); }
21,417
public Dimension minimumSize() { return getMinimumSize(); }
public Dimension minimumSize() { return getMinimumSize(); }
21,418
public void paint(Graphics g) { if (!isShowing()) return; super.paint(g); visitChildren(g, GfxPaintVisitor.INSTANCE, true); }
public void paint(Graphics g) { if (!isShowing()) return; super.paint(g); visitChildren(g, GfxPaintVisitor.INSTANCE, true); }
21,419
public void paintComponents(Graphics g) { super.paint(g); visitChildren(g, GfxPaintAllVisitor.INSTANCE, true); }
public void paintComponents(Graphics g) { super.paint(g); visitChildren(g, GfxPaintAllVisitor.INSTANCE, true); }
21,420
protected String paramString() { String param = super.paramString(); if (layoutMgr != null) param = param + "," + layoutMgr.getClass().getName(); return param; }
protected String paramString() { String param = super.paramString(); if (layoutMgr != null) param = param + "," + layoutMgr.getClass().getName(); return param; }
21,421
protected String paramString() { String param = super.paramString(); if (layoutMgr != null) param = param + "," + layoutMgr.getClass().getName(); return param; }
protected String paramString() { String param = super.paramString(); if (layoutMgr != null) param = param + "," + layoutMgr.getClass().getName(); return param; }
21,422
public Dimension preferredSize() { return getPreferredSize(); }
public Dimension preferredSize() { return getPreferredSize(); }
21,423
public void print(Graphics g) { super.print(g); visitChildren(g, GfxPrintVisitor.INSTANCE, true); }
public void print(Graphics g) { super.print(g); visitChildren(g, GfxPrintVisitor.INSTANCE, true); }
21,424
public void printComponents(Graphics g) { super.paint(g); visitChildren(g, GfxPrintAllVisitor.INSTANCE, true); }
public void printComponents(Graphics g) { super.paint(g); visitChildren(g, GfxPrintAllVisitor.INSTANCE, true); }
21,425
protected void processContainerEvent(ContainerEvent e) { if (containerListener == null) return; switch (e.id) { case ContainerEvent.COMPONENT_ADDED : containerListener.componentAdded(e); break; case ContainerEvent.COMPONENT_REMOVED : containerListener.componentRemoved(e); break; } }
protected void processContainerEvent(ContainerEvent e) { if (containerListener == null) return; switch (e.id) { case ContainerEvent.COMPONENT_ADDED : containerListener.componentAdded(e); break; case ContainerEvent.COMPONENT_REMOVED : containerListener.componentRemoved(e); break; } }
21,426
protected void processContainerEvent(ContainerEvent e) { if (containerListener == null) return; switch (e.id) { case ContainerEvent.COMPONENT_ADDED : containerListener.componentAdded(e); break; case ContainerEvent.COMPONENT_REMOVED : containerListener.componentRemoved(e); break; } }
protected void processContainerEvent(ContainerEvent e) { if (containerListener == null) return; switch (e.id) { case ContainerEvent.COMPONENT_ADDED : containerListener.componentAdded(e); break; case ContainerEvent.COMPONENT_REMOVED : containerListener.componentRemoved(e); break; } }
21,427
protected void processEvent(AWTEvent e) { if (e instanceof ContainerEvent) processContainerEvent((ContainerEvent) e); else super.processEvent(e); }
protected void processEvent(AWTEvent e) { if (e instanceof ContainerEvent) processContainerEvent((ContainerEvent) e); else super.processEvent(e); }
21,428
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
21,429
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
21,430
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
21,431
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
21,432
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
21,433
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
public void remove(int index) { synchronized (getTreeLock()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); ...
21,434
public void removeAll() { synchronized (getTreeLock()) { while (ncomponents > 0) remove(0); } }
public void removeAll() { synchronized (getTreeLock()) { while (ncomponents > 0) remove(0); } }
21,435
public synchronized void removeContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.remove(containerListener, l); }
public synchronized void removeContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.remove(containerListener, l); }
21,436
public void removeNotify() { synchronized (getTreeLock()) { for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); super.removeNotify(); } }
public void removeNotify() { synchronized (getTreeLock()) { for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); super.removeNotify(); } }
21,437
public void setFocusCycleRoot(boolean focusCycleRoot) { }
public void setFocusCycleRoot(boolean focusCycleRoot) { }
21,438
public void setFocusTraversalKeys(int id, Set keys) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException();...
public void setFocusTraversalKeys(int id, Set keys) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException();...
21,439
public void setFocusTraversalPolicy(FocusTraversalPolicy policy) { }
public void setFocusTraversalPolicy(FocusTraversalPolicy policy) { }
21,440
public void setFont(Font f) { super.setFont(f); // FIXME, should invalidate all children with font == null }
public void setFont(Font f) { super.setFont(f); // FIXME, should invalidate all children with font == null }
21,441
public void setLayout(LayoutManager mgr) { layoutMgr = mgr; invalidate(); }
public void setLayout(LayoutManager mgr) { layoutMgr = mgr; invalidate(); }
21,442
public void transferFocusBackward() { }
public void transferFocusBackward() { }
21,443
public void transferFocusDownCycle() { }
public void transferFocusDownCycle() { }
21,444
public void update(Graphics g) { super.update(g); }
public void update(Graphics g) { super.update(g); }
21,445
public void validate() { synchronized (getTreeLock()) { if (!isValid()) { validateTree(); } } }
public void validate() { synchronized (getTreeLock()) { if (!isValid()) { validateTree(); } } }
21,446
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && !(peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; if (!comp.isValid()) { if...
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && !(peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; if (!comp.isValid()) { if...
21,447
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && !(peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; if (!comp.isValid()) { if...
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && !(peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; if (!comp.isValid()) { if...
21,448
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && !(peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; if (!comp.isValid()) { if...
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && !(peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; if (!comp.isValid()) { if...
21,449
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && !(peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; if (!comp.isValid()) { if...
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && !(peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; if (!comp.isValid()) { if...
21,450
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && !(peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; if (!comp.isValid()) { if...
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && !(peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; if (!comp.isValid()) { if...
21,451
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
21,452
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
21,453
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
21,454
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock()) { for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly); if (applicable) visitChild(g...
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock()) { for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly); if (applicable) visitChild(g...
21,455
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock()) { for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly); if (applicable) visitChild(g...
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock()) { for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly); if (applicable) visitChild(g...
21,456
LightweightDispatcher(Container c) { }
LightweightDispatcher(Container c) { }
21,457
void enableEvents(long l) { }
void enableEvents(long l) { }
21,458
protected PropertyChangeListener createPropertyChangeListener() { return new MetalScrollBarPropertyChangeHandler(); }
protected PropertyChangeListener createPropertyChangeListener() { return new MetalScrollBarPropertyChangeHandler(); }
21,460
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ...
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ...
21,461
public void addIIOWriteProgressListener(IIOWriteProgressListener listener) { if (listener == null) return; progressListeners.add(listener); }
if (progressListeners == null) progressListeners = new ArrayList (); if (progressListeners == null) progressListeners = new ArrayList (); publicif (progressListeners == null) progressListeners = new ArrayList (); voidif (progressListeners == null) progressListeners = new ArrayList (); addIIOWriteProgressListener(IIOWri...
21,462
public void addIIOWriteWarningListener (IIOWriteWarningListener listener) { if (listener == null) return; warningListeners.add(listener); }
if (warningListeners == null) warningListeners = new ArrayList (); if (warningListeners == null) warningListeners = new ArrayList (); publicif (warningListeners == null) warningListeners = new ArrayList (); voidif (warningListeners == null) warningListeners = new ArrayList (); addIIOWriteWarningListenerif (warningListe...
21,463
public int getNumThumbnailsSupported (ImageTypeSpecifier imageType, ImageWriteParam param, IIOMetadata streamMetadata, IIOMetadata imageMetadata) { return 0; }
public int getNumThumbnailsSupported (ImageTypeSpecifier imageType, ImageWriteParam param, IIOMetadata streamMetadata, IIOMetadata imageMetadata) { return 0; }
21,464
protected void processImageComplete() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.imageComplete(this); } }
protected void processImageComplete() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.imageComplete(this); } }
21,465
protected void processImageProgress(float percentageDone) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.imageProgress(this, percentageDone); } }
protected void processImageProgress(float percentageDone) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.imageProgress(this, percentageDone); } }
21,467
protected void processImageStarted(int imageIndex) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.imageStarted(this, imageIndex); } }
protected void processImageStarted(int imageIndex) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.imageStarted(this, imageIndex); } }
21,469
protected void processThumbnailComplete() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.thumbnailComplete(this); } }
protected void processThumbnailComplete() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.thumbnailComplete(this); } }
21,471
protected void processThumbnailProgress(float percentageDone) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.thumbnailProgress(this, percentageDone); } }
protected void processThumbnailProgress(float percentageDone) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.thumbnailProgress(this, percentageDone); } }
21,473
protected void processThumbnailStarted(int imageIndex, int thumbnailIndex) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.thumbnailStarted(this, imageIndex, thumbnailIndex); } }
protected void processThumbnailStarted(int imageIndex, int thumbnailIndex) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.thumbnailStarted(this, imageIndex, thumbnailIndex); } }
21,475
protected void processWarningOccurred(int imageIndex, String warning) { Iterator it = warningListeners.iterator(); while (it.hasNext()) { IIOWriteWarningListener listener = (IIOWriteWarningListener) it.next(); listener.warningOccurred(this, imageIndex, warning); } }
protected void processWarningOccurred(int imageIndex, String warning) { Iterator it = warningListeners.iterator(); while (it.hasNext()) { IIOWriteWarningListener listener = (IIOWriteWarningListener) it.next(); listener.warningOccurred(this, imageIndex, warning); } }
21,477
protected void processWriteAborted() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.writeAborted(this); } }
protected void processWriteAborted() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.writeAborted(this); } }
21,479
public void removeIIOWriteProgressListener (IIOWriteProgressListener listener) { if (listener == null) return; progressListeners.remove(listener); }
if (progressListeners != null) { if (progressListeners != null) { publicif (progressListeners != null) { voidif (progressListeners != null) { removeIIOWriteProgressListenerif (progressListeners != null) { (IIOWriteProgressListenerif (progressListeners != null) { listener)if (progressListeners != null) { if (progressLis...
21,483
public void removeIIOWriteWarningListener (IIOWriteWarningListener listener) { if (listener == null) return; warningListeners.remove(listener); }
if (warningListeners != null) { if (warningListeners != null) { publicif (warningListeners != null) { voidif (warningListeners != null) { removeIIOWriteWarningListenerif (warningListeners != null) { (IIOWriteWarningListenerif (warningListeners != null) { listener)if (warningListeners != null) { if (warningListeners != ...
21,485
public ImageWriteParam(Locale locale) { this.locale = locale; }
protected ImageWriteParam() { this.locale = locale; }
21,487
public ImageWriteParam(Locale locale) { this.locale = locale; }
public ImageWriteParam(Locale locale) { }
21,488
public void connect() throws IOException { if (connected) { return; } String host = url.getHost(); int port = url.getPort(); String username = url.getUserInfo(); String password = null; if (username != null) { int ci = username.indexOf(':'); if (ci != -1) ...
public void connect() throws IOException { if (connected) { return; } String host = url.getHost(); int port = url.getPort(); String username = url.getUserInfo(); String password = null; if (username != null) { int ci = username.indexOf(':'); if (ci != -1) ...
21,489
public static ComponentUI createUI(final JComponent component) { return new BasicToggleButtonUI(); }
public static ComponentUI createUI(final JComponent component) { return new BasicToggleButtonUI(); }
21,490
protected AbstractInterruptibleChannel () { }
protected AbstractInterruptibleChannel() { }
21,491
public String getApproveButtonText(JFileChooser fc) { if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) return saveButtonText; else return openButtonText; }
public String getApproveButtonText(JFileChooser fc) { if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) return saveButtonText; else return openButtonText; }
21,496
public FileView getFileView(JFileChooser fc) { if (fc.getFileView() != null) return fc.getFileView(); return fv; }
public FileView getFileView(JFileChooser fc) { if (fc.getFileView() != null) return fc.getFileView(); return fv; }
21,497
public Node adoptNode(Node source) { switch (source.getNodeType()) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_E...
public Node adoptNode(Node source) { int sourceNodeType = source.getNodeType(); switch (sourceNodeType) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomDOMException(D...
21,499
public Node adoptNode(Node source) { switch (source.getNodeType()) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_E...
public Node adoptNode(Node source) { switch (source.getNodeType()) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_E...
21,500
public synchronized StringBuffer delete(int start, int end) { if (start < 0 || start > count || start > end) throw new StringIndexOutOfBoundsException(start); if (end > count) end = count; // This will unshare if required. ensureCapacity_unsynchronized(count); if (count - end != 0) Syst...
public synchronized StringBuffer delete(int start, int end) { if (start < 0 || start > count || start > end) throw new StringIndexOutOfBoundsException(start); if (end > count) end = count; // This will unshare if required. ensureCapacity_unsynchronized(count); if (count - end != 0) VMSy...
21,501
private void ensureCapacity_unsynchronized(int minimumCapacity) { if (shared || minimumCapacity > value.length) { // We don't want to make a larger vector when `shared' is // set. If we do, then setLength becomes very inefficient // when repeatedly reusing a StringBuffer in a loop. ...
private void ensureCapacity_unsynchronized(int minimumCapacity) { if (shared || minimumCapacity > value.length) { // We don't want to make a larger vector when `shared' is // set. If we do, then setLength becomes very inefficient // when repeatedly reusing a StringBuffer in a loop. ...
21,502
public synchronized void getChars(int srcOffset, int srcEnd, char[] dst, int dstOffset) { if (srcOffset < 0 || srcEnd > count || srcEnd < srcOffset) throw new StringIndexOutOfBoundsException(); System.arraycopy(value, srcOffset, dst, dstOffset, srcEnd - srcOffset); }
public synchronized void getChars(int srcOffset, int srcEnd, char[] dst, int dstOffset) { if (srcOffset < 0 || srcEnd > count || srcEnd < srcOffset) throw new StringIndexOutOfBoundsException(); VMSystem.arraycopy(value, srcOffset, dst, dstOffset, srcEnd - srcOffset); }
21,503
public synchronized StringBuffer insert(int offset, char[] str, int str_offset, int len) { if (offset < 0 || offset > count || len < 0 || str_offset < 0 || str_offset > str.length - len) throw new StringIndexOutOfBoundsException(); ensureCapacity_unsynchroni...
public synchronized StringBuffer insert(int offset, char[] str, int str_offset, int len) { if (offset < 0 || offset > count || len < 0 || str_offset < 0 || str_offset > str.length - len) throw new StringIndexOutOfBoundsException(); ensureCapacity_unsynchroni...
21,504
public synchronized StringBuffer replace(int start, int end, String str) { if (start < 0 || start > count || start > end) throw new StringIndexOutOfBoundsException(start); int len = str.count; // Calculate the difference in 'count' after the replace. int delta = len - (end > count ? count : end) + s...
public synchronized StringBuffer replace(int start, int end, String str) { if (start < 0 || start > count || start > end) throw new StringIndexOutOfBoundsException(start); int len = str.count; // Calculate the difference in 'count' after the replace. int delta = len - (end > count ? count : end) + s...
21,505
private void resolveNeutralTypes() { // This implements rules N1 and N2. final int runCount = getRunCount(); int previousLevel = baseEmbedding; for (int run = 0; run < runCount; ++run) { int start = getRunStart(run); int end = getRunLimit(run); int level = getRunLevel(run); ...
private void resolveNeutralTypes() { // This implements rules N1 and N2. final int runCount = getRunCount(); int previousLevel = baseEmbedding; for (int run = 0; run < runCount; ++run) { int start = getRunStart(run); int end = getRunLimit(run); int level = getRunLevel(run); ...
21,506
public static long getSize(String size) { if((size == null) || size.trim().equals("")) return 0; int multiplier = 1; if(size.endsWith("T")) { multiplier = T; size = size.substring(0, size.length() - 1); } else if(size.endsWith("G")) { ...
public static long getSize(String size) { if((size == null) || size.trim().equals("")) return 0; int multiplier = 1; if(size.endsWith("T")) { multiplier = T; size = size.substring(0, size.length() - 1); } else if(size.endsWith("G")) { ...
21,507
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
21,508
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
21,509
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
21,510