rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
public KeyStroke[] getRegisteredKeyStrokes() { // Return the KeyStrokes that will initiate registered actions. return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
System.out.println("root = " + p); | public JRootPane getRootPane() { JRootPane p = SwingUtilities.getRootPane(this); System.out.println("root = " + p); return p; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
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; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
return new Dimension(getWidth(), getHeight()); | return new Dimension(getWidth(), getHeight()); | 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; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
rv.setSize(getWidth(), getHeight()); | rv.setSize(getWidth(), getHeight()); | 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; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
{ return null; } | { return null; } | public Point getToolTipLocation(MouseEvent event) { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
{ return tool_tip_text; } | { return toolTipText; } | public String getToolTipText() { return tool_tip_text; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
System.out.println("JComponent, getTopLevelAncestor()"); return null; | Container c = getParent(); for (Container peek = c; peek != null; peek = peek.getParent()) c = peek; return c; | 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; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public String getUIClassID() { /// Return the UIDefaults key used to look up the name of the swing. return "ComponentUI"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
return (VetoableChangeListener[]) getListeners (VetoableChangeListener.class); } | return (VetoableChangeListener[]) getListeners(VetoableChangeListener.class); } | public VetoableChangeListener[] getVetoableChangeListeners() { return (VetoableChangeListener[]) getListeners (VetoableChangeListener.class); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
System.out.println("JComponent, getVisibleRect()"); return null; | Rectangle r = new Rectangle(); computeVisibleRect(r); return r; | public Rectangle getVisibleRect() { /// Returns the Component's "visible rectangle" - the intersection of this components visible rectangle: System.out.println("JComponent, getVisibleRect()"); return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public void grabFocus() { // Set the focus on the receiving component. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
{ return use_double_buffer; } | { return doubleBuffered; } | public boolean isDoubleBuffered() { return use_double_buffer; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public boolean isManagingFocus() { // Override this method and return true if your JComponent manages focus. return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
{ return opaque; } | { return opaque; } | public boolean isOpaque() { return opaque; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public boolean isOptimizedDrawingEnabled() { // Returns true if this component tiles its children, return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
public boolean isPaintingTile() { // Returns true if the receiving component is currently painting a tile. return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
return false; | return requestFocusEnabled; | public boolean isRequestFocusEnabled() { // Return whether the receiving component can obtain the focus by calling requestFocus return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
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; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
Rectangle r = getBounds (); | Image doubleBuffer = null; RepaintManager rm = RepaintManager.currentManager(this); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
if (use_double_buffer) | if (isDoubleBuffered() && (rm.isDoubleBufferingEnabled()) && (! Thread.holdsLock(paintLock))) | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; | doubleBuffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) | synchronized (paintLock) | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); | if (doubleBuffer != null) { g2 = doubleBuffer.getGraphics(); g2.setClip(g.getClipBounds()); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
paintBorder(g2); | g2 = getComponentGraphics(g2); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
if (use_double_buffer) { g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); | if (doubleBuffer != null) g.drawImage(doubleBuffer, 0, 0, (ImageObserver) null); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
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() + ", ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
{ getBorder().paintBorder(this, g, 0, 0, getWidth(), getHeight()); } | getBorder().paintBorder(this, g, 0, 0, getWidth(), getHeight()); | 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() + ", ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
protected void paintChildren(Graphics g) { // Paint this component's children. super.paint(g); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
protected void paintComponent(Graphics g) { // If the UI delegate is non-null, call its paint method. if (ui != null) { ui.paint(g, this); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
{ ui.paint(g, this); } | ui.update(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); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
paintImmediately(new Rectangle(x, y, w, h)); | public void paintImmediately(int x, int y, int w, int h) { //Ronald: this shoudld probably redirect to the PLAF .... } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
protected String paramString() { // Returns a string representation of this JComponent. return "JComponent"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
{ get_prop_hash().put(key, value); } | { getClientProperties().put(key, value); } | public void putClientProperty(Object key, Object value) { get_prop_hash().put(key, value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) | public void registerKeyboardAction(ActionListener act, KeyStroke stroke, int cond) | public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
registerKeyboardAction(anAction, null, aKeyStroke, aCondition); | registerKeyboardAction(act, null, stroke, cond); | public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
super.repaint(tm, x,y,width,height); | Rectangle dirty = new Rectangle(x, y, width, height); Rectangle vis = getVisibleRect(); dirty = dirty.intersection(vis); RepaintManager.currentManager(this).addDirtyRegion(this, dirty.x, dirty.y, dirty.width, dirty.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); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
return false; | return false; | public boolean requestDefaultFocus() { // Request the focus for the component that should have the focus by default. return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public void resetKeyboardActions() { // Unregister all keyboard actions } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
if (getParent() == null) invalidate(); | RepaintManager.currentManager(this).addInvalidComponent(this); | public void revalidate() { // Support for deferred automatic layout. if (getParent() == null) invalidate(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public void scrollRectToVisible(Rectangle aRect) | public void scrollRectToVisible(Rectangle r) | public void scrollRectToVisible(Rectangle aRect) { // Forwards the scrollRectToVisible() message to the JComponent's parent. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
Component p = getParent(); if (p != null && p instanceof JComponent) ((JComponent) p).scrollRectToVisible(r); | public void scrollRectToVisible(Rectangle aRect) { // Forwards the scrollRectToVisible() message to the JComponent's parent. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
public void setAlignmentX(float alignmentX) | public void setAlignmentX(float a) | public void setAlignmentX(float alignmentX) { // Set the the vertical alignment. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
alignmentX = a; | public void setAlignmentX(float alignmentX) { // Set the the vertical alignment. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
public void setAlignmentY(float alignmentY) | public void setAlignmentY(float a) | public void setAlignmentY(float alignmentY) { // Set the the horizontal alignment. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
alignmentY = a; | public void setAlignmentY(float alignmentY) { // Set the the horizontal alignment. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
public void setAutoscrolls(boolean autoscrolls) | public void setAutoscrolls(boolean a) | 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 } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
autoscrolls = a; | 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 } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
public void setBorder(Border border) { //System.out.println("set border called !, new border = " + border); this.border = border; revalidate(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
debugGraphicsOptions = debugOptions; | public void setDebugGraphicsOptions(int debugOptions) { // Enables or disables diagnostic information about every graphics operation performed within the component or one of its children. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
public void setDoubleBuffered(boolean aFlag) | public void setDoubleBuffered(boolean db) | public void setDoubleBuffered(boolean aFlag) { use_double_buffer = aFlag; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
use_double_buffer = aFlag; | doubleBuffered = db; | public void setDoubleBuffered(boolean aFlag) { use_double_buffer = aFlag; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public void setEnabled(boolean enabled) | public void setEnabled(boolean e) | public void setEnabled(boolean enabled) { // Sets whether or not this component is enabled. super.setEnabled(enabled); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
super.setEnabled(enabled); | super.setEnabled(e); revalidate(); | public void setEnabled(boolean enabled) { // Sets whether or not this component is enabled. super.setEnabled(enabled); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public void setFont(Font font) | public void setFont(Font f) | public void setFont(Font font) { super.setFont(font); revalidate(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
super.setFont(font); | super.setFont(f); | public void setFont(Font font) { super.setFont(font); revalidate(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public void setMaximumSize(Dimension maximumSize) { max = maximumSize; } | public void setMaximumSize(Dimension max) { maximumSize = max; revalidate(); repaint(); } | public void setMaximumSize(Dimension maximumSize) { max = maximumSize; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public void setMinimumSize(Dimension minimumSize) { min = minimumSize; } | public void setMinimumSize(Dimension min) { minimumSize = min; revalidate(); repaint(); } | public void setMinimumSize(Dimension minimumSize) { min = minimumSize; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
} | } | public void setNextFocusableComponent(Component aComponent) { // Specifies the next component to get the focus after this one, for example, when the tab key is pressed. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
opaque = isOpaque; revalidate(); repaint(); | opaque = isOpaque; revalidate(); repaint(); | public void setOpaque(boolean isOpaque) { opaque = isOpaque; revalidate(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public void setPreferredSize(Dimension preferredSize) { pref = preferredSize; } | public void setPreferredSize(Dimension pref) { preferredSize = pref; } | public void setPreferredSize(Dimension preferredSize) { pref = preferredSize; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public void setRequestFocusEnabled(boolean aFlag) { | public void setRequestFocusEnabled(boolean e) { requestFocusEnabled = e; | public void setRequestFocusEnabled(boolean aFlag) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
{ tool_tip_text = text; } | { toolTipText = text; } | public void setToolTipText(String text) { tool_tip_text = text; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
{ | 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(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
} | 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(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
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(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
{ | 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(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
} | 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(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
public void setVisible(boolean aFlag) { super.setVisible(aFlag); if (getParent() != null) { Rectangle dims = getBounds(); getParent().repaint((int)dims.getX(), (int)dims.getY(), (int)dims.getWidth(), (int)dims.getHeight()); } } | public void setVisible(boolean v) { super.setVisible(v); revalidate(); repaint(); } | 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(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java |
public void unregisterKeyboardAction(KeyStroke aKeyStroke) { // Unregister a keyboard action. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
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); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | ||
if (created) | if (created && parent instanceof DomDocument) | 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.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/TransformerImpl.java/clean/core/src/classpath/gnu/gnu/xml/transform/TransformerImpl.java |
if (created) | if (created && parent instanceof DomDocument) | 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.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/TransformerImpl.java/clean/core/src/classpath/gnu/gnu/xml/transform/TransformerImpl.java |
if (created) | if (created && parent instanceof DomDocument) | 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.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/TransformerImpl.java/clean/core/src/classpath/gnu/gnu/xml/transform/TransformerImpl.java |
if (errorListener != null) { try { errorListener.error(new TransformerException(e)); } catch (TransformerException e2) { e2.printStackTrace(System.err); } } else e.printStackTrace(System.err); | void writeStreamResult(Node node, StreamResult sr, int outputMethod, String encoding) throws IOException { OutputStream out = null; boolean created = false; try { out = sr.getOutputStream(); if (out == null) { Writer writer = sr.getWriter(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/TransformerImpl.java/clean/core/src/classpath/gnu/gnu/xml/transform/TransformerImpl.java | |
(isAlphaPremultiplied == isAlphaPremultiplied) && (bits.equals(o.bits)) && | (isAlphaPremultiplied == o.isAlphaPremultiplied) && Arrays.equals(bits, o.bits) && | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/ColorModel.java/buggy/core/src/classpath/java/java/awt/image/ColorModel.java |
public int getDataElement(int[] components, int offset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/ColorModel.java/buggy/core/src/classpath/java/java/awt/image/ColorModel.java | ||
doc.remove(start, end); | doc.remove(start, end - start); | 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, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/JTextArea.java/buggy/core/src/classpath/javax/javax/swing/JTextArea.java |
throw new Error("Please report a bug", e); | 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, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/JTextArea.java/buggy/core/src/classpath/javax/javax/swing/JTextArea.java | |
private static void adjustFromLeft(SizeRequirements reqs, int baseline, | private static void adjustFromLeft(SizeRequirements reqs, float baseline, | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/SizeRequirements.java/buggy/core/src/classpath/javax/javax/swing/SizeRequirements.java |
float minLeft = ((float) reqs.minimum) * reqs.alignment; if (left / reqs.alignment < reqs.minimum) left = Math.max(minLeft, maxLeft); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/SizeRequirements.java/buggy/core/src/classpath/javax/javax/swing/SizeRequirements.java | |
spanAndOffset[1] = baseline - (int) (((float) spanAndOffset[0]) * reqs.alignment); | spanAndOffset[1] = (int) (baseline - spanAndOffset[0] * reqs.alignment); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/SizeRequirements.java/buggy/core/src/classpath/javax/javax/swing/SizeRequirements.java |
private static void adjustFromRight(SizeRequirements reqs, int baseline, | private static void adjustFromRight(SizeRequirements reqs, float baseline, | private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/SizeRequirements.java/buggy/core/src/classpath/javax/javax/swing/SizeRequirements.java |
float minRight = ((float) reqs.minimum) * (1.F - reqs.alignment); if (right / (1.F - reqs.alignment) < reqs.minimum) right = Math.max(minRight, maxRight); | private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/SizeRequirements.java/buggy/core/src/classpath/javax/javax/swing/SizeRequirements.java | |
spanAndOffset[1] = baseline - (int) (((float) spanAndOffset[0]) * reqs.alignment); | spanAndOffset[1] = (int) (baseline - spanAndOffset[0] * reqs.alignment); | private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/SizeRequirements.java/buggy/core/src/classpath/javax/javax/swing/SizeRequirements.java |
if (sumDelta < 0) sumDelta = Integer.MAX_VALUE; } | private static void adjustGreater(int allocated, SizeRequirements[] children, int[] spans, int span) { // Sum up (maxSize - prefSize) over all children int sumDelta = 0; for (int i = 0; i < children.length; i++) sumDelta += children[i].maximum - children[i].preferred;... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/SizeRequirements.java/buggy/core/src/classpath/javax/javax/swing/SizeRequirements.java | |
{ | { offset = e.getX(); | protected DragController(MouseEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java |
finishDraggingTo(adjust(x, y)); | protected void completeDrag(int x, int y) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java | |
if (isValid()) dragDividerTo(adjust(newX, newY)); | protected void continueDrag(int newX, int newY) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java | |
return 0; | return x; | protected int getNeededLocation(int x, int y) { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java |
protected boolean isValid() { // FIXME: Not yet implemented. return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java | ||
return 0; | return e.getX() + getX() - offset; | protected int positionForMouseEvent(MouseEvent e) { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java |
if (dragger != null) dragger.continueDrag(e); | public void mouseDragged(MouseEvent e) { // FIXME: Not yet implemented. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java | |
public void mouseMoved(MouseEvent e) { // FIXME: Not yet implemented. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java | ||
if (splitPane.isOneTouchExpandable()) { if (e.getSource() == leftButton) { currentDividerLocation--; if (currentDividerLocation < 0) currentDividerLocation = 0; moveDividerTo(currentDividerLocation); return; } else if (e.getSource() == rightButton) { currentDividerLocation++; if (currentDividerLocation > 2) currentDivi... | public void mousePressed(MouseEvent e) { // FIXME: Not yet implemented. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java | |
if (isDragging) dragger.completeDrag(e); isDragging = false; | public void mouseReleased(MouseEvent e) { // FIXME: Not yet implemented. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java | |
setDividerSize(splitPane.getDividerSize()); | public BasicSplitPaneDivider(BasicSplitPaneUI ui) { setBasicSplitPaneUI(ui); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java | |
return new OneTouchButton(/* left */ true); | int dir = SwingConstants.WEST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.NORTH; JButton button = new BasicArrowButton(dir); button.setBorderPainted(false); return button; | protected JButton createLeftOneTouchButton() { return new OneTouchButton(/* left */ true); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java |
return new OneTouchButton(/* left */ false); | int dir = SwingConstants.EAST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.SOUTH; JButton button = new BasicArrowButton(dir); button.setBorderPainted(false); return button; | protected JButton createRightOneTouchButton() { return new OneTouchButton(/* left */ false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java |
return new Dimension(dividerSize, dividerSize); | return getLayout().preferredLayoutSize(this); | public Dimension getPreferredSize() { return new Dimension(dividerSize, dividerSize); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.