bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | 19,794 |
public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | 19,795 |
public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | 19,796 |
public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | public void paintDirtyRegions() { // step 1: pull out roots and calculate spanning damage HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) ... | 19,797 |
public synchronized void removeInvalidComponent(JComponent component) { invalidComponents.removeElement(component); } | public synchronized void removeInvalidComponent(JComponent component) { invalidComponents.remove(component); } | 19,798 |
public void validateInvalidComponents() { for (Enumeration e = invalidComponents.elements(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) continue; comp.validate(); } invalidComponents.clear(); } | public void validateInvalidComponents() { synchronized(this) { ArrayList swap = invalidComponents; invalidComponents = workInvalidComponents; workInvalidComponents = swap; } for (Iterator i = workInvalidComponents.iterator(); i.hasNext(); ) { JComponent comp = (JComponent) e.nextElement(); i... | 19,799 |
public void validateInvalidComponents() { for (Enumeration e = invalidComponents.elements(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) continue; comp.validate(); } invalidComponents.clear(); } | public void validateInvalidComponents() { for (Enumeration e = invalidComponents.elements(); e.hasMoreElements(); ) { JComponent comp = (JComponent) i.next(); if (! (comp.isVisible() && comp.isShowing())) continue; comp.validate(); } invalidComponents.clear(); } | 19,800 |
public void validateInvalidComponents() { for (Enumeration e = invalidComponents.elements(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) continue; comp.validate(); } invalidComponents.clear(); } | public void validateInvalidComponents() { for (Enumeration e = invalidComponents.elements(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) continue; comp.validate(); } workInvalidComponents.clear();... | 19,801 |
public void startElement (String qName, AttributeList qAtts) throws SAXException { // These are exceptions from the // first pass; they should be // ignored if there's a second pass, // but reported otherwise. Vector exceptions = null; // If we're not doing Namespace // processing, dispatch thi... | public void startElement (String qName, AttributeList qAtts) throws SAXException { // These are exceptions from the // first pass; they should be // ignored if there's a second pass, // but reported otherwise. Vector exceptions = null; // If we're not doing Namespace // processing, dispatch thi... | 19,805 |
public void startElement (String qName, AttributeList qAtts) throws SAXException { // These are exceptions from the // first pass; they should be // ignored if there's a second pass, // but reported otherwise. Vector exceptions = null; // If we're not doing Namespace // processing, dispatch thi... | public void startElement (String qName, AttributeList qAtts) throws SAXException { // These are exceptions from the // first pass; they should be // ignored if there's a second pass, // but reported otherwise. Vector exceptions = null; // If we're not doing Namespace // processing, dispatch thi... | 19,806 |
final void startApp(final String name, final String className) { try { final Runnable runner = new Runnable() { public void run() { try { final ClassLoader cl = Thread.currentThread().getContextClassLoader(); final Class cls = cl.loadClass(className); final Method main = cls.getMethod("main", ... | final void startApp(final String name, final String className) { try { final Runnable runner = new Runnable() { public void run() { try { final ClassLoader cl = Thread.currentThread().getContextClassLoader(); final Class cls = cl.loadClass(className); final Method main = cls.getMethod("main", ... | 19,807 |
public void run() { try { final ClassLoader cl = Thread.currentThread().getContextClassLoader(); final Class cls = cl.loadClass(className); final Method main = cls.getMethod("main", mainTypes); final Object[] args = { new String[0] }; main.invoke(null, args); } catch (SecurityE... | public void run() { try { final ClassLoader cl = Thread.currentThread().getContextClassLoader(); final Class cls = cl.loadClass(className); final Method main = cls.getMethod("main", mainTypes); final Object[] args = { new String[0] }; main.invoke(null, args); } catch (SecurityE... | 19,808 |
public static Font decode (String fontspec){ String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase... | public static Font decode (String fontspec){ String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase... | 19,809 |
public UnmarshalException(String s, Exception e) { super(s, e); } | public UnmarshalException(String s) { super(s, e); } | 19,810 |
public UnmarshalException(String s, Exception e) { super(s, e); } | public UnmarshalException(String s, Exception e) { super(s); } | 19,811 |
public static synchronized JarFile get (URL url, boolean useCaches) throws IOException { JarFile jf; if (useCaches) { jf = (JarFile) cache.get (url); if (jf != null) return jf; } if ("file".equals (url.getProtocol())) { Fil... | public static synchronized JarFile get (URL url, boolean useCaches) throws IOException { JarFile jf; if (useCaches) { jf = (JarFile) cache.get (url); if (jf != null) return jf; } if ("file".equals (url.getProtocol())) { Str... | 19,812 |
public INodeTable(Ext2FileSystem fs, int firstBlock) { this.fs = fs; this.firstBlock = firstBlock; blockSize=fs.getSuperblock().getBlockSize(); blockCount = (int)Math.ceil( (double)(fs.getSuperblock().getINodesCount()*INode.INODE_LENGTH) / (double) blockSize); } | public INodeTable(Ext2FileSystem fs, int firstBlock) { this.fs = fs; this.firstBlock = firstBlock; blockSize=fs.getSuperblock().getBlockSize(); blockCount = (int)Math.ceil( (double)(fs.getSuperblock().getINodesCount()*INode.INODE_LENGTH) / (double) blockSize); } | 19,813 |
public INodeTable(Ext2FileSystem fs, int firstBlock) { this.fs = fs; this.firstBlock = firstBlock; blockSize=fs.getSuperblock().getBlockSize(); blockCount = (int)Math.ceil( (double)(fs.getSuperblock().getINodesCount()*INode.INODE_LENGTH) / (double) blockSize); } | public INodeTable(Ext2FileSystem fs, int firstBlock) { this.fs = fs; this.firstBlock = firstBlock; blockSize=fs.getSuperblock().getBlockSize(); blockCount = (int)Math.ceil( (double)(fs.getSuperblock().getINodesCount()*INode.INODE_LENGTH) / (double) blockSize); } | 19,814 |
public INodeTable(Ext2FileSystem fs, int firstBlock) { this.fs = fs; this.firstBlock = firstBlock; blockSize=fs.getSuperblock().getBlockSize(); blockCount = (int)Math.ceil( (double)(fs.getSuperblock().getINodesCount()*INode.INODE_LENGTH) / (double) blockSize); } | public INodeTable(Ext2FileSystem fs, int firstBlock) { this.fs = fs; this.firstBlock = firstBlock; blockSize=fs.getSuperblock().getBlockSize(); blockCount = (int)Math.ceil( (double)(fs.getSuperblock().getINodesPerGroup()*INode.INODE_LENGTH) / (double) blockSize); } | 19,815 |
public void removeLayoutComponent(Component component) { // do nothing } | public void removeLayoutComponent(Component component) { // do nothing } | 19,817 |
public void propertyChange(PropertyChangeEvent e) { JFileChooser filechooser = getFileChooser(); String n = e.getPropertyName(); if (n.equals(JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY)) { int mode = -1; if (filechooser.isMultiSelectionEnabled()) ... | public void propertyChange(PropertyChangeEvent e) { JFileChooser filechooser = getFileChooser(); String n = e.getPropertyName(); if (n.equals(JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY)) { int mode = -1; if (filechooser.isMultiSelectionEnabled()) ... | 19,818 |
void completeEditing() { if (editField != null && editFile != null) { String text = editField.getText(); if (text != null && text != "" && !text.equals(fc.getName(editFile))) if (editFile.renameTo (fc.getFileSystemView().createFileObject ... | void completeEditing() { if (editField != null && editFile != null) { String text = editField.getText(); if (text != null && text != "" && !text.equals(fc.getName(editFile))) if (editFile.renameTo (fc.getFileSystemView().createFileObject ... | 19,819 |
void completeEditing() { if (editField != null && editFile != null) { String text = editField.getText(); if (text != null && text != "" && !text.equals(fc.getName(editFile))) if (editFile.renameTo (fc.getFileSystemView().createFileObject ... | void completeEditing() { if (editField != null && editFile != null) { String text = editField.getText(); if (text != null && text != "" && !text.equals(fc.getName(editFile))) if (editFile.renameTo (fc.getFileSystemView().createFileObject ... | 19,820 |
public void removeLayoutComponent(Component component) { // do nothing } | public void removeLayoutComponent(Component component) { // do nothing } | 19,821 |
public boolean doAccessibleAction(int value0) { return false; // TODO } // doAccessibleAction() | public boolean doAccessibleAction(int value0) { return false; // TODO } // doAccessibleAction() | 19,822 |
public AccessibleAction getAccessibleAction() { return null; // TODO } // getAccessibleAction() | public AccessibleAction getAccessibleAction() { return null; // TODO } // getAccessibleAction() | 19,823 |
public int getAccessibleActionCount() { return 0; // TODO } // getAccessibleActionCount() | public int getAccessibleActionCount() { return 0; // TODO } // getAccessibleActionCount() | 19,824 |
public String getAccessibleActionDescription(int value0) { return null; // TODO } // getAccessibleActionDescription() | public String getAccessibleActionDescription(int value0) { return null; // TODO } // getAccessibleActionDescription() | 19,825 |
public AccessibleIcon[] getAccessibleIcon() { return null; // TODO } // getAccessibleIcon() | public AccessibleIcon[] getAccessibleIcon() { return null; // TODO } // getAccessibleIcon() | 19,826 |
public String getAccessibleName() { return null; // TODO } // getAccessibleName() | public String getAccessibleName() { return null; // TODO } // getAccessibleName() | 19,827 |
public AccessibleRelationSet getAccessibleRelationSet() { return null; // TODO } // getAccessibleRelationSet() | public AccessibleRelationSet getAccessibleRelationSet() { return null; // TODO } // getAccessibleRelationSet() | 19,828 |
public AccessibleStateSet getAccessibleStateSet() { return null; // TODO } // getAccessibleStateSet() | public AccessibleStateSet getAccessibleStateSet() { return null; // TODO } // getAccessibleStateSet() | 19,829 |
public AccessibleText getAccessibleText() { return null; // TODO } // getAccessibleText() | public AccessibleText getAccessibleText() { return null; // TODO } // getAccessibleText() | 19,830 |
public AccessibleValue getAccessibleValue() { return null; // TODO } // getAccessibleValue() | public AccessibleValue getAccessibleValue() { return null; // TODO } // getAccessibleValue() | 19,831 |
public String getAfterIndex(int value0, int value1) { return null; // TODO } // getAfterIndex() | public String getAfterIndex(int value0, int value1) { return null; // TODO } // getAfterIndex() | 19,832 |
public String getAtIndex(int value0, int value1) { return null; // TODO } // getAtIndex() | public String getAtIndex(int value0, int value1) { return null; // TODO } // getAtIndex() | 19,833 |
public String getBeforeIndex(int value0, int value1) { return null; // TODO } // getBeforeIndex() | public String getBeforeIndex(int value0, int value1) { return null; // TODO } // getBeforeIndex() | 19,834 |
public int getCaretPosition() { return 0; // TODO } // getCaretPosition() | public int getCaretPosition() { return 0; // TODO } // getCaretPosition() | 19,835 |
public int getCharCount() { return 0; // TODO } // getCharCount() | public int getCharCount() { return 0; // TODO } // getCharCount() | 19,836 |
public AttributeSet getCharacterAttribute(int value0) { return null; // TODO } // getCharacterAttribute() | public AttributeSet getCharacterAttribute(int value0) { return null; // TODO } // getCharacterAttribute() | 19,837 |
public Rectangle getCharacterBounds(int value0) { return null; // TODO } // getCharacterBounds() | public Rectangle getCharacterBounds(int value0) { return null; // TODO } // getCharacterBounds() | 19,838 |
public Number getCurrentAccessibleValue() { return null; // TODO } // getCurrentAccessibleValue() | public Number getCurrentAccessibleValue() { return null; // TODO } // getCurrentAccessibleValue() | 19,839 |
public int getIndexAtPoint(Point value0) { return 0; // TODO } // getIndexAtPoint() | public int getIndexAtPoint(Point value0) { return 0; // TODO } // getIndexAtPoint() | 19,840 |
public Number getMaximumAccessibleValue() { return null; // TODO } // getMaximumAccessibleValue() | public Number getMaximumAccessibleValue() { return null; // TODO } // getMaximumAccessibleValue() | 19,841 |
public Number getMinimumAccessibleValue() { return null; // TODO } // getMinimumAccessibleValue() | public Number getMinimumAccessibleValue() { return null; // TODO } // getMinimumAccessibleValue() | 19,842 |
public String getSelectedText() { return null; // TODO } // getSelectedText() | public String getSelectedText() { return null; // TODO } // getSelectedText() | 19,843 |
public int getSelectionEnd() { return 0; // TODO } // getSelectionEnd() | public int getSelectionEnd() { return 0; // TODO } // getSelectionEnd() | 19,844 |
public int getSelectionStart() { return 0; // TODO } // getSelectionStart() | public int getSelectionStart() { return 0; // TODO } // getSelectionStart() | 19,845 |
private Rectangle getTextRectangle() { return null; // TODO } // getTextRectangle() | private Rectangle getTextRectangle() { return null; // TODO } // getTextRectangle() | 19,846 |
public boolean setCurrentAccessibleValue(Number value0) { return false; // TODO } // setCurrentAccessibleValue() | public boolean setCurrentAccessibleValue(Number value0) { return false; // TODO } // setCurrentAccessibleValue() | 19,847 |
protected int checkHorizontalKey(int key, String exception) { // Verify that key is a legal value for the horizontalAlignment properties. return 0; } | protected int checkHorizontalKey(int key, String exception) { // Verify that key is a legal value for the horizontalAlignment properties. return 0; } | 19,848 |
protected int checkVerticalKey(int key, String exception) { // Ensures that the key is a valid. return 0; } | protected int checkVerticalKey(int key, String exception) { // Ensures that the key is a valid. return 0; } | 19,849 |
protected ActionListener createActionListener() { return new ActionListener() { public void actionPerformed(ActionEvent e) { } }; } | protected ActionListener createActionListener() { return new ActionListener() { public void actionPerformed(ActionEvent e) { } }; } | 19,850 |
public void actionPerformed(ActionEvent e) { } | public void actionPerformed(ActionEvent e) { } | 19,851 |
protected ChangeListener createChangeListener() { // Subclasses that want to handle ChangeEvents differently can override this to return another ChangeListener implementation. return new ChangeListener() { public void stateChanged(ChangeEvent e) { } }; } | protected ChangeListener createChangeListener() { // Subclasses that want to handle ChangeEvents differently can override this to return another ChangeListener implementation. return new ChangeListener() { public void stateChanged(ChangeEvent e) { } }; } | 19,852 |
protected ItemListener createItemListener() { return new ItemListener() { public void itemStateChanged(ItemEvent e) { } }; } | protected ItemListener createItemListener() { return new ItemListener() { public void itemStateChanged(ItemEvent e) { } }; } | 19,853 |
protected void fireActionPerformed(ActionEvent event) { getModel().fireActionPerformed(event); } | protected void fireActionPerformed(ActionEvent event) { getModel().fireActionPerformed(event); } | 19,854 |
protected void fireItemStateChanged(ItemEvent event) { getModel().fireItemStateChanged(event); } | protected void fireItemStateChanged(ItemEvent event) { getModel().fireItemStateChanged(event); } | 19,855 |
protected void fireStateChanged(ChangeEvent event) { getModel().fireStateChanged(event); } | protected void fireStateChanged(ChangeEvent event) { getModel().fireStateChanged(event); } | 19,856 |
public Action getAction() { return action_taken; } | public Action getAction() { return action_taken; } | 19,857 |
public String getActionCommand() { return getModel().getActionCommand(); } | public String getActionCommand() { return getModel().getActionCommand(); } | 19,858 |
public String getLabel() { return getText(); } | public String getLabel() { return getText(); } | 19,859 |
public ButtonUI getUI() { //Returns the L&F object that renders this component. return (ButtonUI) ui; } | public ButtonUI getUI() { //Returns the L&F object that renders this component. return (ButtonUI) ui; } | 19,860 |
public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) { //This is overridden to return false if the current Icon's Image is not equal to the passed in Image img. return current_icon == img; } | public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) { //This is overridden to return false if the current Icon's Image is not equal to the passed in Image img. return current_icon == img; } | 19,861 |
public boolean isBorderPainted() { return paint_border; } | public boolean isBorderPainted() { return paint_border; } | 19,862 |
protected void paintBorder(Graphics g) { // Paint the button's border if BorderPainted property is true. if (isBorderPainted()) super.paintBorder(g); } | protected void paintBorder(Graphics g) { // Paint the button's border if BorderPainted property is true. if (isBorderPainted()) super.paintBorder(g); } | 19,863 |
public void removeActionListener(ActionListener l) { getModel().removeActionListener(l); } | public void removeActionListener(ActionListener l) { getModel().removeActionListener(l); } | 19,864 |
public void removeItemListener(ItemListener l) { getModel().removeItemListener(l); } | public void removeItemListener(ItemListener l) { getModel().removeItemListener(l); } | 19,865 |
public void setActionCommand(String aCommand) { getModel().setActionCommand(aCommand); } | public void setActionCommand(String aCommand) { getModel().setActionCommand(aCommand); } | 19,866 |
public void setFocusPainted(boolean b) { boolean old = paint_focus; paint_focus = b; firePropertyChange(FOCUS_PAINTED_CHANGED_PROPERTY, old, b); if (hasFocus()) { revalidate(); repaint(); } } | public void setFocusPainted(boolean b) { boolean old = paint_focus; paint_focus = b; firePropertyChange(FOCUS_PAINTED_CHANGED_PROPERTY, old, b); if (hasFocus()) { revalidate(); repaint(); } } | 19,867 |
public void setFocusPainted(boolean b) { boolean old = paint_focus; paint_focus = b; firePropertyChange(FOCUS_PAINTED_CHANGED_PROPERTY, old, b); if (hasFocus()) { revalidate(); repaint(); } } | public void setFocusPainted(boolean b) { boolean old = paint_focus; paint_focus = b; firePropertyChange(FOCUS_PAINTED_CHANGED_PROPERTY, old, b); if (hasFocus()) { revalidate(); repaint(); } } | 19,868 |
public void setLabel(String label) { setText(label); } | public void setLabel(String label) { setText(label); } | 19,869 |
public void setPressedIcon(Icon pressedIcon) { pressed_button = pressedIcon; revalidate(); repaint(); } | public void setPressedIcon(Icon pressedIcon) { pressed_button = pressedIcon; revalidate(); repaint(); } | 19,870 |
public void setRolloverIcon(Icon rolloverIcon) { // Sets the rollover icon for the button. } | public void setRolloverIcon(Icon rolloverIcon) { // Sets the rollover icon for the button. } | 19,871 |
public void setRolloverSelectedIcon(Icon rolloverSelectedIcon) { // Sets the rollover selected icon for the button. } | public void setRolloverSelectedIcon(Icon rolloverSelectedIcon) { // Sets the rollover selected icon for the button. } | 19,872 |
public void setVerticalAlignment(int alignment) { vert_align = alignment; } | public void setVerticalAlignment(int alignment) { vert_align = alignment; } | 19,873 |
public void setVerticalTextPosition(int textPosition) { vert_text_pos = textPosition; } | public void setVerticalTextPosition(int textPosition) { vert_text_pos = textPosition; } | 19,874 |
public Dimension getPreferredSize(JComponent c) { return getPreferredMenuItemSize(c, checkIcon, arrowIcon, defaultTextIconGap); } | public Dimension getPreferredSize(JComponent c) { return getPreferredMenuItemSize(c, checkIcon, arrowIcon, defaultTextIconGap); } | 19,876 |
protected JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".contentPane"); p.setLayout(new BorderLayout()); return p; } | protected Container createContentPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".contentPane"); p.setLayout(new BorderLayout()); return p; } | 19,878 |
public boolean isSelected() { return super.isArmed(); } | public boolean isSelected() { return super.isSelected(); } | 19,879 |
public void insert(Component component, int index) { // TODO } // insert() | public void insert(Component component, int index) { // TODO } // insert() | 19,880 |
protected void installDefaults(JComponent c) { c.setOpaque(true); c.setBackground(UIManager.getColor("Viewport.background")); } | protected void installDefaults(JComponent c) { c.setOpaque(true); LookAndFeel.installColorsAndFont(c, "Viewport.background", "Viewport.foreground", "Viewport.font"); } | 19,881 |
public abstract void parse(Reader reader, ParserCallback callback, boolean ignoreCharSet ) throws java.io.IOException; | public abstract void parse(Reader reader, ParserCallback callback, boolean ignoreCharSet ) throws java.io.IOException; | 19,882 |
public void addAttribute(Object key, Object value) { super.addAttribute(key.toString().toLowerCase(), value); } | public void addAttribute(Object key, Object value) { if (key instanceof String) super.addAttribute(((String) key).toLowerCase(), value); else super.addAttribute(key, value); } | 19,883 |
public Object getAttribute(Object _key) { Object key = _key.toString().toLowerCase(); Object v = super.getAttribute(key); if (v != null) return v; else if (parent != null) return parent.getAttribute(key); else return null; } | public Object getAttribute(Object _key) { Object key = _key.toString().toLowerCase(); v = super.getAttribute(key); if (v != null) return v; else if (parent != null) return parent.getAttribute(key); else return null; } | 19,884 |
public Object getAttribute(Object _key) { Object key = _key.toString().toLowerCase(); Object v = super.getAttribute(key); if (v != null) return v; else if (parent != null) return parent.getAttribute(key); else return null; } | public Object getAttribute(Object _key) { Object key = _key.toString().toLowerCase(); Object v = super.getAttribute(key); if (v != null) return v; key = HTML.getAttributeKey((String) key); v = super.getAttribute(key); if (v != null) return v; if (parent != null) return parent.getAttribute(key... | 19,885 |
public Enumeration getAttributeNames() { // Replace the string keys by HTML.attribute, where applicable final Enumeration enumeration = super.getAttributeNames(); return new Enumeration() { public boolean hasMoreElements() { return enumeration.hasMoreElements(); } p... | public Enumeration getAttributeNames() { // Replace the string keys by HTML.attribute, where applicable final Enumeration enumeration = super.getAttributeNames(); return new Enumeration() { public boolean hasMoreElements() { return enumeration.hasMoreElements(); } p... | 19,886 |
public Object nextElement() { Object key = enumeration.nextElement(); HTML.Attribute hKey = HTML.getAttributeKey((String) key); if (hKey != null) return hKey; else return key; } | public Object nextElement() { Object key = enumeration.nextElement(); HTML.Attribute hKey = HTML.getAttributeKey((String) key); if (hKey != null) return hKey; } return key; } | 19,887 |
Obj(org.omg.CORBA.Object _object, byte[] _key, Servant _servant, POA _poa) { object = _object; key = _key; servant = _servant; poa = _poa; } | Obj(org.omg.CORBA.Object _object, byte[] _key, Servant _servant, gnuPOA _poa) { object = _object; key = _key; servant = _servant; poa = _poa; } | 19,888 |
public Obj add(org.omg.CORBA.Object object, Servant servant, POA poa) { return add(generateObjectKey(object), object, servant, poa); } | public Obj add(org.omg.CORBA.Object object, Servant servant, gnuPOA poa) { return add(generateObjectKey(object), object, servant, poa); } | 19,889 |
public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedInd... | public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedInd... | 19,890 |
public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedInd... | public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedInd... | 19,891 |
public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedInd... | public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedInd... | 19,892 |
public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; boolean controlPressed = event.isControlDown(); if (controlPressed) { if (BasicListUI.this.list.getSelec... | public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; boolean controlPressed = event.isControlDown(); if (controlPressed) { if (BasicListUI.this.list.getSelec... | 19,893 |
public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; boolean controlPressed = event.isControlDown(); if (controlPressed) { if (BasicListUI.this.list.getSelec... | public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; boolean controlPressed = event.isControlDown(); if (controlPressed) { if (BasicListUI.this.list.getSelec... | 19,894 |
void damageLayout() { updateLayoutStateNeeded = 1; if (list != null) list.revalidate(); } | void damageLayout() { updateLayoutStateNeeded = 1; if (list != null) list.revalidate(); } | 19,896 |
public void setElem(int i, int val) { data[i+offset] = (float) val; } | public void setElem(int i, int val) { data[i+offset] = val; } | 19,897 |
private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a.... | private Object[] getProperty(Object o, String prop) { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a.b.c. int pos; String rest = null; if ((pos = prop.indexOf('.')) != -1) ... | 19,899 |
private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a.... | private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a.... | 19,900 |
private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a.... | private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a.... | 19,901 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.