bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
8,184
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
8,185
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
8,186
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
8,187
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
8,188
maximumLayoutSize(Container target){ return calcSize(target, MAX);}
maximumLayoutSize(Container target){ return calcSize(target, MAX);}
8,189
maximumLayoutSize(Container target){ return calcSize(target, MAX);}
maximumLayoutSize(Container target){ return calcSize(target, MAX);}
8,190
minimumLayoutSize(Container target){ return calcSize(target, MIN);}
minimumLayoutSize(Container target){ return calcSize(target, MIN);}
8,191
minimumLayoutSize(Container target){ return calcSize(target, MIN);}
minimumLayoutSize(Container target){ return calcSize(target, MIN);}
8,192
preferredLayoutSize(Container target){ return calcSize(target, PREF);}
preferredLayoutSize(Container target){ return calcSize(target, PREF);}
8,193
preferredLayoutSize(Container target){ return calcSize(target, PREF);}
preferredLayoutSize(Container target){ return calcSize(target, PREF);}
8,194
removeLayoutComponent(Component component){ if (north == component) north = null; if (south == component) south = null; if (east == component) east = null; if (west == component) west = null; if (center == component) center = null; if (firstItem == component) firstItem = null; if (lastItem == c...
removeLayoutComponent(Component component){ if (north == component) north = null; if (south == component) south = null; if (east == component) east = null; if (west == component) west = null; if (center == component) center = null; if (firstItem == component) firstItem = null; if (lastItem == c...
8,195
removeLayoutComponent(Component component){ if (north == component) north = null; if (south == component) south = null; if (east == component) east = null; if (west == component) west = null; if (center == component) center = null; if (firstItem == component) firstItem = null; if (lastItem == c...
removeLayoutComponent(Component component){ if (north == component) north = null; if (south == component) south = null; if (east == component) east = null; if (west == component) west = null; if (center == component) center = null; if (firstItem == component) firstItem = null; if (lastItem == c...
8,196
setBounds(Component comp, int x, int y, int w, int h){ if (comp == null) return; comp.setBounds(x, y, w, h);}
setBounds(Component comp, int x, int y, int w, int h){ if (comp == null) return; comp.setBounds(x, y, w, h);}
8,197
setBounds(Component comp, int x, int y, int w, int h){ if (comp == null) return; comp.setBounds(x, y, w, h);}
setBounds(Component comp, int x, int y, int w, int h){ if (comp == null) return; comp.setBounds(x, y, w, h);}
8,198
setHgap(int hgap){ this.hgap = hgap;}
setHgap(int hgap){ this.hgap = hgap;}
8,199
setHgap(int hgap){ this.hgap = hgap;}
setHgap(int hgap){ this.hgap = hgap;}
8,200
setVgap(int vgap){ this.vgap = vgap;}
setVgap(int vgap){ this.vgap = vgap;}
8,201
setVgap(int vgap){ this.vgap = vgap;}
setVgap(int vgap){ this.vgap = vgap;}
8,202
toString(){ return getClass().getName() + "[hgap=" + hgap + ",vgap=" + vgap + "]";}
toString(){ return getClass().getName() + "[hgap=" + hgap + ",vgap=" + vgap + "]";}
8,203
toString(){ return getClass().getName() + "[hgap=" + hgap + ",vgap=" + vgap + "]";}
toString(){ return getClass().getName() + "[hgap=" + hgap + ",vgap=" + vgap + "]";}
8,204
public AddressPcEntry(int pc, int offset) { this.pc = pc; this.offset = offset; }
public AddressPcEntry(int pc, int offset) { this.pc = pc; this.offset = offset; }
8,205
public int findPC(int offset) { final int[] table = this.table; if (table != null) { final int length = table.length; int lastPC = 0; for (int i = 0; i < length; i += 2) { final int o = table[i+1]; if (o > offset) { return lastPC; } else { lastPC = table[i+0]; } } } return 0; }
public int findPC(int offset) { final int[] table = this.table; if (table != null) { final int length = table.length; int lastPC = 0; for (int i = 0; i < length; i += 2) { final int o = table[i+1]; if (o > offset) { return lastPC; } else { lastPC = table[i+0]; } } } return 0; }
8,206
public void writeTo(PrintStream out) { for (int i = 0; i < table.length; i += 2) { final int pc = table[i+0]; final int offset = table[i+1]; out.println("PC[" + pc + "]\t0x" + NumberUtils.hex(offset)); } }
public void writeTo(PrintStream out) { for (int i = 0; i < table.length; i += 2) { final int pc = table[i+0]; final int offset = table[i+1]; out.println("PC[" + pc + "]\t0x" + NumberUtils.hex(offset)); } }
8,207
protected void installKeyboardActions() { // FIXME: create actions and keystrokes. registerKeyboardAction(); }
protected void installKeyboardActions() { // FIXME: create actions and keystrokes. registerKeyboardActions(); }
8,208
public void addField(int attr, int len, int ffw1, int ffw2, int fcw1, int fcw2) { lastAttr = attr; screen[lastPos].setCharAndAttr(initChar,lastAttr,true); setDirty(lastPos); advancePos(); ScreenField sf = null; // from 14.6.12 for Start of Field Order 5940 function manual // exami...
public void addField(int attr, int len, int ffw1, int ffw2, int fcw1, int fcw2) { lastAttr = attr; screen[lastPos].setCharAndAttr(initChar,lastAttr,true); setDirty(lastPos); advancePos(); ScreenField sf = null; // from 14.6.12 for Start of Field Order 5940 function manual // exami...
8,209
protected boolean simulateKeyStroke(char c){ if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,null); } boolean updateField = false; boolean numericError = false; boolean updatePos = fals...
int fs = screenFields.getCurrentFieldShift(); int fs = screenFields.getCurrentFieldShift(); int fs = screenFields.getCurrentFieldShift(); protectedint fs = screenFields.getCurrentFieldShift(); booleanint fs = screenFields.getCurrentFieldShift(); simulateKeyStroke(charint fs = screenFields.getCurrentFieldShift(); c){int...
8,210
public boolean equals(Object obj) { if ((obj instanceof MediaName && this instanceof MediaName) || (obj instanceof MediaTray && this instanceof MediaTray) || (obj instanceof MediaSizeName && this instanceof MediaSizeName)) { return ((Media) obj).getValue() == this.getValue(); } ...
public boolean equals(Object obj) { if ((obj instanceof MediaName && this instanceof MediaName) || (obj instanceof MediaTray && this instanceof MediaTray) || (obj instanceof MediaSizeName && this instanceof MediaSizeName)) { return ((Media) obj).getValue() == this.getValue(); } ...
8,213
public boolean equals(Object obj) { if ((obj instanceof MediaName && this instanceof MediaName) || (obj instanceof MediaTray && this instanceof MediaTray) || (obj instanceof MediaSizeName && this instanceof MediaSizeName)) { return ((Media) obj).getValue() == this.getValue(); } ...
public boolean equals(Object obj) { if ((obj instanceof MediaName && this instanceof MediaName) || (obj instanceof MediaTray && this instanceof MediaTray) || (obj instanceof MediaSizeName && this instanceof MediaSizeName)) { return ((Media) obj).getValue() == this.getValue(); } ...
8,214
private final void secureSetAccessible(boolean flag) { if (flag && ((this instanceof Constructor && ((Constructor)this).getDeclaringClass() == Class.class) || ((Member)this).getDeclaringClass() == AccessibleObject.class)) throw new SecurityException( "Cannot make object accessible: " + this); this.flag ...
private final void secureSetAccessible(boolean flag) { if (flag && ((this instanceof Constructor && ((Constructor)this).getDeclaringClass() == Class.class) || ((Member)this).getDeclaringClass() == AccessibleObject.class)) throw new SecurityException( "Cannot make object accessible: " + this); this.flag ...
8,215
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
8,216
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
8,217
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
8,218
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
8,219
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
8,220
public void addAWTComponent(Component awtComponent, JComponent peer) { getContentPane().add(peer); }
public void addAWTComponent(Component awtComponent, JComponent peer) { getContentPane().add(peer); }
8,221
public void coalescePaintEvent(PaintEvent e) { System.err.println(e); }
public void coalescePaintEvent(PaintEvent e) { System.err.println(e); }
8,222
public void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
public void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
8,223
public void flip(BufferCapabilities.FlipContents flipContents) { }
public void flip(BufferCapabilities.FlipContents flipContents) { }
8,224
public void handleEvent(AWTEvent e) { //System.err.println(e); }
publicvoidhandleEvent(AWTEvente){ //System.err.println(e); }
8,225
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { return true; }
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { return true; }
8,226
public void setEventMask(long mask) { // TODO Auto-generated method stub }
public void setEventMask(long mask) { // TODO Auto-generated method stub }
8,227
public void setIconImage(Image im) { }
public void setIconImage(Image im) { }
8,228
public void setMaximizedBounds(java.awt.Rectangle bounds) { }
public void setMaximizedBounds(java.awt.Rectangle bounds) { }
8,229
public void setState(int state) { if (state == Frame.ICONIFIED) { } else // state == Frame.NORMAL { } }
public void setState(int state) { if (state == Frame.ICONIFIED) { } else // state == Frame.NORMAL { } }
8,231
public Log () { configure(DEFAULT_CONFIG_FILE); }
public Log () { }
8,232
public void configure(String configFileName) { Properties props = new Properties(); //the property hashtable try { FileInputStream istream = new FileInputStream(configFileName); props.load(istream); istream.close(); } catch (IOException e) { System.err.println("Could not read configu...
public static void configure(String configFileName) { Properties props = new Properties(); //the property hashtable try { FileInputStream istream = new FileInputStream(configFileName); props.load(istream); istream.close(); } catch (IOException e) { System.err.println("Could not read ...
8,233
public void configure(String configFileName) { Properties props = new Properties(); //the property hashtable try { FileInputStream istream = new FileInputStream(configFileName); props.load(istream); istream.close(); } catch (IOException e) { System.err.println("Could not read configu...
publicvoidconfigure(StringconfigFileName){Propertiesprops=newProperties();//thepropertyhashtabletry{FileInputStreamistream=newFileInputStream(configFileName);props.load(istream);istream.close();}catch(IOExceptione){System.err.println("Couldnotreadconfigurationfile["+configFileName+"].");//e.printStackTrace();System.err...
8,234
public void debug(String msg) { if (priority > Priority.DEBUG) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.debug()"); e.printStackTrace(); } }
public static void debug(String msg) { if (priority > Priority.DEBUG) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.debug()"); e.printStackTrace(); } }
8,235
public void defaultConfig() { output = DEFAULT_OUTPUTSTREAM; priority = DEFAULT_PRIORITY; }
public static void defaultConfig() { output = DEFAULT_OUTPUTSTREAM; priority = DEFAULT_PRIORITY; }
8,236
public void error(String msg) { if (priority > Priority.ERROR) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.error()"); e.printStackTrace(); } }
public static void error(String msg) { if (priority > Priority.ERROR) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.error()"); e.printStackTrace(); } }
8,237
public void info(String msg) { if (priority > Priority.INFO) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.info()"); e.printStackTrace(); } }
public static void info(String msg) { if (priority > Priority.INFO) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.info()"); e.printStackTrace(); } }
8,238
public void warn(String msg) { if (priority > Priority.WARN) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.warn()"); e.printStackTrace(); } }
public static void warn(String msg) { if (priority > Priority.WARN) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.warn()"); e.printStackTrace(); } }
8,239
private void postEvent(int id, long time, int modifiers, int keyCode, char keyChar) { JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit(); KeyEvent me = new KeyEvent(tk.getTop(), id, time, modifiers, keyCode, keyChar); eventQueue.postEvent(me); }
private void postEvent(int id, long time, int modifiers, int keyCode, char keyChar) { JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit(); Frame top = tk.getTop(); if(top == null){ return; } KeyEvent me = new KeyEvent(top, id, time, modifiers, keyCode, keyChar); ...
8,240
public KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar) { this(source, id, when, modifiers, keyCode, keyChar, KEY_LOCATION_UNKNOWN); }
public KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar, int keyLocation) { this(source, id, when, modifiers, keyCode, keyChar, KEY_LOCATION_UNKNOWN); }
8,241
public KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar) { this(source, id, when, modifiers, keyCode, keyChar, KEY_LOCATION_UNKNOWN); }
public KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar) { super(source, id, when, modifiers); this.keyCode = keyCode; this.keyChar = keyChar; this.keyLocation = keyLocation; if ((id == KEY_TYPED && (keyCode != VK_UNDEFINED || keyChar == CHAR_UNDEFINED)) || k...
8,242
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
8,243
public MediumWeightPopup(Container c) { this.add(c); }
public MediumWeightPopup(Container c) { this.add(c); }
8,246
public void hide() { // FIXME: Right now the lightweight container is removed from JLayered // pane. It is probably would be better in order to improve performance // to make the container invisible instead of removing it everytime. JLayeredPane layeredPane; layeredPane = SwingUtilities....
public void hide() { // FIXME: Right now the lightweight container is removed from JLayered // pane. It is probably would be better in order to improve performance // to make the container invisible instead of removing it everytime. JLayeredPane layeredPane; layeredPane = SwingUtilities....
8,247
public void setLabel(String label) { if (label != this.label) { String oldLabel = this.label; this.label = label; firePropertyChange("label", oldLabel, label); } }
public void setLabel(String label) { if (label != this.label) { String oldLabel = this.label; this.label = label; firePropertyChange("label", oldLabel, label); } }
8,248
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
8,249
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
8,250
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
8,251
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
8,252
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
8,253
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
8,254
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
8,255
public void show(Component component, int x, int y) { setInvoker(component); Point p = new Point(x, y); SwingUtilities.convertPointToScreen(p, component); setLocation(p.x, p.y); setVisible(true); }
public void show(Component component, int x, int y) { setInvoker(component); Point p = new Point(x, y); SwingUtilities.convertPointToScreen(p, component); setLocation(p.x, p.y); setVisible(true); }
8,256
public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {// synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y);// } }
public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {// synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y);// } }
8,260
public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {// synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y);// } }
synchronized (lock) { synchronized (lock) { synchronized (lock) { publicsynchronized (lock) { voidsynchronized (lock) { drawImageBuffer(Graphics2Dsynchronized (lock) { gg2d,intsynchronized (lock) { x,synchronized (lock) { intsynchronized (lock) { y,synchronized (lock) { intsynchronized (lock) { width,synchronized (lock...
8,261
public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {// synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y);// } }
lock.notify(); } lock.notify(); } lock.notify(); } public lock.notify(); } void lock.notify(); } drawImageBuffer(Graphics2D lock.notify(); } gg2d,int lock.notify(); } x, lock.notify(); } int lock.notify(); } y, lock.notify(); } int lock.notify(); } width, lock.notify(); } int lock.notify(); } height) lock.notify(); ...
8,262
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { // TODO: Maybe prepare columnSpans and columnOffsets. // Some sanity checks. If these preconditions are not met, then the // following code will not work. Also, there must be so...
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans){// TODO: Maybe prepare columnSpans and columnOffsets.// Some sanity checks. If these preconditions are not met, then the// following code will not work. Also, there must be something// seriously wrong then.assert(offsets.length == colu...
8,263
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { // FIXME: Figure out how to fetch the row heights from the TableView's // element. super.layoutMajorAxis(targetSpan, axis, offsets, spans); }
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { // FIXME: Figure out how to fetch the row heights from the TableView's // element. super.layoutMinorAxis(targetSpan, axis, offsets, spans); }
8,264
public TableView(Element el) { super(el, Y_AXIS); int numChildren = el.getElementCount(); View[] rows = new View[numChildren]; for (int i = 0; i < numChildren; ++i) { Element rowEl = el.getElement(i); TableRow rowView = createTableRow(rowEl); rows[i] = rowView; } replace...
public TableView(Element el) { super(el, Y_AXIS); int numChildren = el.getElementCount(); View[] rows = new View[numChildren]; for (int i = 0; i < numChildren; ++i) { Element rowEl = el.getElement(i); TableRow rowView = createTableRow(rowEl); rows[i] = rowView; } replace...
8,266
protected void layoutColumns(int targetSpan, int[] offsets, int spans[], SizeRequirements[] reqs) { // TODO: Figure out what exactly to do here. }
updateColumnRequirements(); SizeRequirements r = calculateMinorAxisRequirements(X_AXIS, null); SizeRequirements.calculateTiledPositions(targetSpan, r, columnRequirements, offsets, spans); updateColumnRequirements(); SizeRequirements r = calculateMinorAxisRequirements(X_AXIS, null); SizeRequirements.calculateTiledPositi...
8,267
ParsedArguments(Map args) { this.args = args; }
ParsedArguments(Map args) { this.args = args; }
8,268
String[] getValues(Argument arg) { return (String[])args.get(arg); }
String[] getValues(Argument arg) { return (String[])args.get(arg); }
8,269
boolean isSet(Parameter param) { return args.containsKey(param); }
boolean isSet(Parameter param) { return args.containsKey(param); }
8,270
public int size() { return args.size(); }
public int size() { return args.size(); }
8,271
public void actionPerformed(ActionEvent event) { // TODO } // actionPerformed()
stopCellEditing(); stopCellEditing(); stopCellEditing(); stopCellEditing(); publicstopCellEditing(); voidstopCellEditing(); actionPerformed(ActionEventstopCellEditing(); event)stopCellEditing(); stopCellEditing(); stopCellEditing(); stopCellEditing(); { //stopCellEditing(); TODO }stopCellEditing(); //stopCellEditing...
8,272
public void cancelCellEditing() { // TODO } // cancelCellEditing()
fireEditingCanceled(); fireEditingCanceled(); fireEditingCanceled(); fireEditingCanceled(); publicfireEditingCanceled(); voidfireEditingCanceled(); cancelCellEditing()fireEditingCanceled(); fireEditingCanceled(); fireEditingCanceled(); fireEditingCanceled(); { //fireEditingCanceled(); TODO }fireEditingCanceled(); //...
8,273
public Object getCellEditorValue() { return null; // TODO } // getCellEditorValue()
public Object getCellEditorValue() { return value; // TODO } // getCellEditorValue()
8,274
public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable()
public boolean isCellEditable(EventObject event) { if (!(event instanceof MouseEvent)) return true; return false; // TODO } // isCellEditable()
8,275
public void itemStateChanged(ItemEvent event) { // TODO } // itemStateChanged()
stopCellEditing(); stopCellEditing(); stopCellEditing(); stopCellEditing(); publicstopCellEditing(); voidstopCellEditing(); itemStateChanged(ItemEventstopCellEditing(); event)stopCellEditing(); stopCellEditing(); stopCellEditing(); stopCellEditing(); { //stopCellEditing(); TODO }stopCellEditing(); //stopCellEditing(...
8,276
public void setValue(Object event) { }
public void setValue(Object value) { }
8,277
public boolean shouldSelectCell(EventObject event) { return false; // TODO } // shouldSelectCell()
public boolean shouldSelectCell(EventObject event) { return true; // TODO } // shouldSelectCell()
8,279
public boolean startCellEditing(EventObject event) { return false; // TODO } // startCellEditing()
public boolean startCellEditing(EventObject event) { return true; // TODO } // startCellEditing()
8,280
public boolean stopCellEditing() { return false; // TODO } // stopCellEditing()
public boolean stopCellEditing() { fireEditingStopped(); return true; // TODO } // stopCellEditing()
8,281
public DefaultCellEditor(JTextField textfield) { // TODO } // DefaultCellEditor()
editorComponent = textfield; clickCountToStart = 2; editorComponent = textfield; clickCountToStart = 2; publiceditorComponent = textfield; clickCountToStart = 2; DefaultCellEditor(JTextFieldeditorComponent = textfield; clickCountToStart = 2; textfield)editorComponent = textfield; clickCountToStart = 2; editorComponent ...
8,282
public void cancelCellEditing() { // TODO } // cancelCellEditing()
delegate.cancelCellEditing(); delegate.cancelCellEditing(); publicdelegate.cancelCellEditing(); voiddelegate.cancelCellEditing(); cancelCellEditing()delegate.cancelCellEditing(); delegate.cancelCellEditing(); { //delegate.cancelCellEditing(); TODO }delegate.cancelCellEditing(); //delegate.cancelCellEditing(); cancelCe...
8,283
public Object getCellEditorValue() { return null; // TODO } // getCellEditorValue()
public Object getCellEditorValue() { return delegate.getCellEditorValue(); // TODO } // getCellEditorValue()
8,284
public int getClickCountToStart() { return 0; // TODO } // getClickCountToStart()
public int getClickCountToStart() { return clickCountToStart; // TODO } // getClickCountToStart()
8,285
public Component getComponent() { return null; // TODO } // getComponent()
public Component getComponent() { return editorComponent; // TODO } // getComponent()
8,286
public Component getTableCellEditorComponent(JTable tree, Object value, boolean isSelected, int row, int column) { return null; // TODO } // getTableCellEditorComponent()
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { return null; // TODO } // getTableCellEditorComponent()
8,287
public Component getTableCellEditorComponent(JTable tree, Object value, boolean isSelected, int row, int column) { return null; // TODO } // getTableCellEditorComponent()
public Component getTableCellEditorComponent(JTable tree, Object value, boolean isSelected, int row, int column) { if (editorComponent instanceof JTextField) { ((JTextField)editorComponent).setText(value.toString());...
8,288
public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable()
public boolean isCellEditable(EventObject event) { return delegate.isCellEditable(event); // TODO } // isCellEditable()
8,289
public void setClickCountToStart(int count) { // TODO } // setClickCountToStart()
clickCountToStart = count; clickCountToStart = count; publicclickCountToStart = count; voidclickCountToStart = count; setClickCountToStart(intclickCountToStart = count; count)clickCountToStart = count; clickCountToStart = count; { //clickCountToStart = count; TODO }clickCountToStart = count; //clickCountToStart = coun...
8,290
public boolean shouldSelectCell(EventObject event) { return false; // TODO } // shouldSelectCell()
public boolean shouldSelectCell(EventObject event) { return delegate.shouldSelectCell(event); // TODO } // shouldSelectCell()
8,291
public boolean stopCellEditing() { return false; // TODO } // stopCellEditing()
public boolean stopCellEditing() { return delegate.stopCellEditing(); // TODO } // stopCellEditing()
8,292
public void mouseClicked(MouseEvent e) {}
public void mouseClicked(MouseEvent e) {}
8,293