bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
TemplateNode clone(Stylesheet stylesheet) { return new CommentNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet)); }
TemplateNode clone(Stylesheet stylesheet) { return new CommentNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet)); }
19,261
public static void main(String[] args) { final String name = (args.length > 0) ? args[0] : ""; System.out.println("Creating File(\"" + name + "\")"); final File f = new File(name); System.out.println("Created File(\"" + name + "\")"); System.out.println("List entri...
public static void main(String[] args) { final String name = (args.length > 0) ? args[0] : ""; System.out.println("Creating File(\"" + name + "\")"); final File f = new File(name); System.out.println("Created File(\"" + name + "\")"); System.out.println("List entri...
19,263
public static Dimension getPreferredButtonSize(AbstractButton b, int textIconGap) { Rectangle contentRect; Rectangle viewRect; Rectangle iconRect = new Rectangle(); Rectangle textRect = new Rectangle(); Insets insets = b.getInsets(); viewRect = ne...
public static Dimension getPreferredButtonSize(AbstractButton b, int textIconGap) { Rectangle contentRect; Rectangle viewRect; Rectangle iconRect = new Rectangle(); Rectangle textRect = new Rectangle(); Insets insets = b.getInsets(); viewRect = ne...
19,264
public LineMetrics getLineMetrics(String str, FontRenderContext frc) { return getLineMetrics (str, 0, str.length () - 1, frc); }
public LineMetrics getLineMetrics(String str, FontRenderContext frc) { return getLineMetrics (str, 0, str.length () - 1, frc); }
19,265
public TextLayout (String string, Font font, FontRenderContext frc) { AttributedString as = new AttributedString (string); as.addAttribute (TextAttribute.FONT, font); ClasspathToolkit tk = (ClasspathToolkit)(Toolkit.getDefaultToolkit ()); peer = tk.getClasspathTextLayoutPeer(as, frc); }
public TextLayout (String string, Font font, FontRenderContext frc) { AttributedString as = new AttributedString (string); as.addAttribute (TextAttribute.FONT, font); ClasspathToolkit tk = (ClasspathToolkit)(Toolkit.getDefaultToolkit ()); peer = tk.getClasspathTextLayoutPeer(as, frc); }
19,266
public void draw (Graphics2D g2, float x, float y) { peer.draw(g2, x, y); }
public void draw (Graphics2D g2, float x, float y) { for(int i = 0; i < runs.length; i++) { g2.drawGlyphVector(runs[i], x, y); Rectangle2D r = runs[i].getLogicalBounds(); x += r.getWidth(); } }
19,267
public Shape getLogicalHighlightShape (int firstEndpoint, int secondEndpoint) { return getLogicalHighlightShape (firstEndpoint, secondEndpoint, getBounds()); }
public Shape getLogicalHighlightShape (int firstEndpoint, int secondEndpoint) { return getLogicalHighlightShape( firstEndpoint, secondEndpoint, getBounds() ); }
19,268
private static final NumberFormat computeInstance (Locale loc, String resource, String def) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc); } catch (MissingResourceException x) { res = null; } String f...
private static final NumberFormat computeInstance (Locale loc, String resource, String def) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) ...
19,269
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); TemplateNode ret = new ForEachNode(select.clone(stylesheet), sortKeys2); ...
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys != null ? sortKeys.size() : 0; List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); TemplateNode ret = new ForEachNode(select.clone(stylesheet), ...
19,270
public Enumeration elements() { return new Enumeration() { Enumeration main_enum = perms.elements(); Enumeration sub_enum; public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (...
public Enumeration elements() { return new Enumeration() { Enumeration main_enum = perms.elements(); Enumeration sub_enum; public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (...
19,271
public Enumeration elements() { return new Enumeration() { Enumeration main_enum = perms.elements(); Enumeration sub_enum; public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (...
publicEnumerationelements(){returnnewEnumeration(){Enumerationmain_enum=perms.elements();Enumerationsub_enum;publicbooleanhasMoreElements(){if(sub_enum==null){if(main_enum==null)returnfalse;if(!main_enum.hasMoreElements()){main_enum=null;returnfalse;}PermissionCollectionpc=(PermissionCollection)main_enum.nextElement();...
19,272
public Enumeration elements() { return new Enumeration() { Enumeration main_enum = perms.elements(); Enumeration sub_enum; public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (...
public Enumeration elements() { return new Enumeration() { Enumeration main_enum = perms.elements(); Enumeration sub_enum; public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (...
19,273
public Enumeration elements() { return new Enumeration() { Enumeration main_enum = perms.elements(); Enumeration sub_enum; public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (...
public Enumeration elements() { return new Enumeration() { Enumeration main_enum = perms.elements(); Enumeration sub_enum; public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (...
19,274
public Enumeration elements() { return new Enumeration() { Enumeration main_enum = perms.elements(); Enumeration sub_enum; public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (...
public Enumeration elements() { return new Enumeration() { Enumeration main_enum = perms.elements(); Enumeration sub_enum; public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (...
19,275
public Enumeration elements() { return new Enumeration() { Enumeration main_enum = perms.elements(); Enumeration sub_enum; public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (...
public Enumeration elements() { return new Enumeration() { Enumeration main_enum = perms.elements(); Enumeration sub_enum; public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (...
19,276
public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (!main_enum.hasMoreElements()) { main_enum = null; return false; } Permi...
public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (!main_enum.hasMoreElements()) { main_enum = null; return false; } Permi...
19,277
public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (!main_enum.hasMoreElements()) { main_enum = null; return false; } Permi...
public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (!main_enum.hasMoreElements()) { main_enum = null; return false; } Permi...
19,278
public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (!main_enum.hasMoreElements()) { main_enum = null; return false; } Permi...
public boolean hasMoreElements() { if (sub_enum == null) { if (main_enum == null) return false; if (!main_enum.hasMoreElements()) { main_enum = null; return false; } Permi...
19,279
public Object nextElement() { if (!hasMoreElements()) throw new NoSuchElementException(); return sub_enum.nextElement(); }
public Object nextElement() { if (!hasMoreElements()) throw new NoSuchElementException(); return sub_enum.nextElement(); }
19,280
public boolean implies(Permission perm) { if (allPermission != null) { return true; } final PermissionCollection pc = (PermissionCollection) perms.get(perm .getClass()); if (pc == null) { return false; } else { return pc.implies(perm); } }
public boolean implies(Permission perm) { if (allPermission != null) { return true; } final PermissionCollection pc = (PermissionCollection) perms.get(perm .getClass()); if (pc == null) { return false; } else { return pc.implies(perm); } }
19,281
public void add(Permission perm) { perms.put(perm, perm); }
public void add(Permission perm) { perms.put(perm, perm); }
19,282
public Enumeration elements() { return perms.elements(); }
public Enumeration elements() { return perms.elements(); }
19,283
public boolean implies(Permission perm) { return perms.get(perm) != null; }
public boolean implies(Permission perm) { return perms.get(perm) != null; }
19,284
public boolean atomicChangeObjectColor(Object dst, int oldColor, int newColor) { final Address addr = ObjectReference.fromObject(dst).toAddress().add( flagsOffset); for (;;) { Word oldValue = addr.prepareWord(); if (oldValue.and(Word.fromIntZeroExtend(Ob...
public boolean atomicChangeObjectColor(Object dst, int oldColor, int newColor) { final Address addr = ObjectReference.fromObject(dst).toAddress().add( flagsOffset); for (;;) { Word oldValue = addr.prepareWord(); if (oldValue .and(Word.fromIntZeroExtend(O...
19,285
public boolean atomicChangeObjectColor(Object dst, int oldColor, int newColor) { final Address addr = ObjectReference.fromObject(dst).toAddress().add( flagsOffset); for (;;) { Word oldValue = addr.prepareWord(); if (oldValue.and(Word.fromIntZeroExtend(Ob...
public boolean atomicChangeObjectColor(Object dst, int oldColor, int newColor) { final Address addr = ObjectReference.fromObject(dst).toAddress().add( flagsOffset); for (;;) { Word oldValue = addr.prepareWord(); if (oldValue.and(Word.fromIntZeroExtend(Ob...
19,286
public final void bootArchitecture(boolean emptyMMap) throws UninterruptiblePragma { Vm.getArch().boot(emptyMMap); }
public final void bootArchitecture(boolean emptyMMap) throws UninterruptiblePragma { Vm.getArch().boot(emptyMMap); }
19,287
public void restartThreads() { VmProcessor.current().enableReschedule(); }
public void restartThreads() { VmMagic.currentProcessor().enableReschedule(true); }
19,288
public final void stopThreadsAtSafePoint() { VmProcessor.current().disableReschedule(); }
public final void stopThreadsAtSafePoint() { VmMagic.currentProcessor().disableReschedule(true); }
19,289
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf...
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf...
19,290
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf...
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf...
19,291
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf...
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf...
19,292
protected abstract Item cloneConstant();
protected abstract Item cloneConstant();
19,293
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continu...
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continu...
19,294
public Dimension preferredLayoutSize(Container container) { if (container instanceof JSplitPane) { JSplitPane split = (JSplitPane) container; Insets insets = container.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == nu...
public Dimension preferredLayoutSize(Container container) { if (container instanceof JSplitPane) { JSplitPane split = (JSplitPane) container; Insets insets = container.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == nu...
19,295
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
19,296
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
19,297
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
19,298
public Dimension getMinimumSize(int rows) { return null; }
public Dimension getMinimumSize(int rows) { return null; }
19,299
public Dimension getPreferredSize(int rows) { return null; }
public Dimension getPreferredSize(int rows) { return null; }
19,300
public MidiUnavailableException(String s) { super(s); }
public MidiUnavailableException() { super(s); }
19,301
public MidiUnavailableException(String s) { super(s); }
public MidiUnavailableException(String s) { super(); }
19,302
public Exception getException () { return exception; }
public Exception getException () { return exception; }
19,303
public String getMessage () { if (super.getMessage () == null && exception != null) return exception.getMessage (); return super.getMessage (); }
public String getMessage () { if (super.getMessage () == null && exception != null) return exception.getMessage (); return super.getMessage (); }
19,304
public boolean is_equivalent(org.omg.CORBA.Object target, org.omg.CORBA.Object other ) { if (target == other) return true; if ((target instanceof ObjectImpl) && other instanceof ObjectImpl) { try { org.omg.CORBA.por...
public boolean is_equivalent(org.omg.CORBA.Object target, org.omg.CORBA.Object other ) { if (target == other) return true; if ((target instanceof ObjectImpl) && other instanceof ObjectImpl) { try { org.omg.CORBA.por...
19,305
public boolean is_equivalent(org.omg.CORBA.Object target, org.omg.CORBA.Object other ) { if (target == other) return true; if ((target instanceof ObjectImpl) && other instanceof ObjectImpl) { try { org.omg.CORBA.por...
public boolean is_equivalent(org.omg.CORBA.Object target, org.omg.CORBA.Object other ) { if (target == other) return true; if ((target instanceof ObjectImpl) && other instanceof ObjectImpl) { try { org.omg.CORBA.por...
19,306
Rectangle getBounds() { // This method may be called in the context when the tree rectangle is // not known. To work around this, it is assumed near infinitely large. if (bounds==null) bounds = getNodeDimensions(node, row, depth, isExpanded, new Rectangle(...
Rectangle getBounds() { // This method may be called in the context when the tree rectangle is // not known. To work around this, it is assumed near infinitely large. if (bounds == null) bounds = getNodeDimensions(node, row, depth, isExpanded, new Rectangl...
19,308
private final void countRows(Object node, Object parent, int depth) { Integer n = new Integer(row2node.size()); row2node.put(n, node); NodeRecord nr = new NodeRecord(n.intValue(), depth, node, parent); nodes.put(node, nr); // For expanded nodes and for the root node. if (expanded.contains(node)...
private final void countRows(Object node, Object parent, int depth) { Integer n = new Integer(row2node.size()); row2node.put(n, node); NodeRecord nr = new NodeRecord(n.intValue(), depth, node, parent); nodes.put(node, nr); // For expanded nodes and for the root node. if (expanded.contains(node)...
19,309
public void invalidatePathBounds(TreePath path) { NodeRecord r = (NodeRecord) nodes.get(path.getLastPathComponent()); if (r!=null) r.bounds = null; }
public void invalidatePathBounds(TreePath path) { NodeRecord r = (NodeRecord) nodes.get(path.getLastPathComponent()); if (r != null) r.bounds = null; }
19,310
protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; }
protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; }
19,311
protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; }
protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; }
19,312
private void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += Math.max(200, scrollbar.getVisibleAmount())...
private void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += Math.max(200, scrollbar.getVisibleAmount())...
19,316
private void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += Math.max(200, scrollbar.getVisibleAmount())...
private void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += Math.max(200, scrollbar.getVisibleAmount())...
19,317
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); maximumThumb...
protectedvoidinstallDefaults(){UIDefaultsdefaults=UIManager.getLookAndFeelDefaults();scrollbar.setForeground(defaults.getColor("ScrollBar.foreground"));scrollbar.setBackground(defaults.getColor("ScrollBar.background"));scrollbar.setBorder(defaults.getBorder("ScrollBar.border"));maximumThumbSize=defaults.getDimension("S...
19,319
public void paint(Graphics g, JComponent c) { layoutContainer(scrollbar); // Rectangle r = incrButton.getBounds();// SwingUtilities.paintComponent(g, incrButton, scrollbar, r.x, r.y, r.width,// r.height);// r = decrButton.getBounds();// SwingUtilities.paintComponent...
public void paint(Graphics g, JComponent c) { layoutContainer(scrollbar); // Rectangle r = incrButton.getBounds();// SwingUtilities.paintComponent(g, incrButton, scrollbar, r.x, r.y, r.width,// r.height);// r = decrButton.getBounds();// SwingUtilities.paintComponent(g, decrButton, scrollbar, r.x, ...
19,321
protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListS...
protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListS...
19,322
protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListS...
protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListS...
19,323
private LoginModule lookupModule (AppConfigurationEntry entry, Subject subject, Map sharedState) throws LoginException { LoginModule module = null; Exception cause = null; try { module = (LoginModule) Class.forName (entry.getLoginModuleName()).newInstance();...
private LoginModule lookupModule (AppConfigurationEntry entry, Subject subject, Map sharedState) throws LoginException { LoginModule module = null; Exception cause = null; try { ClassLoader cl = Thread.currentThread().getContextClassLoader(); Class c = Class...
19,324
public TypeMismatch(String why) { super(why); }
public TypeMismatch() { super(why); }
19,325
public TypeMismatch(String why) { super(why); }
public TypeMismatch(String why) { }
19,326
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
19,327
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
19,328
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
19,329
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
19,330
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
19,331
public int[] getSelectedIndices() { int lo, hi, n, i, j; if (selectionModel.isSelectionEmpty()) return new int[0]; lo = selectionModel.getMinSelectionIndex(); hi = selectionModel.getMaxSelectionIndex(); n = 0; for (i = lo; i < hi; ++i) if (selectionModel.isSelectedIndex(i)) n++; ...
public int[] getSelectedIndices() { int lo, hi, n, i, j; if (selectionModel.isSelectionEmpty()) return new int[0]; lo = selectionModel.getMinSelectionIndex(); hi = selectionModel.getMaxSelectionIndex(); n = 0; for (i = lo; i <= hi; ++i) if (selectionModel.isSelectedIndex(i)) n++; ...
19,332
public JComponent() { super(); super.setLayout(new FlowLayout()); //eventMask |= AWTEvent.COMP_KEY_EVENT_MASK; enableEvents( AWTEvent.KEY_EVENT_MASK ); //updateUI(); // get a proper ui }
public JComponent() { super(); super.setLayout(new FlowLayout()); //eventMask |= AWTEvent.COMP_KEY_EVENT_MASK; enableEvents( AWTEvent.KEY_EVENT_MASK ); //updateUI(); // get a proper ui }
19,333
public void addAncestorListener(AncestorListener listener) { get_ancestor_list().addElement(listener); }
public void addAncestorListener(AncestorListener listener) { get_ancestor_list().addElement(listener); }
19,334
public void addPropertyChangeListener(PropertyChangeListener listener) { get_change_list().addElement(listener); }
public void addPropertyChangeListener(PropertyChangeListener listener) { get_change_list().addElement(listener); }
19,335
public void addVetoableChangeListener(VetoableChangeListener listener) { get_veto_list().addElement(listener); }
public void addVetoableChangeListener(VetoableChangeListener listener) { get_veto_list().addElement(listener); }
19,336
public String getUIClassID() { /// Return the UIDefaults key used to look up the name of the swing. return "JComponent"; }
public String getUIClassID() { /// Return the UIDefaults key used to look up the name of the swing. return "JComponent"; }
19,338
public void paint(Graphics g) { // System.out.println("SWING_PAINT:" + this); paintBorder(g); paintComponent(g); paintChildren(g); }
publicGraphics g2 = g; Image im = null; Rectangle r = getBounds (); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } els...
19,339
public void paint(Graphics g) { // System.out.println("SWING_PAINT:" + this); paintBorder(g); paintComponent(g); paintChildren(g); }
public void paint(Graphics g) { // System.out.println("SWING_PAINT:" + this); paintBorder(g); paintComponent(g); paintChildren(g); }
19,340
protected void paintChildren(Graphics g) { // Paint this component's children. //super.paintChildren(g); }
protectedsuper.paint(g); super.paint(g); voidsuper.paint(g); paintChildren(Graphicssuper.paint(g); g) { super.paint(g); super.paint(g); super.paint(g); super.paint(g); //super.paint(g); super.paint(g); super.paint(g); super.paint(g); super.paint(g); super.paint(g); Paintsuper.paint(g); thissuper.paint(g); component'ss...
19,341
public void removeAncestorListener(AncestorListener listener) { get_ancestor_list().removeElement(listener); }
public void removeAncestorListener(AncestorListener listener) { get_ancestor_list().removeElement(listener); }
19,342
public void removePropertyChangeListener(PropertyChangeListener listener) { get_change_list().removeElement(listener); }
public void removePropertyChangeListener(PropertyChangeListener listener) { get_change_list().removeElement(listener); }
19,343
public void removeVetoableChangeListener(VetoableChangeListener listener) { get_veto_list().removeElement(listener); }
public void removeVetoableChangeListener(VetoableChangeListener listener) { get_veto_list().removeElement(listener); }
19,344
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); }
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); }
19,346
JRootPane createRootPane() { return new JRootPane(); }
JRootPane createRootPane() { return new JRootPane(); }
19,347
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create }
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create }
19,348
public AccessibleContext getAccessibleContext() { return accessibleContext; }
public AccessibleContext getAccessibleContext() { return accessibleContext; }
19,349
public Container getContentPane() { return getRootPane().getContentPane(); }
public Container getContentPane() { return getRootPane().getContentPane(); }
19,350
Component getGlassPane() { return getRootPane().getGlassPane(); }
Component getGlassPane() { return getRootPane().getGlassPane(); }
19,351
JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); }
JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); }
19,352
JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); }
JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); }
19,353
public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); return d; }
public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); return d; }
19,354
JRootPane getRootPane() { if (rootPane == null) setRootPane(createRootPane()); return rootPane; }
JRootPane getRootPane() { if (rootPane == null) setRootPane(createRootPane()); return rootPane; }
19,355
protected boolean isRootPaneCheckingEnabled() { return checking; }
protected boolean isRootPaneCheckingEnabled() { return checking; }
19,356
protected String paramString() { return "JFrame"; }
protected String paramString() { return "JFrame"; }
19,357
protected void processKeyEvent(KeyEvent e) { super.processKeyEvent(e); }
protected void processKeyEvent(KeyEvent e) { super.processKeyEvent(e); }
19,358
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System...
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System...
19,359
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System...
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System...
19,360
public void remove(Component comp) { getContentPane().remove(comp); }
public void remove(Component comp) { getContentPane().remove(comp); }
19,361
public void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); }
public void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); }
19,362
public void setDefaultCloseOperation(int operation) { close_action = operation; }
public void setDefaultCloseOperation(int operation) { close_action = operation; }
19,363
public void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); }
public void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); }
19,364
void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); }
void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); }
19,365
void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); }
void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); }
19,366
public void setLayout(LayoutManager manager) { super.setLayout(manager); }
public void setLayout(LayoutManager manager) { super.setLayout(manager); }
19,367
void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); }
void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); }
19,368
protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; }
protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; }
19,369