bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } } | public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } } | 101 |
public boolean requestFocusInWindow(boolean temporary) { return super.requestFocusInWindow(temporary); } | public boolean requestFocusInWindow() { return super.requestFocusInWindow(temporary); } | 103 |
public boolean requestFocusInWindow(boolean temporary) { return super.requestFocusInWindow(temporary); } | public boolean requestFocusInWindow(boolean temporary) { if (isRequestFocusEnabled()) return super.requestFocusInWindow(); else return false; } | 104 |
public static int round(float a) { if (Float.isNaN(a)) return 0; return (int) floor(a + 0.5f); } | public static int round(float a) { if (Float.isNaN(a)) return 0; return (int) floor(a + 0.5f); } | 105 |
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; lastPath = tree.getLeadSelectionPath(); t... | public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; lastPath = tree.getLeadSelectionPath(); t... | 106 |
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; lastPath = tree.getLeadSelectionPath(); t... | public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; lastPath = tree.getLeadSelectionPath(); t... | 107 |
public Rectangle(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; } | public Rectangle() { this.x = x; this.y = y; this.width = width; this.height = height; } | 108 |
public Rectangle(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; } | public Rectangle(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; } | 109 |
public void setOpaque(boolean isOpaque) { boolean oldOpaque = opaque; opaque = isOpaque; firePropertyChange("opaque", oldOpaque, opaque); revalidate(); repaint(); } | public void setOpaque(boolean isOpaque) { boolean oldOpaque = opaque; opaque = isOpaque; firePropertyChange("opaque", oldOpaque, opaque); revalidate(); repaint(); } | 110 |
public void paintComponent(Graphics graphics, Component c, Container p, Rectangle r) { paintComponent(graphics, c, p, r.x, r.y, r.width, r.height); } // paintComponent() | public void paintComponent(Graphics graphics, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) { paintComponent(graphics, c, p, r.x, r.y, r.width, r.height); } // paintComponent() | 111 |
public void paintComponent(Graphics graphics, Component c, Container p, Rectangle r) { paintComponent(graphics, c, p, r.x, r.y, r.width, r.height); } // paintComponent() | public void paintComponent(Graphics graphics, Component c, Container p, Rectangle r) { graphics.translate(x, y); c.setBounds(0, 0, w, h); if (shouldValidate) { c.validate(); } c.paint(graphics); graphics.translate(-x, -y); } // paintComponent() | 112 |
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ... | public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ... | 113 |
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ... | public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ... | 114 |
public SwingWindowPeer(SwingToolkit toolkit, Window window, JInternalFrame jComponent) { super(toolkit, window, jComponent); } | public SwingWindowPeer(SwingToolkit toolkit, Window window, JInternalFrame jComponent) { super(toolkit, window, jComponent); } | 115 |
public void setLocation(Point p) { setLocation(p.x, p.y); } | public void setLocation(int x, int y) { setLocation(p.x, p.y); } | 116 |
public void setLocation(Point p) { setLocation(p.x, p.y); } | public void setLocation(Point p) { move (x, y); } | 117 |
public void setSize(Dimension d) { resize (d); } | public void setSize(int width, int height) { resize (d); } | 118 |
public void setSize(Dimension d) { resize (d); } | public void setSize(Dimension d) { resize (width, height); } | 119 |
isResizable(){ return(resizable);} | isResizable(){ return(resizable);} | 120 |
getTitle(){ return(title);} | getTitle(){ return(title);} | 121 |
getMenuBar(){ return(menuBar);} | getMenuBar(){ return(menuBar);} | 122 |
public void dispose() { hide(); JDesktopPane pane = getDesktopPane(); if (pane != null) pane.setSelectedFrame(null); else { try { setSelected(false); } catch (PropertyVetoException e) { // Do nothing if they don't want to be unselected. } } isClosed = true; fireIntern... | public void dispose() { setVisible(false); JDesktopPane pane = getDesktopPane(); if (pane != null) pane.setSelectedFrame(null); else { try { setSelected(false); } catch (PropertyVetoException e) { // Do nothing if they don't want to be unselected. } } isClosed = true; ... | 123 |
public UserException(String reason) { super(reason); } | public UserException() { super(reason); } | 124 |
public UserException(String reason) { super(reason); } | public UserException(String reason) { } | 125 |
public IllegalArgumentException(String s) { super(s); } | public IllegalArgumentException(String s) { super(s); } | 126 |
protected CharsetProvider() { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkPermission(new RuntimePermission("charsetProvider")); } | protected CharsetProvider() { SecurityManager s = System.getSecurityManager(); if (s != null && ! (this instanceof gnu.java.nio.charset.Provider || this instanceof gnu.java.nio.charset.iconv.IconvProvider)) s.checkPermission(new RuntimePermission("charsetProvider")); } | 127 |
public Key(int virtuelKey) { this.lowerVirtuelKey = virtuelKey; this.upperVirtuelKey = virtuelKey; this.altGrVirtuelKey = virtuelKey; lowerChar = 0; upperChar = 0; altGrChar = 0; } | public Key() { this.lowerVirtuelKey = virtuelKey; this.upperVirtuelKey = virtuelKey; this.altGrVirtuelKey = virtuelKey; lowerChar = 0; upperChar = 0; altGrChar = 0; } | 128 |
public Key(int virtuelKey) { this.lowerVirtuelKey = virtuelKey; this.upperVirtuelKey = virtuelKey; this.altGrVirtuelKey = virtuelKey; lowerChar = 0; upperChar = 0; altGrChar = 0; } | public Key(int virtuelKey) { this.lowerVirtuelKey = virtuelKey; this.upperVirtuelKey = virtuelKey; this.altGrVirtuelKey = virtuelKey; lowerChar = 0; upperChar = 0; altGrChar = 0; } | 129 |
public void setSelected(ButtonModel m, boolean b) { if ((sel != m || b) && (! b || sel == m)) return; if (b && sel != m) { ButtonModel old = sel; sel = m; if (old != null) old.setSelected(false); AbstractButton button = FindButton(old); if (button != null) button.repaint(); } else if (!b ... | public void setSelected(ButtonModel m, boolean b) { if ((sel != m || b) && (! b || sel == m)) return; if (b && sel != m) { ButtonModel old = sel; sel = m; if (old != null) old.setSelected(false); AbstractButton button = findButton(old); if (button != null) button.repaint(); } else if (!b ... | 131 |
public JIFSDirectory(String name, boolean root) throws IOException { this(name); this.root = root; JIFSDirectory dir; JIFSFile file; //file entries.add(new JIFSFuptime(this)); entries.add(new JIFSFmemory(this)); entries.add(new JIFSFversion(this)); //directory entries.add(new JIFSDthreads( this)); entries.a... | public JIFSDirectory(String name, boolean root) throws IOException { this(name); this.root = root; JIFSDirectory dir; JIFSFile file; //file entries.add(new JIFSFuptime(this)); entries.add(new JIFSFmemory(this)); entries.add(new JIFSFversion(this)); //directory entries.add(new JIFSDthreads( this)); entries.a... | 132 |
public ReadOnlyFileSystemException(String message) { super(message); } | public ReadOnlyFileSystemException(String message, Throwable cause) { super(message); } | 133 |
protected String paramString() { return "JTextComponent"; } | protected String paramString() { return "JTextComponent"; } | 135 |
public synchronized void setContents(Transferable contents, ClipboardOwner owner) { if (this.owner != owner) if (this.owner != null) this.owner.lostOwnership(this, contents); this.owner = owner; this.contents = contents; } | public synchronized void setContents(Transferable contents, ClipboardOwner owner) { if (this.owner != owner) if (this.owner != null) this.owner.lostOwnership(this, contents); this.owner = owner; this.contents = contents; } | 136 |
public synchronized void setContents(Transferable contents, ClipboardOwner owner) { if (this.owner != owner) if (this.owner != null) this.owner.lostOwnership(this, contents); this.owner = owner; this.contents = contents; } | public synchronized void setContents(Transferable contents, ClipboardOwner owner) { if (this.owner != owner) if (this.owner != null) this.owner.lostOwnership(this, contents); this.owner = owner; if (oldOwner != null) oldOwner.lostOwnership(this, oldContents); } FlavorListener[] fs = getFlavorListeners()... | 137 |
public static KeyStroke getKeyStroke(int keyCode, int modifiers) { return (KeyStroke) getAWTKeyStroke(keyCode, modifiers); } | public static KeyStroke getKeyStroke(char keyChar) { return (KeyStroke) getAWTKeyStroke(keyCode, modifiers); } | 139 |
public static KeyStroke getKeyStroke(int keyCode, int modifiers) { return (KeyStroke) getAWTKeyStroke(keyCode, modifiers); } | public static KeyStroke getKeyStroke(int keyCode, int modifiers) { return (KeyStroke) getAWTKeyStroke(keyChar); } | 140 |
public Dimension getPreferredSize() { if (preferredSize != null) return preferredSize; if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) return s; } Dimension p = super.getPreferredSize(); return p; } | public Dimension getPreferredSize() { if (preferredSize != null) prefSize = preferredSize; if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) return s; } Dimension p = super.getPreferredSize(); return p; } | 141 |
public Dimension getPreferredSize() { if (preferredSize != null) return preferredSize; if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) return s; } Dimension p = super.getPreferredSize(); return p; } | public Dimension getPreferredSize() { if (preferredSize != null) return preferredSize; if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) prefSize = s; } Dimension p = super.getPreferredSize(); return p; } | 142 |
public Dimension getPreferredSize() { if (preferredSize != null) return preferredSize; if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) return s; } Dimension p = super.getPreferredSize(); return p; } | public Dimension getPreferredSize() { if (preferredSize != null) return preferredSize; if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) return s; } Dimension p = super.getPreferredSize(); return p; } | 143 |
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); } | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); } | 144 |
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); } | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, Boolean.valueOf(oldValue), Boolean.valueOf(newValue)); } | 145 |
public void mousePressed(MouseEvent e) { if (! toolBar.isFloatable()) return; Point ssd = e.getPoint(); Insets insets = toolBar.getInsets(); // Verify that this click occurs in the top inset. if (toolBar.getOrientation() == SwingConstants.HORIZONTAL) { if (e.getX() > insets.left... | public void mousePressed(MouseEvent e) { if (! toolBar.isFloatable()) return; Point ssd = e.getPoint(); Insets insets = toolBar.getInsets(); // Verify that this click occurs in the top inset. if (toolBar.getOrientation() == SwingConstants.HORIZONTAL) { if (e.getX() > insets.left... | 146 |
public void mousePressed(MouseEvent e) { if (! toolBar.isFloatable()) return; Point ssd = e.getPoint(); Insets insets = toolBar.getInsets(); // Verify that this click occurs in the top inset. if (toolBar.getOrientation() == SwingConstants.HORIZONTAL) { if (e.getX() > insets.left... | public void mousePressed(MouseEvent e) { if (! toolBar.isFloatable()) return; Point ssd = e.getPoint(); Insets insets = toolBar.getInsets(); // Verify that this click occurs in the top inset. if (toolBar.getOrientation() == SwingConstants.HORIZONTAL) { if (e.getX() > insets.left... | 147 |
public Window(Frame owner) { this (owner, owner.getGraphicsConfiguration ()); } | Window() { this (owner, owner.getGraphicsConfiguration ()); } | 148 |
public Window(Frame owner) { this (owner, owner.getGraphicsConfiguration ()); } | public Window(Frame owner) { visible = false; focusCycleRoot = true; setLayout(new BorderLayout()); addWindowFocusListener (new WindowAdapter () { public void windowGainedFocus (WindowEvent event) { if (windowFocusOwner != null) { EventQueue eq = Toolkit.getDefaultToolkit ().getSystemEventQueue (); synchroni... | 149 |
public static Point convertPoint(Component source, Point aPoint, Component destination) { return convertPoint(source, aPoint.x, aPoint.y, destination); } | public static Point convertPoint(Component source, int x, int y, Component destination) { return convertPoint(source, aPoint.x, aPoint.y, destination); } | 150 |
public static Point convertPoint(Component source, Point aPoint, Component destination) { return convertPoint(source, aPoint.x, aPoint.y, destination); } | public static Point convertPoint(Component source, Point aPoint, Component destination) { Point pt = new Point(x, y); if (source == null && destination == null) return pt; if (source == null) source = getRoot(destination); if (destination == null) destination = getRoot(source); if (source.isShowing() && desti... | 151 |
public SecurityException(String s) { super(s); } | public SecurityException(String s) { super(s); } | 152 |
public RuntimeException(String s) { super(s); } | public RuntimeException() { super(s); } | 153 |
public RuntimeException(String s) { super(s); } | public RuntimeException(String s) { } | 154 |
public void setOrientation(int orientation) { if (orientation != VERTICAL && orientation != HORIZONTAL) throw new IllegalArgumentException("orientation must be one of VERTICAL or HORIZONTAL"); if (this.orientation != orientation) { int oldOrientation = this.orientation; this.orientation = orientation... | public void setOrientation(int orientation) { if (orientation != VERTICAL && orientation != HORIZONTAL) throw new IllegalArgumentException(orientation + " is not a legal orientation"); if (this.orientation != orientation) { int oldOrientation = this.orientation; this.orientation = orientation; firePr... | 155 |
public DefaultBoundedRangeModel(int value, int extent, int minimum, int maximum) { if (!(minimum <= value && extent >= 0 && (value + extent) <= maximum)) throw new IllegalArgumentException(); this.value = value; this.extent = extent; this.minimum = minimum; this.m... | public DefaultBoundedRangeModel(int value, int extent, int minimum, int maximum) { if (!(minimum <= value && extent >= 0 && (value + extent) <= maximum)) throw new IllegalArgumentException(); this.value = value; this.extent = extent; this.minimum = minimum; this.m... | 156 |
public DefaultBoundedRangeModel(int value, int extent, int minimum, int maximum) { if (!(minimum <= value && extent >= 0 && (value + extent) <= maximum)) throw new IllegalArgumentException(); this.value = value; this.extent = extent; this.minimum = minimum; this.m... | public DefaultBoundedRangeModel(int value, int extent, int minimum, int maximum) { if (!(minimum <= value && extent >= 0 && (value + extent) <= maximum)) throw new IllegalArgumentException(); this.value = value; this.extent = extent; this.minimum = minimum; this.m... | 157 |
private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getPosFromView(me.getX(),me.getY()); if (!rubberband.isAreaSelected() && screen.isInField(pos,false) ) { action =... | private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getPosFromView(me.getX(),me.getY()); if (!rubberband.isAreaSelected() && screen.isInField(pos,false) ) { action =... | 158 |
public void actionPerformed(ActionEvent e) { screen.copyMe(); getFocusForMe(); } | public void actionPerformed(ActionEvent e) { screen.pasteMe(false); getFocusForMe(); } | 159 |
BorderLayout(){ this(0,0);} | BorderLayout(){ this(0,0);} | 160 |
public void setBounds(int x, int y, int width, int height) { reshape (x, y, width, height); } | public void setBounds(Rectangle r) { reshape (x, y, width, height); } | 161 |
public void setBounds(int x, int y, int width, int height) { reshape (x, y, width, height); } | public void setBounds(int x, int y, int width, int height) { setBounds (r.x, r.y, r.width, r.height); } | 162 |
protected final Point getEndPoint() { if(this.endPoint == null) { setEndPoint(new Point(0,0)); } return this.endPoint; } | protected Point getEndPoint() { if(this.endPoint == null) { setEndPoint(new Point(0,0)); } return this.endPoint; } | 163 |
protected final Point getStartPoint() { if(this.startPoint == null) { setStartPoint(new Point(0,0)); } return this.startPoint; } | protected Point getStartPoint() { if(this.startPoint == null) { setStartPoint(new Point(0,0)); } return this.startPoint; } | 164 |
public Thread(Runnable target) { this(null, target, autoName()); } | public Thread(Runnable target) { this(null, target, autoName()); } | 165 |
public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType) { JOptionPane pane = new JOptionPane(message, PLAIN_MESSAGE, optionType); JDialog dialog = pane.createDialog(parentComponent, ti... | public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType) { JOptionPane pane = new JOptionPane(message, PLAIN_MESSAGE, optionType); JDialog dialog = pane.createDialog(parentComponent, ti... | 166 |
public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType) { JOptionPane pane = new JOptionPane(message, PLAIN_MESSAGE, optionType); JDialog dialog = pane.createDialog(parentComponent, ti... | public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType) { JOptionPane pane = new JOptionPane(message, PLAIN_MESSAGE, optionType); JDialog dialog = pane.createDialog(parentComponent, ti... | 167 |
public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType) { JOptionPane pane = new JOptionPane(message, PLAIN_MESSAGE, optionType); JDialog dialog = pane.createDialog(parentComponent, ti... | public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType) { JOptionPane pane = new JOptionPane(message, PLAIN_MESSAGE, optionType); JDialog dialog = pane.createDialog(parentComponent, ti... | 168 |
public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger) { this(source, id, when, modifiers, x, y, clickCount, popupTrigger, NOBUTTON); } | public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) { this(source, id, when, modifiers, x, y, clickCount, popupTrigger, NOBUTTON); } | 169 |
public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger) { this(source, id, when, modifiers, x, y, clickCount, popupTrigger, NOBUTTON); } | public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger) { this(source, id, when, modifiers, x, y, clickCount, popupTrigger, NOBUTTON); } | 170 |
public static void showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) { JOptionPane pane = new JOptionPane(message, messageType); pane.setIcon(icon); JDialog dialog = pane.createDi... | public static void showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) { JOptionPane pane = new JOptionPane(message, messageType); pane.setIcon(icon); JDialog dialog = pane.createDi... | 171 |
public static void showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) { JOptionPane pane = new JOptionPane(message, messageType); pane.setIcon(icon); JDialog dialog = pane.createDi... | public static void showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) { JOptionPane pane = new JOptionPane(message, messageType); pane.setIcon(icon); JDialog dialog = pane.createDi... | 172 |
public boolean isInField(int pos, boolean chgToField) { return screenFields.isInField(pos,chgToField); } | public boolean isInField() { return screenFields.isInField(pos,chgToField); } | 173 |
public boolean isInField(int pos, boolean chgToField) { return screenFields.isInField(pos,chgToField); } | public boolean isInField(int pos, boolean chgToField) { return isInField(lastPos,true); } | 174 |
public final void systemRequest(char sr) { if (sr == ' ') { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); JLabel jl = new JLabel("Enter alternate job"); final JTextField sro = new JTextField(); srp.add(jl,BorderLayout.NORTH); srp.add(sro,BorderLayo... | public final void systemRequest(char sr) { if (sr == ' ') { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); JLabel jl = new JLabel("Enter alternate job"); final JTextField sro = new JTextField(); srp.add(jl,BorderLayout.NORTH); srp.add(sro,BorderLayo... | 175 |
public void setSize(int width, int height) { resize (width, height); } | public void setSize(Dimension d) { resize (width, height); } | 176 |
public void setSize(int width, int height) { resize (width, height); } | public void setSize(int width, int height) { setSize (d.width, d.height); } | 177 |
public boolean isFocusTraversable() { return enabled && visible && (peer == null || peer.isFocusTraversable()); } | public boolean isFocusTraversable() { return enabled && visible && (peer == null || isLightweight() || peer.isFocusTraversable()); } | 178 |
public final void setBounds(Rectangle r) { setBounds(r.width, r.height); } | public final void setBounds(int width, int height) { setBounds(r.width, r.height); } | 179 |
public final void setBounds(Rectangle r) { setBounds(r.width, r.height); } | public final void setBounds(Rectangle r) { setCursorActive(false); resizeScreenArea(width,height); dirty.setBounds(tArea.getBounds()); if (gui.getGraphics() != null) { gg2d = null; drawing = true; updateDirty(); } if (isStatusErrorCode()) setStatus(STATUS_ERROR_CODE,STATUS_VALUE_ON,statusString); if (isXSy... | 180 |
public JList(ListModel listData) { init(); setModel(listData); } | public JList() { init(); setModel(listData); } | 181 |
public JList(ListModel listData) { init(); setModel(listData); } | public JList(ListModel listData) { init(); } | 182 |
public JScrollPane(Component view) { this(view, VERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_AS_NEEDED); } | public JScrollPane() { this(view, VERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_AS_NEEDED); } | 183 |
public JScrollPane(Component view) { this(view, VERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_AS_NEEDED); } | public JScrollPane(Component view) { this(view, VERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_AS_NEEDED); } | 184 |
public static String showInputDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); pane.setWantsInput(true); JDialog dialog = pane.createDialog(... | public static String showInputDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); pane.setWantsInput(true); JDialog dialog = pane.createDialog(... | 185 |
public static String showInputDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); pane.setWantsInput(true); JDialog dialog = pane.createDialog(... | public static String showInputDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, QUESTION_MESSAGE); pane.setWantsInput(true); JDialog dialog = pane.createDi... | 186 |
public static String showInputDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); pane.setWantsInput(true); JDialog dialog = pane.createDialog(... | public static String showInputDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); pane.setWantsInput(true); JDialog dialog = pane.createDialog(... | 187 |
private RefItem(int kind, Register reg, VmConstString val, int offsetToFP) { super(kind, reg, offsetToFP); this.value = val; } | private RefItem(int kind, Register reg, VmConstString val, int offsetToFP) { super(kind, reg, offsetToFP); this.value = val; } | 188 |
protected WordItem cloneConstant() { return createConst(getValue()); } | protected WordItem cloneConstant() { return factory.createAConst(getValue()); } | 189 |
public void setBlockIncrement(int blockIncrement) { if (blockIncrement != this.blockIncrement) { int oldInc = this.blockIncrement; this.blockIncrement = blockIncrement; firePropertyChange(BLOCK_INCREMENT_CHANGED_PROPERTY, oldInc, this.blockIncrement); } } | public void setBlockIncrement(int blockIncrement) { if (blockIncrement != this.blockIncrement) { int oldInc = this.blockIncrement; this.blockIncrement = blockIncrement; firePropertyChange("blockIncrement", oldInc, this.blockIncrement); } } | 190 |
public void setModel(BoundedRangeModel newModel) { if (model != newModel) { BoundedRangeModel oldModel = model; model = newModel; oldModel.removeChangeListener(changeListener); model.addChangeListener(changeListener); firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, model); } } | public void setModel(BoundedRangeModel newModel) { if (model != newModel) { BoundedRangeModel oldModel = model; model = newModel; oldModel.removeChangeListener(changeListener); model.addChangeListener(changeListener); firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, model); } } | 191 |
public void setOrientation(int orientation) { if (orientation != SwingConstants.HORIZONTAL && orientation != SwingConstants.VERTICAL) throw new IllegalArgumentException("orientation must be one of HORIZONTAL or VERTICAL"); if (orientation != this.orientation) { int oldOrientation = this.orient... | public void setOrientation(int orientation) { if (orientation != SwingConstants.HORIZONTAL && orientation != SwingConstants.VERTICAL) throw new IllegalArgumentException("orientation must be one of HORIZONTAL or VERTICAL"); if (orientation != this.orientation) { int oldOrientation = this.orient... | 192 |
public void setUnitIncrement(int unitIncrement) { if (unitIncrement != this.unitIncrement) { int oldInc = this.unitIncrement; this.unitIncrement = unitIncrement; firePropertyChange(UNIT_INCREMENT_CHANGED_PROPERTY, oldInc, this.unitIncrement); } } | public void setUnitIncrement(int unitIncrement) { if (unitIncrement != this.unitIncrement) { int oldInc = this.unitIncrement; this.unitIncrement = unitIncrement; firePropertyChange("unitIncrement", oldInc, this.unitIncrement); } } | 193 |
public static Class loadClass (String codebases, String name) throws MalformedURLException, ClassNotFoundException { ClassLoader loader = Thread.currentThread().getContextClassLoader(); //try context class loader first try { return loader.loadClass (name); } catch (ClassNotFoundExcep... | public static Class loadClass (String name) throws MalformedURLException, ClassNotFoundException { ClassLoader loader = Thread.currentThread().getContextClassLoader(); //try context class loader first try { return loader.loadClass (name); } catch (ClassNotFoundException e) { ... | 194 |
public static Class loadClass (String codebases, String name) throws MalformedURLException, ClassNotFoundException { ClassLoader loader = Thread.currentThread().getContextClassLoader(); //try context class loader first try { return loader.loadClass (name); } catch (ClassNotFoundExcep... | public static Class loadClass (String codebases, String name) throws MalformedURLException, ClassNotFoundException { ClassLoader loader = Thread.currentThread().getContextClassLoader(); //try context class loader first try { return loader.loadClass (name); } catch (ClassNotFoundExcep... | 195 |
public URLClassLoader(URL[] urls, ClassLoader parent) throws SecurityException { super(parent); this.factory = null; this.securityContext = null; addURLs(urls); } | public URLClassLoader(URL[] urls, ClassLoader parent) throws SecurityException { super(parent); this.factory = null; this.securityContext = null; addURLs(urls); } | 196 |
public URLClassLoader(URL[] urls, ClassLoader parent) throws SecurityException { super(parent); this.factory = null; this.securityContext = null; addURLs(urls); } | public URLClassLoader(URL[] urls, ClassLoader parent) throws SecurityException { super(); this.factory = null; this.securityContext = null; addURLs(urls); } | 197 |
public StringTokenizer(String str, String delim) { this(str, delim, false); } | public StringTokenizer(String str) { this(str, delim, false); } | 198 |
public StringTokenizer(String str, String delim) { this(str, delim, false); } | public StringTokenizer(String str, String delim) { this(str, " \t\n\r\f", false); } | 199 |
public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.in... | public String nextToken(String delim) throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len... | 200 |
public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.in... | public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.in... | 201 |
public ClassNotFoundException(String s) { this(s, null); } | public ClassNotFoundException() { this(s, null); } | 202 |
public ClassNotFoundException(String s) { this(s, null); } | public ClassNotFoundException(String s) { this(null); } | 203 |
protected void installDefaults() { Caret caret = textComponent.getCaret(); if (caret == null) { caret = createCaret(); textComponent.setCaret(caret); } Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) textComponent.setHighlighter(createHigh... | protected void installDefaults() { Caret caret = textComponent.getCaret(); if (caret == null) { caret = createCaret(); textComponent.setCaret(caret); } Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) textComponent.setHighlighter(createHigh... | 204 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.