bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public int getConditionForKeyStroke(KeyStroke aKeyStroke) { //Return the condition that determines whether a registered action occurs in response to the specified keystroke. return 0; } | public int getConditionForKeyStroke(KeyStroke aKeyStroke) { //Return the condition that determines whether a registered action occurs in response to the specified keystroke. return 0; } | 23,779 |
public Insets getInsets() { // System.out.println("watch this border"); // DebugMe(border); // System.out.println("border = " + border); if (border == null) { //System.out.println("compares to null !"); return super.getInsets(); } // System.out.println("compare failed !"); return getBorder().getBorderInset... | public Insets getInsets() { // System.out.println("watch this border"); // DebugMe(border); // System.out.println("border = " + border); if (border == null) { //System.out.println("compares to null !"); return super.getInsets(); } // System.out.println("compare failed !"); return getBorder().getBorderInset... | 23,780 |
public Insets getInsets() { // System.out.println("watch this border"); // DebugMe(border); // System.out.println("border = " + border); if (border == null) { //System.out.println("compares to null !"); return super.getInsets(); } // System.out.println("compare failed !"); return getBorder().getBorderInset... | public Insets getInsets() { // System.out.println("watch this border"); // DebugMe(border); // System.out.println("border = " + border); if (border == null) { //System.out.println("compares to null !"); return super.getInsets(); } // System.out.println("compare failed !"); return getBorder().getBorderInset... | 23,781 |
public Insets getInsets() { // System.out.println("watch this border"); // DebugMe(border); // System.out.println("border = " + border); if (border == null) { //System.out.println("compares to null !"); return super.getInsets(); } // System.out.println("compare failed !"); return getBorder().getBorderInset... | public Insets getInsets() { // System.out.println("watch this border"); // DebugMe(border); // System.out.println("border = " + border); if (border == null) { //System.out.println("compares to null !"); return super.getInsets(); } // System.out.println("compare failed !"); return getBorder().getBorderInset... | 23,782 |
public EventListener[] getListeners (Class listenerType) { return listenerList.getListeners (listenerType); } | public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners (listenerType); } | 23,783 |
public EventListener[] getListeners (Class listenerType) { return listenerList.getListeners (listenerType); } | public EventListener[] getListeners (Class listenerType) { return listenerList.getListeners(listenerType); } | 23,784 |
public Point getLocation(Point rv) { //Store the x,y origin of this component into "return value" rv and return rv. if (rv == null) return new Point(getX(), getY()); rv.setLocation(getX(), getY()); return rv; } | publicif (rv == null) return new Point(getX(), getY()); Pointif (rv == null) return new Point(getX(), getY()); getLocation(Pointif (rv == null) return new Point(getX(), getY()); rv) { //Storeif (rv == null) return new Point(getX(), getY()); theif (rv == null) return new Point(getX(), getY()); x,yif (rv == null) retur... | 23,785 |
public Point getLocation(Point rv) { //Store the x,y origin of this component into "return value" rv and return rv. if (rv == null) return new Point(getX(), getY()); rv.setLocation(getX(), getY()); return rv; } | public Point getLocation(Point rv) { //Store the x,y origin of this component into "return value" rv and return rv. if (rv == null) return new Point(getX(), getY()); rv.setLocation(getX(), getY()); return rv; } | 23,786 |
public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dim... | public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dim... | 23,787 |
public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dim... | public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dim... | 23,788 |
public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dim... | public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dim... | 23,789 |
public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dim... | publicDimensiongetMaximumSize() { if(max!=null) { //System.out.println("HAVE_MAX_SIZE="+max); returnmax; } if(ui!=null) { Dimensions=ui.getMaximumSize(this); if(s!=null) { //System.out.println("UI-MAX="+s+",UI="+ui+",IM="+this); returns; } } Dimensionp=super.getMaximumSize(); //System.out.print... | 23,790 |
public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimensio... | public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimensio... | 23,791 |
public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimensio... | public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimensio... | 23,792 |
public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimensio... | public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimensio... | 23,793 |
public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimensio... | publicDimensiongetMinimumSize() { if(min!=null) { //System.out.println("HAVE_MIN_SIZE="+min); returnmin; } if(ui!=null) { Dimensions=ui.getMinimumSize(this); if(s!=null) { // System.out.println("UI-MIN="+s+",UI="+ui+",IM="+this); returns; } } Dimensionp=super.getMinimumSize(); // System.out.p... | 23,794 |
public Component getNextFocusableComponent() { // Return the next focusable component or null if the focus manager should choose the next focusable component automatically return null; } | publicComponentgetNextFocusableComponent() { //Returnthenextfocusablecomponentornullifthefocusmanagershouldchoosethenextfocusablecomponentautomatically returnnull; } | 23,795 |
public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } ... | public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } ... | 23,796 |
public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } ... | public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } ... | 23,797 |
public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } ... | public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } ... | 23,798 |
public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } ... | publicDimensiongetPreferredSize() { if(pref!=null) { //System.out.println("HAVE_PREF_SIZE="+pref); returnpref; } if(ui!=null) { Dimensions=ui.getPreferredSize(this); if(s!=null) { //System.out.println("UI-PREF="+s+",UI="+ui+",IM="+this); returns; } } Dimensionp=super.getPreferredSize(); // Sy... | 23,799 |
public KeyStroke[] getRegisteredKeyStrokes() { // Return the KeyStrokes that will initiate registered actions. return null; } | publicKeyStroke[]getRegisteredKeyStrokes() { //ReturntheKeyStrokesthatwillinitiateregisteredactions. returnnull; } | 23,800 |
public JRootPane getRootPane() { JRootPane p = SwingUtilities.getRootPane(this); System.out.println("root = " + p); return p; } | public JRootPane getRootPane() { JRootPane p = SwingUtilities.getRootPane(this); System.out.println("root = " + p); return p; } | 23,801 |
public Dimension getSize(Dimension rv) { // System.out.println("JComponent, getsize()"); if (rv == null) return new Dimension(getWidth(), getHeight()); else { rv.setSize(getWidth(), getHeight()); return rv; } } | publicDimensiongetSize(Dimensionrv) { // System.out.println("JComponent,getsize()"); if(rv==null) returnnewDimension(getWidth(), getHeight()); else { rv.setSize(getWidth(), getHeight()); returnrv; } } | 23,802 |
public Dimension getSize(Dimension rv) { // System.out.println("JComponent, getsize()"); if (rv == null) return new Dimension(getWidth(), getHeight()); else { rv.setSize(getWidth(), getHeight()); return rv; } } | public Dimension getSize(Dimension rv) { // System.out.println("JComponent, getsize()"); if (rv == null) return new Dimension(getWidth(), getHeight()); else { rv.setSize(getWidth(), getHeight()); return rv; } } | 23,803 |
public Dimension getSize(Dimension rv) { // System.out.println("JComponent, getsize()"); if (rv == null) return new Dimension(getWidth(), getHeight()); else { rv.setSize(getWidth(), getHeight()); return rv; } } | public Dimension getSize(Dimension rv) { // System.out.println("JComponent, getsize()"); if (rv == null) return new Dimension(getWidth(), getHeight()); else { rv.setSize(getWidth(), getHeight()); return rv; } } | 23,804 |
public Point getToolTipLocation(MouseEvent event) { return null; } | public Point getToolTipLocation(MouseEvent event) { return null; } | 23,805 |
public String getToolTipText() { return tool_tip_text; } | public String getToolTipText() { return tool_tip_text; } | 23,806 |
public Container getTopLevelAncestor() { // Returns the top-level ancestor of this component (either the containing Window or Applet), or null if this component has not been added to any container. System.out.println("JComponent, getTopLevelAncestor()"); return null; } | public Container getTopLevelAncestor() { // Returns the top-level ancestor of this component (either the containing Window or Applet), or null if this component has not been added to any container. System.out.println("JComponent, getTopLevelAncestor()"); return null; } | 23,807 |
public String getUIClassID() { /// Return the UIDefaults key used to look up the name of the swing. return "ComponentUI"; } | publicStringgetUIClassID() { ///ReturntheUIDefaultskeyusedtolookupthenameoftheswing. return"ComponentUI"; } | 23,808 |
public VetoableChangeListener[] getVetoableChangeListeners() { return (VetoableChangeListener[]) getListeners (VetoableChangeListener.class); } | public VetoableChangeListener[] getVetoableChangeListeners() { return (VetoableChangeListener[]) getListeners (VetoableChangeListener.class); } | 23,809 |
public Rectangle getVisibleRect() { /// Returns the Component's "visible rectangle" - the intersection of this components visible rectangle: System.out.println("JComponent, getVisibleRect()"); return null; } | public Rectangle getVisibleRect() { /// Returns the Component's "visible rectangle" - the intersection of this components visible rectangle: System.out.println("JComponent, getVisibleRect()"); return null; } | 23,810 |
public void grabFocus() { // Set the focus on the receiving component. } | publicvoidgrabFocus() { //Setthefocusonthereceivingcomponent. } | 23,811 |
public boolean isDoubleBuffered() { return use_double_buffer; } | public boolean isDoubleBuffered() { return use_double_buffer; } | 23,812 |
public boolean isManagingFocus() { // Override this method and return true if your JComponent manages focus. return false; } | publicbooleanisManagingFocus() { //OverridethismethodandreturntrueifyourJComponentmanagesfocus. returnfalse; } | 23,813 |
public boolean isOpaque() { return opaque; } | public boolean isOpaque() { return opaque; } | 23,814 |
public boolean isOptimizedDrawingEnabled() { // Returns true if this component tiles its children, return true; } | publicbooleanisOptimizedDrawingEnabled() { //Returnstrueifthiscomponenttilesitschildren, returntrue; } | 23,815 |
public boolean isPaintingTile() { // Returns true if the receiving component is currently painting a tile. return false; } | publicbooleanisPaintingTile() { //Returnstrueifthereceivingcomponentiscurrentlypaintingatile. returnfalse; } | 23,816 |
public boolean isRequestFocusEnabled() { // Return whether the receiving component can obtain the focus by calling requestFocus return false; } | public boolean isRequestFocusEnabled() { // Return whether the receiving component can obtain the focus by calling requestFocus return false; } | 23,817 |
public boolean isValidateRoot() { // If this method returns true, revalidate() calls by descendants of this component will cause the entire tree beginning with this root to be validated. return false; } | publicbooleanisValidateRoot() { //Ifthismethodreturnstrue,revalidate()callsbydescendantsofthiscomponentwillcausetheentiretreebeginningwiththisroottobevalidated. returnfalse; } | 23,818 |
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | 23,819 |
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | 23,820 |
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | 23,821 |
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | 23,822 |
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | 23,823 |
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | 23,824 |
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = c... | 23,825 |
protected void paintBorder(Graphics g) { // System.out.println("PAINT_BORDER x XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", THIS="+this); // Paint the component's border. if (getBorder() != null) { //System.out.println("PAINT_BORDER x XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", ... | protected void paintBorder(Graphics g) { // System.out.println("PAINT_BORDERx XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", THIS="+this); // Paint the component's border. if (getBorder() != null) { //System.out.println("PAINT_BORDERx XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", THIS="+this); ge... | 23,826 |
protected void paintBorder(Graphics g) { // System.out.println("PAINT_BORDER x XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", THIS="+this); // Paint the component's border. if (getBorder() != null) { //System.out.println("PAINT_BORDER x XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", ... | protected void paintBorder(Graphics g) { // System.out.println("PAINT_BORDER x XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", THIS="+this); // Paint the component's border. if (getBorder() != null) { //System.out.println("PAINT_BORDER x XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", ... | 23,827 |
protected void paintChildren(Graphics g) { // Paint this component's children. super.paint(g); } | protectedvoidpaintChildren(Graphicsg) { //Paintthiscomponent'schildren. super.paint(g); } | 23,828 |
protected void paintComponent(Graphics g) { // If the UI delegate is non-null, call its paint method. if (ui != null) { ui.paint(g, this); } } | protectedvoidpaintComponent(Graphicsg) { //IftheUIdelegateisnon-null,callitspaintmethod. if(ui!=null) { ui.paint(g,this); } } | 23,829 |
protected void paintComponent(Graphics g) { // If the UI delegate is non-null, call its paint method. if (ui != null) { ui.paint(g, this); } } | protected void paintComponent(Graphics g) { // If the UI delegate is non-null, call its paint method. if (ui != null) { ui.paint(g, this); } } | 23,830 |
public void paintImmediately(int x, int y, int w, int h) { //Ronald: this shoudld probably redirect to the PLAF .... } | public void paintImmediately(int x, int y, int w, int h)paintImmediately(new Rectangle(x, y, w, h)); paintImmediately(new Rectangle(x, y, w, h)); paintImmediately(new Rectangle(x, y, w, h)); paintImmediately(new Rectangle(x, y, w, h)); { paintImmediately(new Rectangle(x, y, w, h)); paintImmediately(new Rectangle(x, y... | 23,831 |
protected String paramString() { // Returns a string representation of this JComponent. return "JComponent"; } | protectedStringparamString() { //ReturnsastringrepresentationofthisJComponent. return"JComponent"; } | 23,832 |
public void putClientProperty(Object key, Object value) { get_prop_hash().put(key, value); } | public void putClientProperty(Object key, Object value) { get_prop_hash().put(key, value); } | 23,833 |
public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); } | public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); } | 23,834 |
public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); } | public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); } | 23,835 |
public void repaint(long tm, int x, int y, int width, int height) { // Adds the specified region to the dirty region list if the component is showing. //System.out.println("JC: repaint"); super.repaint(tm, x,y,width,height); } | public void repaint(long tm, int x, int y, int width, int height) { // Adds the specified region to the dirty region list if the component is showing. //System.out.println("JC: repaint"); super.repaint(tm, x,y,width,height); } | 23,836 |
public boolean requestDefaultFocus() { // Request the focus for the component that should have the focus by default. return false; } | public boolean requestDefaultFocus() { // Request the focus for the component that should have the focus by default. return false; } | 23,837 |
public void resetKeyboardActions() { // Unregister all keyboard actions } | publicvoidresetKeyboardActions() { //Unregisterallkeyboardactions } | 23,838 |
public void revalidate() { // Support for deferred automatic layout. if (getParent() == null) invalidate(); } | public void revalidate() { // Support for deferred automatic layout. if (getParent() == null) invalidate(); } | 23,839 |
public void scrollRectToVisible(Rectangle aRect) { // Forwards the scrollRectToVisible() message to the JComponent's parent. } | public void scrollRectToVisible(Rectangle aRect) { // Forwards the scrollRectToVisible() message to the JComponent's parent. } | 23,840 |
public void scrollRectToVisible(Rectangle aRect) { // Forwards the scrollRectToVisible() message to the JComponent's parent. } | publicComponent p = getParent(); if (p != null && p instanceof JComponent) ((JComponent) p).scrollRectToVisible(r); voidComponent p = getParent(); if (p != null && p instanceof JComponent) ((JComponent) p).scrollRectToVisible(r); scrollRectToVisible(RectangleComponent p = getParent(); if (p != null && p instanceof JCo... | 23,841 |
public void setAlignmentX(float alignmentX) { // Set the the vertical alignment. } | public void setAlignmentX(float alignmentX) { // Set the the vertical alignment. } | 23,842 |
public void setAlignmentX(float alignmentX) { // Set the the vertical alignment. } | publicalignmentX = a; voidalignmentX = a; setAlignmentX(floatalignmentX = a; alignmentX) { //alignmentX = a; alignmentX = a; alignmentX = a; alignmentX = a; alignmentX = a; alignmentX = a; SetalignmentX = a; thealignmentX = a; thealignmentX = a; verticalalignmentX = a; alignment. } | 23,843 |
public void setAlignmentY(float alignmentY) { // Set the the horizontal alignment. } | public void setAlignmentY(float alignmentY) { // Set the the horizontal alignment. } | 23,844 |
public void setAlignmentY(float alignmentY) { // Set the the horizontal alignment. } | publicalignmentY = a; voidalignmentY = a; setAlignmentY(floatalignmentY = a; alignmentY) { //alignmentY = a; alignmentY = a; alignmentY = a; alignmentY = a; alignmentY = a; alignmentY = a; SetalignmentY = a; thealignmentY = a; thealignmentY = a; horizontalalignmentY = a; alignment. } | 23,845 |
public void setAutoscrolls(boolean autoscrolls) { // If true this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling, such as JViewport } | public void setAutoscrolls(boolean autoscrolls) { // If true this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling, such as JViewport } | 23,846 |
public void setAutoscrolls(boolean autoscrolls) { // If true this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling, such as JViewport } | publicautoscrolls = a; voidautoscrolls = a; setAutoscrolls(booleanautoscrolls = a; autoscrolls) { //autoscrolls = a; autoscrolls = a; autoscrolls = a; autoscrolls = a; autoscrolls = a; autoscrolls = a; Ifautoscrolls = a; trueautoscrolls = a; thisautoscrolls = a; componentautoscrolls = a; willautoscrolls = a; automati... | 23,847 |
public void setBorder(Border border) { //System.out.println("set border called !, new border = " + border); this.border = border; revalidate(); repaint(); } | publicvoidsetBorder(Borderborder) { //System.out.println("setbordercalled!,newborder="+border); this.border=border; revalidate(); repaint(); } | 23,848 |
public void setDebugGraphicsOptions(int debugOptions) { // Enables or disables diagnostic information about every graphics operation performed within the component or one of its children. } | publicdebugGraphicsOptions = debugOptions; voiddebugGraphicsOptions = debugOptions; setDebugGraphicsOptions(intdebugGraphicsOptions = debugOptions; debugOptions) { //debugGraphicsOptions = debugOptions; debugGraphicsOptions = debugOptions; debugGraphicsOptions = debugOptions; debugGraphicsOptions = debugOptions; debu... | 23,849 |
public void setDoubleBuffered(boolean aFlag) { use_double_buffer = aFlag; } | public void setDoubleBuffered(boolean aFlag) { use_double_buffer = aFlag; } | 23,850 |
public void setDoubleBuffered(boolean aFlag) { use_double_buffer = aFlag; } | public void setDoubleBuffered(boolean aFlag) { use_double_buffer = aFlag; } | 23,851 |
public void setEnabled(boolean enabled) { // Sets whether or not this component is enabled. super.setEnabled(enabled); repaint(); } | public void setEnabled(boolean enabled) { // Sets whether or not this component is enabled. super.setEnabled(enabled); repaint(); } | 23,852 |
public void setEnabled(boolean enabled) { // Sets whether or not this component is enabled. super.setEnabled(enabled); repaint(); } | public void setEnabled(boolean enabled) { // Sets whether or not this component is enabled. super.setEnabled(enabled); repaint(); } | 23,853 |
public void setFont(Font font) { super.setFont(font); revalidate(); repaint(); } | public void setFont(Font font) { super.setFont(font); revalidate(); repaint(); } | 23,854 |
public void setFont(Font font) { super.setFont(font); revalidate(); repaint(); } | public void setFont(Font font) { super.setFont(font); revalidate(); repaint(); } | 23,855 |
public void setMaximumSize(Dimension maximumSize) { max = maximumSize; } | public void setMaximumSize(Dimension maximumSize) { max = maximumSize; } | 23,856 |
public void setMinimumSize(Dimension minimumSize) { min = minimumSize; } | public void setMinimumSize(Dimension minimumSize) { min = minimumSize; } | 23,857 |
public void setNextFocusableComponent(Component aComponent) { // Specifies the next component to get the focus after this one, for example, when the tab key is pressed. } | public void setNextFocusableComponent(Component aComponent) { // Specifies the next component to get the focus after this one, for example, when the tab key is pressed. } | 23,858 |
public void setOpaque(boolean isOpaque) { opaque = isOpaque; revalidate(); repaint(); } | public void setOpaque(boolean isOpaque) { opaque = isOpaque; revalidate(); repaint(); } | 23,859 |
public void setPreferredSize(Dimension preferredSize) { pref = preferredSize; } | public void setPreferredSize(Dimension preferredSize) { pref = preferredSize; } | 23,860 |
public void setRequestFocusEnabled(boolean aFlag) { } | public void setRequestFocusEnabled(boolean aFlag) { } | 23,861 |
public void setToolTipText(String text) { tool_tip_text = text; } | public void setToolTipText(String text) { tool_tip_text = text; } | 23,862 |
protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); } revalidate(); repaint(); } | protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); } revalidate(); repaint(); } | 23,863 |
protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); } revalidate(); repaint(); } | protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); } revalidate(); repaint(); } | 23,864 |
protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); } revalidate(); repaint(); } | protectedvoidsetUI(ComponentUInewUI) { if(ui!=null) { ui.uninstallUI(this); } //Setthelookandfeeldelegateforthiscomponent. ui=newUI; if(ui!=null) { ui.installUI(this); } revalidate(); repaint(); } | 23,865 |
protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); } revalidate(); repaint(); } | protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); } revalidate(); repaint(); } | 23,866 |
protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); } revalidate(); repaint(); } | protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); } revalidate(); repaint(); } | 23,867 |
public void setVisible(boolean aFlag) { // Makes the component visible or invisible. super.setVisible(aFlag); if (getParent() != null) { Rectangle dims = getBounds(); getParent().repaint((int)dims.getX(), (int)dims.getY(), (int)dims.getWidth(), ... | public void setVisible(boolean aFlag) { // Makes the component visible or invisible. super.setVisible(aFlag); if (getParent() != null) { Rectangle dims = getBounds(); getParent().repaint((int)dims.getX(), (int)dims.getY(), (int)dims.getWidth(), ... | 23,868 |
public void unregisterKeyboardAction(KeyStroke aKeyStroke) { // Unregister a keyboard action. } | publicvoidunregisterKeyboardAction(KeyStrokeaKeyStroke) { //Unregisterakeyboardaction. } | 23,869 |
public void updateUI() { // Resets the UI property to a value from the current look and feel. System.out.println("update UI not overwritten in class: " + this); } | publicvoidupdateUI() { //ResetstheUIpropertytoavaluefromthecurrentlookandfeel. System.out.println("updateUInotoverwritteninclass:"+this); } | 23,870 |
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory.... | public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory.... | 23,871 |
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory.... | public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory.... | 23,872 |
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory.... | public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory.... | 23,873 |
public boolean equals(Object obj) { if (!(obj instanceof ColorModel)) return false; ColorModel o = (ColorModel) obj; return (pixel_bits == o.pixel_bits) && (transferType == o.transferType) && (transparency == o.transparency) && (hasAlpha == o.hasAlpha) && (isAlphaPremultiplied == isA... | public boolean equals(Object obj) { if (!(obj instanceof ColorModel)) return false; ColorModel o = (ColorModel) obj; return (pixel_bits == o.pixel_bits) && (transferType == o.transferType) && (transparency == o.transparency) && (hasAlpha == o.hasAlpha) && (isAlphaPremultiplied == isA... | 23,875 |
public int getDataElement(int[] components, int offset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); } | public int getDataElement(int[] components, int offset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); } | 23,876 |
public void replaceRange(String text, int start, int end) { Document doc = getDocument(); if (start > end || start < doc.getStartPosition().getOffset() || end >= doc.getEndPosition().getOffset()) throw new IllegalArgumentException(); try { doc.remove(start, end); doc.insertString(start, text, ... | public void replaceRange(String text, int start, int end) { Document doc = getDocument(); if (start > end || start < doc.getStartPosition().getOffset() || end >= doc.getEndPosition().getOffset()) throw new IllegalArgumentException(); try { doc.remove(start, end); doc.insertString(start, text, ... | 23,877 |
private static void adjustFromLeft(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * reqs... | private static void adjustFromLeft(SizeRequirements reqs, float baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * re... | 23,879 |
private static void adjustFromLeft(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * reqs... | private static void adjustFromLeft(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * reqs... | 23,880 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.