bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public abstract boolean printDialog(); | public abstract boolean printDialog() throws HeadlessException; | 8,130 |
public RequestSenseData requestSense() throws SCSIException, TimeoutException, InterruptedException { final byte[] data = new byte[ 256]; final CDB cdb = new CDBRequestSense(data.length); api.executeCommand(cdb, data, 0, 5000); return new RequestSenseData(data); } | public SenseData requestSense() throws SCSIException, TimeoutException, InterruptedException { final byte[] data = new byte[ 256]; final CDB cdb = new CDBRequestSense(data.length); api.executeCommand(cdb, data, 0, 5000); return new RequestSenseData(data); } | 8,132 |
public RequestSenseData requestSense() throws SCSIException, TimeoutException, InterruptedException { final byte[] data = new byte[ 256]; final CDB cdb = new CDBRequestSense(data.length); api.executeCommand(cdb, data, 0, 5000); return new RequestSenseData(data); } | public RequestSenseData requestSense() throws SCSIException, TimeoutException, InterruptedException { final byte[] data = new byte[ 256]; final CDB cdb = new CDBRequestSense(data.length); api.executeCommand(cdb, data, 0, 5000); return new SenseData(data); } | 8,133 |
public final static String getKeyStrokeText(KeyEvent ke) { if (!workStroke.equals(ke)) { workStroke.setAttributes(ke); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } System.out.println("getKeyStrokeText " + lastKeyMnemonic); return lastKeyMnemonic; } | public final static String getKeyStrokeText(KeyEvent ke) { if (!workStroke.equals(ke)) { workStroke.setAttributes(ke); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } return lastKeyMnemonic; } | 8,134 |
public void verifyBeforeEmit() { System.out.println("VmStatics#verifyBeforeEmit"); final int max = statics.length; for (int i = 0; i < max; i++) { final Object value = objects[i]; if (value != null) { if (slotLength == 1) { statics[i] = resolver.addressOf32(value); } else { final long lvalue = res... | public void verifyBeforeEmit() { System.out.println("VmStatics#verifyBeforeEmit " + slotLength + ", " + resolver); final int max = statics.length; for (int i = 0; i < max; i++) { final Object value = objects[i]; if (value != null) { if (slotLength == 1) { statics[i] = resolver.addressOf32(value); } el... | 8,140 |
public void add(MutableTreeNode child) { if (child == null) throw new IllegalArgumentException(); if (! allowsChildren) throw new IllegalStateException(); children.add(child); child.setParent(this); } | public void add(MutableTreeNode child) { if (child == null) throw new IllegalArgumentException(); if (! allowsChildren) throw new IllegalStateException(); children.add(child); child.setParent(this); } | 8,144 |
public Object clone() { try { return super.clone(); // TODO: Do we need to do more here ? } catch (CloneNotSupportedException e) { // This never happens. return null; } } | public Object clone() { try { return super.clone(); // TODO: Do we need to do more here ? } catch (CloneNotSupportedException e) { // This never happens. return null; } } | 8,145 |
public DefaultMutableTreeNode getNextLeaf() { if (parent == null) return null; // TODO: Fix implementation. return null; //return parent.getChildAfter(this); } | public DefaultMutableTreeNode getNextLeaf() { DefaultMutableTreeNode sibling = getNextSibling(); if (sibling != null) return sibling.getFirstLeaf(); if (parent != null) return ((DefaultMutableTreeNode) parent).getNextLeaf(); return null; // TODO: Fix implementation. return null; //return parent.get... | 8,147 |
public DefaultMutableTreeNode getNextLeaf() { if (parent == null) return null; // TODO: Fix implementation. return null; //return parent.getChildAfter(this); } | public DefaultMutableTreeNode getNextLeaf() { if (parent == null) // TODO: Fix implementation. //return parent.getChildAfter(this); } | 8,148 |
public DefaultMutableTreeNode getPreviousLeaf() { if (parent == null) return null; // TODO: Fix implementation. return null; //return parent.getChildBefore(this); } | public DefaultMutableTreeNode getPreviousLeaf() { if (parent == null) return null; // TODO: Fix implementation. return null; //return parent.getChildBefore(this); } | 8,149 |
public void remove(int index) { children.remove(index); } | public void remove(int index) { MutableTreeNode child = (MutableTreeNode) children.remove(index); child.setParent(null); } | 8,152 |
public void removeAllChildren() { children.removeAllElements(); } | public void removeAllChildren() { for (int i = getChildCount() - 1; i >= 0; i--) remove(i); } | 8,153 |
public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); //TODO fix it Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFrame.reshape(p.x + x, p.y + y, width + ins.left + ins.right, heigh... | public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); //TODO fix it Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFrame.reshape(p.x + x, p.y + y, width + ins.left + ins.right, heigh... | 8,155 |
Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(tree.getFont()); return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); ... | Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(tree.getFont()); if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s) + 4, ... | 8,156 |
Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(tree.getFont()); return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); ... | Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(tree.getFont()); return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); ... | 8,157 |
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(( (DefaultMutableTreeNode) mod.getRoot... | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(( (DefaultMutableTreeNode) mod.getRoot... | 8,158 |
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); TreeModel mod = tree.getModel(); DefaultMutableTreeNode root = (DefaultMutableTreeNode) mod.getRoot(); if (!tree.isRootVisible() && tree.isE... | public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); TreeModel mod = tree.getModel(); DefaultMutableTreeNode root = (DefaultMutableTreeNode) mod.getRoot(); if (!tree.isRootVisible() && tree.isE... | 8,159 |
public int getRightChildIndent(int newAmount) { return rightChildIndent; } | public int getRightChildIndent() { return rightChildIndent; } | 8,160 |
public void installUI(JComponent c) { super.installUI(c); installDefaults((JTree) c); tree = (JTree) c; setModel(tree.getModel()); tree.setRootVisible(true); tree.expandPath(new TreePath(((DefaultMutableTreeNode) (tree.getModel()).getRoot()).getPath())); treeSelectionModel = tree.getSelectio... | public void installUI(JComponent c) { super.installUI(c); installDefaults((JTree) c); tree = (JTree) c; setModel(tree.getModel()); tree.setRootVisible(true); tree.expandPath(new TreePath(((DefaultMutableTreeNode) (tree.getModel()).getRoot()).getPath())); treeSelectionModel = tree.getSelectio... | 8,161 |
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; TreeModel mod = tree.getModel(); Object root = mod.getRoot(); if (!tree.isRootVisible()) tree.expandPath(new TreePath(((DefaultMutableTreeNode) root) .getPath())); paintRecursive(g, 0, 0, 0, 0, tree... | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; TreeModel mod = tree.getModel(); Object root = mod.getRoot(); if (!tree.isRootVisible()) tree.expandPath(new TreePath(((DefaultMutableTreeNode) root) .getPath())); paintRecursive(g, 0, 0, 0, 0, tree... | 8,162 |
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; TreeModel mod = tree.getModel(); Object root = mod.getRoot(); if (!tree.isRootVisible()) tree.expandPath(new TreePath(((DefaultMutableTreeNode) root) .getPath())); paintRecursive(g, 0, 0, 0, 0, tree... | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; TreeModel mod = tree.getModel(); Object root = mod.getRoot(); if (!tree.isRootVisible()) tree.expandPath(new TreePath(((DefaultMutableTreeNode) root) .getPath())); paintRecursive(g, 0, 0, 0, 0, tree... | 8,163 |
void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(((DefaultMutableTreeNode) node).getPath()); boolean selected = tree.isPathSelected(curr); boolean expanded = false; if (tree.isVisible(curr)) { DefaultTreeCellRend... | void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(((DefaultMutableTreeNode) node).getPath()); boolean selected = tree.isPathSelected(curr); boolean expanded = false; if (tree.isVisible(curr)) { DefaultTreeCellRend... | 8,164 |
protected void uninstallListeners() { tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseInputListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(s... | protected void uninstallListeners() { tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseInputListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(s... | 8,166 |
protected void uninstallListeners() { tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseInputListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(s... | protected void uninstallListeners() { tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseInputListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(s... | 8,167 |
public static NotFound extract(Any a) { try { return ((NotFoundHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } } | public static NotFound extract(Any a) { try { return ((NotFoundHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; } } | 8,168 |
public void setValue(Object value) { // TODO: should be setting the value in the editorComp this.value = value; } | public void setValue(Object aValue) { // TODO: should be setting the value in the editorComp this.value = value; } | 8,170 |
public void setValue(Object value) { // TODO: should be setting the value in the editorComp this.value = value; } | public void setValue(Object value) { // TODO: should be setting the value in the editorComp value = aValue; } | 8,171 |
public DefaultCellEditor(JTextField textfield) { editorComponent = textfield; clickCountToStart = 3; } // DefaultCellEditor() | public DefaultCellEditor(JTextField textfield) { editorComponent = textfield; clickCountToStart = 2; delegate = new JTextFieldDelegate(); textfield.addActionListener(delegate); } // DefaultCellEditor() | 8,172 |
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { // NOTE: as specified by Sun, we don't call new() everytime, we return // editorComponent on each call... | public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { // NOTE: as specified by Sun, we don't call new() everytime, we return // editorComponent on each call... | 8,173 |
String getDTDType(); | QName getDTDType(); | 8,174 |
public Object[] getSelectedValues() { int [] idx = getSelectedIndices(); Object [] v = new Object[idx.length]; for (int i = 0; i < idx.length; ++i) v[i] = getModel().getElementAt(i); return v; } | public Object[] getSelectedValues() { int [] idx = getSelectedIndices(); Object [] v = new Object[idx.length]; for (int i = 0; i < idx.length; ++i) v[i] = getModel().getElementAt(idx[i]); return v; } | 8,175 |
public void editingCanceled(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) tree.remove(editingComponent.getParent()); editingComponent = null; if (cellEditor != null) { if (cellEditor i... | public void editingCanceled(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) tree.remove(editingComponent.getParent()); editingComponent = null; if (cellEditor != null) { if (cellEditor i... | 8,176 |
public void editingStopped(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) { tree.remove(editingComponent.getParent()); editingComponent = null; } if (cellEditor != null) { ... | public void editingStopped(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) { tree.remove(editingComponent.getParent()); editingComponent = null; } if (cellEditor != null) { ... | 8,177 |
public void propertyChange(PropertyChangeEvent event) { if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } } | public void propertyChange(PropertyChangeEvent event) { if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } } | 8,178 |
public void treeCollapsed(TreeExpansionEvent event) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | public void treeCollapsed(TreeExpansionEvent event) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | 8,179 |
public void treeExpanded(TreeExpansionEvent event) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | public void treeExpanded(TreeExpansionEvent event) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | 8,180 |
public void treeNodesChanged(TreeModelEvent e) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | public void treeNodesChanged(TreeModelEvent e) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | 8,181 |
public void treeNodesInserted(TreeModelEvent e) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | public void treeNodesInserted(TreeModelEvent e) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | 8,182 |
public void treeNodesRemoved(TreeModelEvent e) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | public void treeNodesRemoved(TreeModelEvent e) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | 8,183 |
public void treeStructureChanged(TreeModelEvent e) { if (e.getPath().length == 1 && !e.getPath()[0].equals(treeModel.getRoot())) tree.expandPath(new TreePath(treeModel.getRoot())); updateCurrentVisiblePath(); validCachedPreferredSize = false; tree.revalidate(); tree.repai... | public void treeStructureChanged(TreeModelEvent e) { if (e.getPath().length == 1 && !e.getPath()[0].equals(treeModel.getRoot())) tree.expandPath(new TreePath(treeModel.getRoot())); validCachedPreferredSize = false; tree.revalidate(); tree.repaint(); } | 8,184 |
public void treeStructureChanged(TreeModelEvent e) { if (e.getPath().length == 1 && !e.getPath()[0].equals(treeModel.getRoot())) tree.expandPath(new TreePath(treeModel.getRoot())); updateCurrentVisiblePath(); validCachedPreferredSize = false; tree.revalidate(); tree.repai... | public void treeStructureChanged(TreeModelEvent e) { if (e.getPath().length == 1 && !e.getPath()[0].equals(treeModel.getRoot())) tree.expandPath(new TreePath(treeModel.getRoot())); updateCurrentVisiblePath(); validCachedPreferredSize = false; tree.repaint(); } | 8,185 |
public void installUI(JComponent c) { tree = (JTree) c; prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeMode... | public void installUI(JComponent c) { tree = (JTree) c; prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeMode... | 8,186 |
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); Rectangle clip = g.getClipBounds(); Insets insets = tree.getInsets(); if (clip != null && treeModel != null && currentVisiblePath != null) { int startIndex... | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; updateCurrentVisiblePath(); Rectangle clip = g.getClipBounds(); Insets insets = tree.getInsets(); if (clip != null && treeModel != null && currentVisiblePath != null) { int startIndex = tree.getClosestRowForLocatio... | 8,188 |
protected void pathWasCollapsed(TreePath path) { validCachedPreferredSize = false; tree.revalidate(); tree.repaint(); } | protected void pathWasCollapsed(TreePath path) { validCachedPreferredSize = false; tree.repaint(); } | 8,189 |
protected void pathWasExpanded(TreePath path) { validCachedPreferredSize = false; tree.revalidate(); tree.repaint(); } | protected void pathWasExpanded(TreePath path) { validCachedPreferredSize = false; tree.repaint(); } | 8,190 |
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr... | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr... | 8,191 |
protected void toggleExpandState(TreePath path) { if (tree.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); updateCurrentVisiblePath(); } | protected void toggleExpandState(TreePath path) { if (tree.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); } | 8,192 |
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); toolBar.setBorder(new ToolBarBorder()); toolBar.setBackground(defaults.getColor("ToolBar.background")); toolBar.setForeground(defaults.getColor("ToolBar.foreground")); toolBar.setFont(defaults.getFont("ToolBar... | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); toolBar.setBorder(defaults.getBorder("ToolBar.border")); toolBar.setBackground(defaults.getColor("ToolBar.background")); toolBar.setForeground(defaults.getColor("ToolBar.foreground")); toolBar.setFont(defaults... | 8,194 |
public void invoke(String cmdLineStr) { final CommandLine cmdLine = new CommandLine(cmdLineStr); if (!cmdLine.hasNext()) return; String cmdName = cmdLine.next(); commandShell.addCommandToHistory(cmdLineStr); // System.err.println("Got command: "+cmdLineStr+", name="+cmdName... | public void invoke(String cmdLineStr) { final CommandLine cmdLine = new CommandLine(cmdLineStr); if (!cmdLine.hasNext()) return; String cmdName = cmdLine.next(); commandShell.addCommandToHistory(cmdLineStr); // System.err.println("Got command: "+cmdLineStr+", name="+cmdName... | 8,195 |
public boolean send() throws Exception { try { if(!loadConfig(configFile)) return false; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Multipart mp = new MimeMultipart();... | public boolean send() throws Exception { try { if(!loadConfig(configFile)) return false; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Multipart mp = new MimeMultipart();... | 8,196 |
private void showFailedException(SendFailedException sfe) { String error = sfe.getMessage() + "\n"; Address[] ia = sfe.getInvalidAddresses(); for (int x = 0; x < ia.length; x++) { error += "Invalid Address: " + ia[x].toString() + "\n"; } JTextArea ea = new JTextArea(error,6,50); ... | private void showFailedException(SendFailedException sfe) { String error = sfe.getMessage() + "\n"; Address[] ia = sfe.getInvalidAddresses(); for (int x = 0; x < ia.length; x++) { error += "Invalid Address: " + ia[x].toString() + "\n"; } JTextArea ea = new JTextArea(error,6,50); ... | 8,197 |
public HostNameArgument(String _name, String _description) { super(_name, _description); } | public HostNameArgument(String _name, String _description, boolean _multi) { super(_name, _description); } | 8,198 |
public HostNameArgument(String _name, String _description) { super(_name, _description); } | public HostNameArgument(String _name, String _description) { super(_name, _description, _multi); } | 8,199 |
private void handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = SwingUtilities.convertMouseEvent(frame.getRootPane() .getGlassPane(), (MouseEvent) e, ... | private void handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = SwingUtilities.convertMouseEvent(frame.getRootPane() .getGlassPane(), (MouseEvent) e, ... | 8,200 |
private void handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = SwingUtilities.convertMouseEvent(frame.getRootPane() .getGlassPane(), (MouseEvent) e, ... | private void handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = SwingUtilities.convertMouseEvent(frame.getRootPane() .getGlassPane(), (MouseEvent) e, ... | 8,201 |
private void handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = SwingUtilities.convertMouseEvent(frame.getRootPane() .getGlassPane(), (MouseEvent) e, ... | private void handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = SwingUtilities.convertMouseEvent(frame.getRootPane() .getGlassPane(), (MouseEvent) e, ... | 8,202 |
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(JInternalFrame.IS_MAXIMUM_PROPERTY)) { if (frame.isMaximum()) maximizeFrame(frame); else minimizeFrame(frame); } else if (evt.getPropertyName().equals(JInternalFrame.IS_ICON_PROPERTY)) ... | public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(JInternalFrame.IS_MAXIMUM_PROPERTY)) { if (frame.isMaximum()) maximizeFrame(frame); else minimizeFrame(frame); } else if (evt.getPropertyName().equals(JInternalFrame.IS_ICON_PROPERTY)) ... | 8,203 |
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } textComponent.... | public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } textComponent.... | 8,205 |
public void uninstallUI(final JComponent component) { super.uninstallUI(component); rootView.setView(null); textComponent.removePropertyChangeListener(updateHandler); uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); textComponent = null; } | public void uninstallUI(final JComponent component) { super.uninstallUI(component); rootView.setView(null); uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); textComponent = null; } | 8,208 |
public void add(org.omg.CORBA.Object object) { add(generateObjectKey(object), object); } | public cObject add(org.omg.CORBA.Object object, int port) { add(generateObjectKey(object), object); } | 8,209 |
public void add(org.omg.CORBA.Object object) { add(generateObjectKey(object), object); } | public void add(org.omg.CORBA.Object object) { return add(generateObjectKey(object), object, port); } | 8,210 |
public org.omg.CORBA.Object get(byte[] key) { return (org.omg.CORBA.Object) objects.get(key); } | public cObject get(byte[] key) { return (org.omg.CORBA.Object) objects.get(key); } | 8,211 |
public org.omg.CORBA.Object get(byte[] key) { return (org.omg.CORBA.Object) objects.get(key); } | public org.omg.CORBA.Object get(byte[] key) { return (cObject) objects.get(key); } | 8,212 |
public byte[] getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); while (iter.hasNext()) { item = (Map.Entry) iter.next(); if (stored_object._is_equivalent((org.omg.CORBA.Object) item.getValue()) ) return (byte[]) ... | public cObject getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); while (iter.hasNext()) { item = (Map.Entry) iter.next(); if (stored_object._is_equivalent((org.omg.CORBA.Object) item.getValue()) ) return (byte[])... | 8,213 |
public byte[] getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); while (iter.hasNext()) { item = (Map.Entry) iter.next(); if (stored_object._is_equivalent((org.omg.CORBA.Object) item.getValue()) ) return (byte[]) ... | public byte[] getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); while (iter.hasNext()) { item = (Map.Entry) iter.next(); if (stored_object._is_equivalent((org.omg.CORBA.Object) item.getValue()) ) return (byte[]) ... | 8,214 |
public void remove(org.omg.CORBA.Object object) { byte[] key = getKey(object); if (key != null) objects.remove(key); } | public void remove(org.omg.CORBA.Object object) { byte[] key = getKey(object); if (key != null) objects.remove(key); } | 8,215 |
private void recursiveWriteFormattedData(OutputStream outputstream, Locator locator, List commands, AxisInterface fastestAxis, String[] noDataValues) ... | private void recursiveWriteFormattedData(OutputStream outputstream, Locator locator, List commands, AxisInterface fastestAxis, String[] noDataValues) ... | 8,216 |
private void recursiveWriteFormattedData(OutputStream outputstream, Locator locator, List commands, AxisInterface fastestAxis, String[] noDataValues) ... | private void recursiveWriteFormattedData(OutputStream outputstream, Locator locator, List commands, AxisInterface fastestAxis, String[] noDataValues) ... | 8,217 |
public void remove(int index) { popupMenu.remove(index); } | public void remove(JMenuItem item) { popupMenu.remove(index); } | 8,218 |
public void remove(int index) { popupMenu.remove(index); } | public void remove(int index) { popupMenu.remove(item); } | 8,219 |
public Boolean isHidden(File f) { return new Boolean(filechooser.getFileSystemView().isHiddenFile(f)); } | public Boolean isHidden(File f) { return Boolean.valueOf(filechooser.getFileSystemView().isHiddenFile(f)); } | 8,220 |
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection // bug. if (e.getPropertyName().equals( ... | public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection // bug. if (e.getPropertyName().equals( ... | 8,221 |
public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new CBLabelRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); JPan... | public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new BasicComboBoxRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); ... | 8,222 |
public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new CBLabelRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); JPan... | public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new CBLabelRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); JPan... | 8,223 |
public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new CBLabelRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); JPan... | public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new CBLabelRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); JPan... | 8,224 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | 8,230 |
public void bootOptionsReceived(BootEvent bootEvent) { System.out.println(" boot options received " + bootEvent.getNewSessionOptions()); // If the options are not equal to the string 'null' then we have // boot options if (!bootEvent.getNewSessionOptions().equals("null")) { // check if... | public void bootOptionsReceived(BootEvent bootEvent) { log.info(" boot options received " + bootEvent.getNewSessionOptions()); // If the options are not equal to the string 'null' then we have // boot options if (!bootEvent.getNewSessionOptions().equals("null")) { // check if a session... | 8,232 |
private void initScripting() { try { Class.forName("org.tn5250j.scripting.JPythonInterpreterDriver"); } catch (java.lang.NoClassDefFoundError ncdfe) { System.out.println("Information Message: Can not find scripting support" + " files, scripting will not be ava... | private void initScripting() { try { Class.forName("org.tn5250j.scripting.JPythonInterpreterDriver"); } catch (java.lang.NoClassDefFoundError ncdfe) { log.warn("Information Message: Can not find scripting support" + " files, scripting will not be available: " ... | 8,233 |
protected void installDefaults() { resetLayoutManager(); divider = createDefaultDivider(); nonContinuousLayoutDivider = createDefaultNonContinuousLayoutDivider(); splitPane.add(divider, JSplitPane.DIVIDER); // There is no need to add the nonContinuousLayoutDivider UIDefaults defaults = UIManager.ge... | protected void installDefaults() { resetLayoutManager(); nonContinuousLayoutDivider = createDefaultNonContinuousLayoutDivider(); splitPane.add(divider, JSplitPane.DIVIDER); // There is no need to add the nonContinuousLayoutDivider UIDefaults defaults = UIManager.getLookAndFeelDefaults(); splitP... | 8,234 |
public void paint(Graphics g, JComponent jc) { // Make sure that the location is valid int divLoc = splitPane.getDividerLocation(); int valLoc = validLocation(divLoc); if (divLoc != valLoc) splitPane.setDividerLocation(valLoc); } | public void paint(Graphics g, JComponent jc) { // Make sure that the location is valid int divLoc = splitPane.getDividerLocation(); int valLoc = validLocation(divLoc); if (divLoc != valLoc) splitPane.setDividerLocation(valLoc); } | 8,235 |
protected void resetLayoutManager() { if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) layoutManager = new BasicHorizontalLayoutManager(); else layoutManager = new BasicVerticalLayoutManager(); layoutManager.invalidateLayout(splitPane); layoutManager.updateComponents(); getSplitPane().se... | protected void resetLayoutManager() { if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) layoutManager = new BasicHorizontalLayoutManager(); else layoutManager = new BasicVerticalLayoutManager(); getSplitPane().setLayout(layoutManager); layoutManager.updateComponents(); getSplitPane().setL... | 8,236 |
protected void resetLayoutManager() { if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) layoutManager = new BasicHorizontalLayoutManager(); else layoutManager = new BasicVerticalLayoutManager(); layoutManager.invalidateLayout(splitPane); layoutManager.updateComponents(); getSplitPane().se... | protected void resetLayoutManager() { if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) layoutManager = new BasicHorizontalLayoutManager(); else layoutManager = new BasicVerticalLayoutManager(); layoutManager.invalidateLayout(splitPane); layoutManager.updateComponents(); // invalidati... | 8,237 |
public Data(char[] text, char[] color, char[] extended) { this.text = text; this.color = color; this.extended = extended; this.graphic = null; this.field = null; } | public Data(char[] text, char[] attr, char[] color, char[] extended, char[] graphic) { this.text = text; this.color = color; this.extended = extended; this.graphic = null; this.field = null; } | 8,239 |
public Data(char[] text, char[] color, char[] extended) { this.text = text; this.color = color; this.extended = extended; this.graphic = null; this.field = null; } | public Data(char[] text, char[] color, char[] extended) { this.text = text; this.color = color; this.extended = extended; this.graphic = graphic; this.attr = attr; this.field = null; } | 8,240 |
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = planes.getCharAttr(s.getPos(row,col)); sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributeP... | public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = updateRect.attr[pos]; sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributePlace = planes.isA... | 8,241 |
public void drawCursor() {// public void drawCursor(int row, int col) {// int fmWidth, int fmHeight,// boolean insertMode, int crossHair,// boolean rulerFixed,// int cursorSize, Color colorCursor,// ... | public void drawCursor() {// public void drawCursor(int row, int col) {// int fmWidth, int fmHeight,// boolean insertMode, int crossHair,// boolean rulerFixed,// int cursorSize, Color colorCursor,// ... | 8,242 |
public File[] getFiles(File dir, boolean useFileHiding) { if (dir == null) return null; File[] files = dir.listFiles(); if (! useFileHiding) return files; ArrayList trim = new ArrayList(); for (int i = 0; i < files.length; i++) if (! files[i].isHidden()) trim.add(files[i]); File[] va... | public File[] getFiles(File dir, boolean useFileHiding) { if (dir == null || dir.listFiles() == null) return null; File[] files = dir.listFiles(); if (! useFileHiding) return files; ArrayList trim = new ArrayList(); for (int i = 0; i < files.length; i++) if (! files[i].isHidden()) trim.... | 8,243 |
public void addDropTargetListener (DropTargetListener dtl) throws TooManyListenersException { if (dtl != null) throw new TooManyListenersException (); dropTargetListener = dtl; } | public void addDropTargetListener (DropTargetListener dtl) throws TooManyListenersException { if (dtl != null) throw new TooManyListenersException (); dropTargetListener = dtl; } | 8,244 |
public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Arc2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1), 40, 300, Arc2D.PIE), tx, randomColor(), paintMode); } | public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Arc2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1), 40, 300, Arc2D.PIE), null, tx, randomColor(), paintMode); } | 8,245 |
public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Ellipse2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), tx, randomColor(), paintMode); } | public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Ellipse2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), null, tx, randomColor(), paintMode); } | 8,246 |
public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Line2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), tx, randomColor(), paintMode); } | public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Line2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), null, tx, randomColor(), paintMode); } | 8,247 |
public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); final int cx = randomX(); final int cy = randomY(); g.draw(new QuadCurve2D.Double(x1, y1, cx, cy, x2, y2), tx, randomColor(), paintMode); } | public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); final int cx = randomX(); final int cy = randomY(); g.draw(new QuadCurve2D.Double(x1, y1, cx, cy, x2, y2), null, tx, randomColor(), paintMode); } | 8,248 |
public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Rectangle(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), tx, randomColor(), paintMode); } | public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Rectangle(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), null, tx, randomColor(), paintMode); } | 8,249 |
public JDialog() { this(SwingUtilities.getOwnerFrame(), "", false, null); } | public JDialog() { this((Frame) SwingUtilities.getOwnerFrame(null), "", false, null); } | 8,250 |
private void jbInit() throws Exception { try { setIconImage(GUIGraphicsUtils.getApplicationIcon().getImage()); // set title setTitle(LangTool.getString("xtfr.wizardTitle")); // Load the JDBC driver. Driver driver2 = (Driver)Class.forName("com.ibm.as400.access.AS400JDBCDri... | private void jbInit() throws Exception { try { setIconImage(GUIGraphicsUtils.getApplicationIcon().getImage()); // set title setTitle(LangTool.getString("xtfr.wizardTitle")); // Load the JDBC driver. Driver driver2 = (Driver)Class.forName("com.ibm.as400.access.AS400JDBCDri... | 8,251 |
public static int vmMain() { //return 15; try { Unsafe.debug("Starting JNode\n"); final long start = VmSystem.currentKernelMillis(); //Unsafe.debug("VmSystem.initialize\n"); VmSystem.initialize(); //Unsafe.debug("Starting PluginManager"); final PluginManager piMgr = new DefaultPluginManager(pluginRegistr... | public static int vmMain() throws PragmaUninterruptible { //return 15; try { Unsafe.debug("Starting JNode\n"); final long start = VmSystem.currentKernelMillis(); //Unsafe.debug("VmSystem.initialize\n"); VmSystem.initialize(); //Unsafe.debug("Starting PluginManager"); final PluginManager piMgr = new Defau... | 8,252 |
public final void visit_aload(int index) { vstack.push(ifac.createLocal(JvmType.REFERENCE, stackFrame .getEbpOffset(typeSizeInfo, index))); } | public final void visit_aload(int index) { vstack.push(ifac.createLocal(JvmType.REFERENCE, stackFrame .getEbpOffset(typeSizeInfo, index))); } | 8,256 |
public final void visit_fload(int index) { vstack.push(ifac.createLocal(JvmType.FLOAT, stackFrame .getEbpOffset(typeSizeInfo, index))); } | public final void visit_fload(int index) { vstack.push(ifac.createLocal(JvmType.FLOAT, stackFrame .getEbpOffset(typeSizeInfo, index))); } | 8,257 |
public final void visit_iload(int index) { vstack.push(ifac.createLocal(JvmType.INT, stackFrame .getEbpOffset(typeSizeInfo, index))); } | public final void visit_iload(int index) { vstack.push(ifac.createLocal(JvmType.INT, stackFrame .getEbpOffset(typeSizeInfo, index))); } | 8,258 |
public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); L1AHelper.requestRegister(eContext, X86Register.ECX, v2); v2.loadTo(eContext, X86Register.ECX); v1.load(eContext); if (os.isCode32()) { final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb =... | public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); L1AHelper.requestRegister(eContext, X86Register.ECX, v2); v2.loadTo(eContext, X86Register.ECX); v1.load(eContext); if (os.isCode32()) { final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb =... | 8,260 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.