bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
Menu(String label){ this(label, false);} | Menu(String label){ } | 11,707 |
add(MenuItem item){ items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item;} | add(MenuItem item){ items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item;} | 11,708 |
public boolean valid () { return channel != null && channel.isOpen(); } | public boolean valid () { ByteChannel c = channel; return (c != null) && (c.isOpen()); } | 11,710 |
public Certificate[] certificates() { Certificate certs[] = new Certificate[certificates.size()]; int max = certificates.size(); for (int i = 0; i < max; i++) certs[i] = (Certificate) certificates.elementAt(i); return certs; } | public Certificate[] certificates() { Certificate[] certs = new Certificate[certificates.size()]; int max = certificates.size(); for (int i = 0; i < max; i++) certs[i] = (Certificate) certificates.elementAt(i); return certs; } | 11,711 |
public Parser getParser () throws SAXException { if (parser == null) parser = new XMLReaderAdapter (ae2); return parser; } | public Parser getParser () throws SAXException { if (parser == null) { parser = new XMLReaderAdapter(ae2); } return parser; } | 11,712 |
public boolean isNamespaceAware () { try { return ae2.getFeature (SAXDriver.FEATURE + "namespaces"); } catch (Exception e) { throw new Error (); } } | public boolean isNamespaceAware() { try { return ae2.getFeature(SAXDriver.FEATURE + "namespaces"); } catch (Exception e) { try { return ae2.getFeature (SAXDriver.FEATURE + "namespaces"); } catch (Exception e) { throw new Error (); } } | 11,713 |
public boolean isNamespaceAware () { try { return ae2.getFeature (SAXDriver.FEATURE + "namespaces"); } catch (Exception e) { throw new Error (); } } | public boolean isNamespaceAware () { try { return ae2.getFeature (SAXDriver.FEATURE + "namespaces"); } catch (Exception e) { throw new Error (); } } | 11,714 |
public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); ... | public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) { return value.booleanValue(); } else try { return new JaxpParser ().getXMLReader ().getFeature (name); ... | 11,715 |
public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); ... | public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); ... | 11,716 |
public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); ... | public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); ... | 11,717 |
public XMLReaderAdapter (XMLReader xmlReader) { setup(xmlReader); } | public XMLReaderAdapter () throws SAXException { setup(xmlReader); } | 11,718 |
public XMLReaderAdapter (XMLReader xmlReader) { setup(xmlReader); } | public XMLReaderAdapter (XMLReader xmlReader) { setup(XMLReaderFactory.createXMLReader()); } | 11,719 |
public Object getProperty (String propertyId) throws SAXNotRecognizedException { if ((SAXDriver.PROPERTY + "declaration-handler") .equals (propertyId) || (SAXDriver.PROPERTY + "lexical-handler") .equals (propertyId)) return filter.getProperty (propertyId); throw new SAXNotRecognizedException (propert... | public Object getProperty (String propertyId) throws SAXNotRecognizedException { if ((SAXDriver.PROPERTY + "declaration-handler") .equals (propertyId) || (SAXDriver.PROPERTY + "lexical-handler") .equals (propertyId)) return filter.getProperty (propertyId); throw new SAXNotRecognizedException (propert... | 11,720 |
public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((SAXDriver.FEATURE + "validation").equals (featureId)) return isValidating; return aelfred2.getFeature (featureId); } | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((SAXDriver.FEATURE + "validation").equals(featureId)) { return isValidating; return aelfred2.getFeature (featureId); } | 11,721 |
public void setProperty (String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (active) throw new IllegalStateException ("already parsing"); if (getProperty (propertyId) != value) filter.setProperty (propertyId, value); } | public void setProperty (String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (active) throw new IllegalStateException ("already parsing"); if (getProperty (propertyId) != value) filter.setProperty (propertyId, value); } | 11,722 |
public TreePath getClosestPathForLocation(JTree tree, int x, int y) { return null; // FIXME: not implemented } | public TreePath getClosestPathForLocation(JTree tree, int x, int y) { return null; // FIXME: not implemented } | 11,723 |
public TreePath getPathForRow(JTree tree, int row) { return null; // FIXME: not implemented } | public TreePath getPathForRow(JTree tree, int row) { return null; // FIXME: not implemented } | 11,724 |
public Dimension getPreferredSize(JComponent c) { return new Dimension(200,200); } | public Dimension getPreferredSize(JComponent c) { return new Dimension(200,200); } | 11,725 |
public int getRowCount(JTree tree) { return 0; // FIXME: not implemented } | public int getRowCount(JTree tree) { return 0; // FIXME: not implemented } | 11,726 |
public int getRowForPath(JTree tree, TreePath path) { return -1; // FIXME: not implemented } | public int getRowForPath(JTree tree, TreePath path) { return -1; // FIXME: not implemented } | 11,727 |
protected void installDefaults(JTree tree) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); hashColor = ... | protected void installDefaults(JTree tree) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); hashColor = ... | 11,728 |
protected void installListeners() { } | protected void installListeners() { } | 11,729 |
public void installUI(JComponent c) { installDefaults((JTree) c); } | public void installUI(JComponent c) { installDefaults((JTree) c); } | 11,730 |
protected void paintLeaf(Graphics g, int x, int y, JTree tree, Object leaf) { Component c = tree.getCellRenderer().getTreeCellRendererComponent(tree, leaf, false, // selected... | private void paintLeaf(Graphics g, int x, int y, JTree tree, Object leaf) { TreePath tp = new TreePath(((DefaultMutableTreeNode) leaf).getPath()); boolean selected = tree.isPathSelected(tp); if (selected) { Component comp = tree.getCellRenderer() .getTreeCellRendererComponent(tree, leaf, true, false, true, 0, false)... | 11,731 |
protected void paintNonLeaf(Graphics g, int x, int y, JTree tree, Object nonLeaf) { Component c = tree.getCellRenderer().getTreeCellRendererComponent(tree, nonLeaf, false, //... | private void paintNonLeaf(Graphics g, int x, int y, JTree tree, Object nonLeaf) { TreePath tp = new TreePath(((DefaultMutableTreeNode) nonLeaf).getPath()); boolean selected = tree.isPathSelected(tp); if (selected) { Component comp = tree.getCellRenderer() .getTreeCellRendererComponent(tree, nonLeaf, true, false, tru... | 11,733 |
protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 11,735 |
protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 11,736 |
protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 11,737 |
protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 11,738 |
protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 11,739 |
protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 11,740 |
protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 11,741 |
public boolean stopEditing(JTree tree) { return true; // FIXME: not implemented } | public boolean stopEditing(JTree tree) { return true; // FIXME: not implemented } | 11,742 |
protected void uninstallDefaults(JTree tree) { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); tree.setCellRenderer(null); } | protected void uninstallDefaults(JTree tree) { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); tree.setCellRenderer(null); } | 11,743 |
public void uninstallUI(JComponent c) { uninstallDefaults((JTree) c); } | public void uninstallUI(JComponent c) { uninstallDefaults((JTree) c); } | 11,744 |
DOMSource resolveDOM(Source source, String base, String href) throws TransformerException { if (source != null && source instanceof DOMSource) { return (DOMSource) source; } String systemId = (source == null) ? null : source.getSystemId(); long lastModified = 0L, lastLastModified = 0L; ... | DOMSource resolveDOM(Source source, String base, String href) throws TransformerException { if (source != null && source instanceof DOMSource) { return (DOMSource) source; } String systemId = (source == null) ? null : source.getSystemId(); long lastModified = 0L, lastLastModified = 0L; ... | 11,745 |
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... | 11,748 |
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... | 11,749 |
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... | 11,750 |
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... | 11,751 |
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... | 11,752 |
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... | 11,753 |
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... | 11,754 |
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... | 11,755 |
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... | 11,756 |
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... | 11,757 |
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... | 11,758 |
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... | 11,759 |
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... | 11,760 |
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... | 11,761 |
public String toString() { return "Edge: " + x0 + ", " + y0 + ", " + x1 + ", " + y1 + ", slope: " + slope + ", xIntersection: " + xIntersection; } | public String toString() { return "Edge: " + x0 + ", " + y0 + ", " + x1 + ", " + y1 + ", slope: " + slope + ", xIntersection: " + xIntersection + ", isClip: " + isClip; } | 11,762 |
public Binding(NameComponent[] a_name, BindingType a_type) { binding_name = a_name; binding_type = a_type; } | public Binding() { binding_name = a_name; binding_type = a_type; } | 11,763 |
public Binding(NameComponent[] a_name, BindingType a_type) { binding_name = a_name; binding_type = a_type; } | public Binding(NameComponent[] a_name, BindingType a_type) { binding_name = a_name; binding_type = a_type; } | 11,764 |
public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { ... | public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { ... | 11,765 |
public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { ... | public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; Dimension retVal = getPrefer... | 11,766 |
public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { ... | public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { ... | 11,767 |
public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { ... | public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { ... | 11,768 |
public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { ... | public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { ... | 11,769 |
public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { ... | public Dimension getPreferredScrollableViewportSize() { int vis = getVisibleRowCount(); int nrows = getModel() == null ? 0 : getModel().getSize(); // FIXME: this is a somewhat arbitrary default, but.. ? Dimension single = new Dimension(10, 10);; Rectangle bounds = null; if (vis > nrows) { ... | 11,770 |
public boolean getScrollableTracksViewportHeight() { return false; } | public boolean getScrollableTracksViewportHeight() { Component parent = getParent(); boolean retVal = false; if (parent instanceof JViewport) { JViewport viewport = (JViewport) parent; Dimension pref = getPreferredSize(); if (viewport.getSize().height > pref.height) retVal = true; if ((getLayoutOrientation() == V... | 11,771 |
public boolean getScrollableTracksViewportWidth() { return false; } | public boolean getScrollableTracksViewportWidth() { Component parent = getParent(); boolean retVal = false; if (parent instanceof JViewport) { JViewport viewport = (JViewport) parent; Dimension pref = getPreferredSize(); if (viewport.getSize().width > pref.width) retVal = true; if ((getLayoutOrientation() == HORI... | 11,772 |
public final Class getCategory() { return PrinterInfo.class; } | public Class getCategory() { return PrinterInfo.class; } | 11,773 |
public final String getName() { return "printer-info"; } | public String getName() { return "printer-info"; } | 11,774 |
public abstract boolean addOwner(Principal caller, Principal owner) throws NotOwnerException; | boolean addOwner(Principal caller, Principal owner) throws NotOwnerException; | 11,775 |
public abstract boolean deleteOwner(Principal caller, Principal owner) throws NotOwnerException, LastOwnerException; | boolean deleteOwner(Principal caller, Principal owner) throws NotOwnerException, LastOwnerException; | 11,776 |
public abstract boolean isOwner(Principal owner); | boolean isOwner(Principal owner); | 11,777 |
public WordBreakIterator () { iter = null; } | public WordBreakIterator () { } | 11,778 |
public final Class getCategory() { return PrinterLocation.class; } | public Class getCategory() { return PrinterLocation.class; } | 11,779 |
public final String getName() { return "printer-location"; } | public String getName() { return "printer-location"; } | 11,780 |
public short acceptNode(Node n) { if (n.getNodeType() != Node.ELEMENT_NODE) { return NodeFilter.FILTER_SKIP; } if (nodeNames != null && !acceptName(n.getLocalName())) { return NodeFilter.FILTER_SKIP; } if (attributeNames != null && !acceptAttributes(n.getAttributes())) ... | public short acceptNode(Node n) { if (n.getNodeType() != Node.ELEMENT_NODE) { return NodeFilter.FILTER_SKIP; } String localName = n.getLocalName(); if (localName == null) { localName = n.getNodeName(); } if (nodeNames != null && !acceptName(localName)) { return NodeFilter.FILTER_SK... | 11,781 |
public FillTest(String fname, int kilos) throws FileNotFoundException, IOException{ byte[] bbuf=new byte[1024]; for(int i=0; i<1024; i++) bbuf[i]=(byte)(i%8+65); FileOutputStream fos = new FileOutputStream(fname, false); int written=0; while(written<kilos) { System.out.print("."); fos.write(bbuf, 0, 1024)... | public FillTest(String fname, int kilos) throws FileNotFoundException, IOException{ byte[] bbuf=new byte[1024]; for(int i=0; i<1024; i++) bbuf[i]=(byte)(i%8+65); FileOutputStream fos = new FileOutputStream(fname, false); int written=0; while(written<kilos) { if(written%10 == 0) System.out.print("."); fos.... | 11,784 |
public FillTest(String fname, int kilos) throws FileNotFoundException, IOException{ byte[] bbuf=new byte[1024]; for(int i=0; i<1024; i++) bbuf[i]=(byte)(i%8+65); FileOutputStream fos = new FileOutputStream(fname, false); int written=0; while(written<kilos) { System.out.print("."); fos.write(bbuf, 0, 1024)... | public FillTest(String fname, int kilos) throws FileNotFoundException, IOException{ byte[] bbuf=new byte[1024]; for(int i=0; i<1024; i++) bbuf[i]=(byte)(i%8+65); FileOutputStream fos = new FileOutputStream(fname, false); int written=0; while(written<kilos) { System.out.print("."); fos.write(bbuf, 0, 1024)... | 11,785 |
public synchronized void readConfiguration() throws IOException, SecurityException { String path; InputStream inputStream; path = System.getProperty("java.util.logging.config.file"); if ((path == null) || (path.length() == 0)) { String url = (System.getProperty("gnu.classpath.home.url")... | public synchronized void readConfiguration() throws IOException, SecurityException String path; InputStream inputStream; path = System.getProperty("java.util.logging.config.file"); if ((path == null) || (path.length() == 0)) String url = (System.getProperty("gnu.classpath.home.url") ... | 11,786 |
public synchronized void readConfiguration() throws IOException, SecurityException { String path; InputStream inputStream; path = System.getProperty("java.util.logging.config.file"); if ((path == null) || (path.length() == 0)) { String url = (System.getProperty("gnu.classpath.home.url")... | public synchronized void readConfiguration() throws IOException, SecurityException { String path; InputStream inputStream; path = System.getProperty("java.util.logging.config.file"); if ((path == null) || (path.length() == 0)) { String url = (System.getProperty("gnu.classpath.home.url")... | 11,787 |
public LoginException (String message) { super (message); } | public LoginException() { super (message); } | 11,788 |
public LoginException (String message) { super (message); } | public LoginException (String message) { } | 11,789 |
public void close() throws IOException { super.close(); //mark the filesystem clean superblock.setState(Ext2Constants.EXT2_VALID_FS); } | public void close() throws IOException { super.close(); //mark the filesystem clean } | 11,790 |
public void stateChanged(ChangeEvent e) { // System.err.println(this + ".stateChanged()"); calculatePreferredSize(); layoutContainer(scrollbar); getThumbBounds(); scrollbar.repaint(); } | public void stateChanged(ChangeEvent e) { // System.err.println(this + ".stateChanged()"); calculatePreferredSize(); getThumbBounds(); scrollbar.repaint(); } | 11,793 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o... | 11,794 |
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(200, null); scrollTimer.setRepeats(true); installComponents(); installDefaults(); configureScrollBarColors(... | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(200, null); scrollTimer.setRepeats(true); installComponents(); installDefaults(); configureScrollBarColors(... | 11,796 |
public void paint(Graphics g, JComponent c) { layoutContainer(scrollbar); paintTrack(g, c, getTrackBounds()); paintThumb(g, c, getThumbBounds()); if (trackHighlight == INCREASE_HIGHLIGHT) paintIncreaseHighlight(g); else if (trackHighlight == DECREASE_HIGHLIGHT) paintDecreaseHighlight(g); } | public void paint(Graphics g, JComponent c) { paintTrack(g, c, getTrackBounds()); paintThumb(g, c, getThumbBounds()); if (trackHighlight == INCREASE_HIGHLIGHT) paintIncreaseHighlight(g); else if (trackHighlight == DECREASE_HIGHLIGHT) paintDecreaseHighlight(g); } | 11,797 |
public JScrollBar createHorizontalScrollBar() { return new JScrollBar(SwingConstants.HORIZONTAL); } | public JScrollBar createHorizontalScrollBar() { return new ScrollBar(SwingConstants.HORIZONTAL); } | 11,798 |
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ... | ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ... | 11,799 |
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ... | ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ... | 11,800 |
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ... | ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ... | 11,801 |
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ... | ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ... | 11,802 |
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ... | ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); ... | 11,803 |
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod... | public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod... | 11,804 |
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod... | public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vp != null && event.getSource() == vp) { ... | 11,805 |
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod... | public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod... | 11,806 |
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod... | public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod... | 11,807 |
public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod... | public void stateChanged(ChangeEvent event) { int xpos = 0; int ypos = 0; JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); if (vsb != null) { BoundedRangeMod... | 11,808 |
public JScrollBar createVerticalScrollBar() { return new JScrollBar(SwingConstants.VERTICAL); } | public JScrollBar createVerticalScrollBar() { return new ScrollBar(SwingConstants.VERTICAL); } | 11,809 |
public void setCoalescing(boolean value) { coalescing = value; } // setCoalescing() | public void setCoalescing(boolean value) { coalescing = value; } // setCoalescing() | 11,811 |
public void setIgnoringComments(boolean value) { ignoreComments = value; } // setIgnoringComments() | public void setIgnoringComments(boolean value) { ignoreComments = value; } // setIgnoringComments() | 11,812 |
public void setIgnoringElementContentWhitespace(boolean value) { whitespace = value; } // setIgnoringElementContentWhitespace() | public void setIgnoringElementContentWhitespace(boolean value) { whitespace = value; } // setIgnoringElementContentWhitespace() | 11,813 |
private static String decodeName(int platform, int encoding, int language, ByteBuffer buffer, int offset, int len) { byte[] byteBuf; String charsetName; int oldPosition; charsetName = getCharsetName(platform, language, encoding); if (charsetName == null) return n... | private static String decodeName(int platform, int encoding, int language, ByteBuffer buffer, int offset, int len) { byte[] byteBuf; String charsetName; int oldPosition; charsetName = getCharsetName(platform, language, encoding); if (charsetName == null) return n... | 11,815 |
private static String decodeName(int platform, int encoding, int language, ByteBuffer buffer, int offset, int len) { byte[] byteBuf; String charsetName; int oldPosition; charsetName = getCharsetName(platform, language, encoding); if (charsetName == null) return n... | private static String decodeName(int platform, int encoding, int language, ByteBuffer buffer, int offset, int len) { byte[] byteBuf; String charsetName; int oldPosition; charsetName = getCharsetName(platform, language, encoding); if (charsetName == null) return n... | 11,816 |
public synchronized boolean equals(Object o) { if (this == o) return true; if (!(o instanceof SimpleTimeZone)) return false; SimpleTimeZone zone = (SimpleTimeZone) o; if (zone.hashCode() != hashCode() || !getID().equals(zone.getID()) || rawOffset != zone.rawOffset || useDaylight != zone.useDayl... | public synchronized boolean equals(Object o) { if (this == o) return true; if (!(o instanceof SimpleTimeZone)) return false; SimpleTimeZone zone = (SimpleTimeZone) o; if (zone.hashCode() != hashCode() || !getID().equals(zone.getID()) || rawOffset != zone.rawOffset || useDaylight != zone.useDayl... | 11,817 |
public boolean hasSameRules(TimeZone other) { if (this == other) return true; if (!(other instanceof SimpleTimeZone)) return false; SimpleTimeZone zone = (SimpleTimeZone) other; if (zone.hashCode() != hashCode() || rawOffset != zone.rawOffset || useDaylight != zone.useDaylight) return fals... | public boolean hasSameRules(TimeZone other) { if (this == other) return true; if (!(other instanceof SimpleTimeZone)) return false; SimpleTimeZone zone = (SimpleTimeZone) other; if (zone.hashCode() != hashCode() || rawOffset != zone.rawOffset || useDaylight != zone.useDaylight) return fals... | 11,819 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.