bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
---|---|---|
protected void setSelectionModel(TreeSelectionModel newLSM) { if (newLSM != null) { treeSelectionModel = newLSM; tree.setSelectionModel(treeSelectionModel); } }
|
protected void setSelectionModel(TreeSelectionModel newLSM) { if (newLSM != null) { treeSelectionModel = newLSM; tree.setSelectionModel(treeSelectionModel); } }
| 301 |
protected void setShowsRootHandles(boolean newValue) { tree.setShowsRootHandles(newValue); }
|
protected void setShowsRootHandles(boolean newValue) { tree.setShowsRootHandles(newValue); }
| 302 |
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(); TreeCellEditor ed = getCellEditor(); if (ed != null && ed.shouldSelectCell(event) && ed.isCellEditable(event)) { editingPath = path; editingRow = tree.getRowForPath(editingPath); Object val = editingPath.getLastPathComponent(); cellEditor.addCellEditorListener(cellEditorListener); stopEditingInCompleteEditing = false; boolean expanded = tree.isExpanded(editingPath); isEditing = true; editingComponent = ed.getTreeCellEditorComponent(tree, val, true, expanded, isLeaf(editingRow), editingRow); editingComponent.getParent().setVisible(true); editingComponent.getParent().validate(); tree.add(editingComponent.getParent()); editingComponent.getParent().validate(); ((JTextField) editingComponent).requestFocusInWindow(false); editorTimer.start(); return true; } return false; }
|
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(); TreeCellEditor ed = getCellEditor(); if (ed != null && ed.shouldSelectCell(event) && ed.isCellEditable(event)) { editingPath = path; editingRow = tree.getRowForPath(editingPath); Object val = editingPath.getLastPathComponent(); cellEditor.addCellEditorListener(cellEditorListener); stopEditingInCompleteEditing = false; boolean expanded = tree.isExpanded(editingPath); isEditing = true; editingComponent = ed.getTreeCellEditorComponent(tree, val, true, expanded, isLeaf(editingRow), editingRow); editingComponent.getParent().setVisible(true); editingComponent.getParent().validate(); tree.add(editingComponent.getParent()); editingComponent.getParent().validate(); ((JTextField) editingComponent).requestFocusInWindow(false); editorTimer.start(); return true; } return false; }
| 303 |
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(); TreeCellEditor ed = getCellEditor(); if (ed != null && ed.shouldSelectCell(event) && ed.isCellEditable(event)) { editingPath = path; editingRow = tree.getRowForPath(editingPath); Object val = editingPath.getLastPathComponent(); cellEditor.addCellEditorListener(cellEditorListener); stopEditingInCompleteEditing = false; boolean expanded = tree.isExpanded(editingPath); isEditing = true; editingComponent = ed.getTreeCellEditorComponent(tree, val, true, expanded, isLeaf(editingRow), editingRow); editingComponent.getParent().setVisible(true); editingComponent.getParent().validate(); tree.add(editingComponent.getParent()); editingComponent.getParent().validate(); ((JTextField) editingComponent).requestFocusInWindow(false); editorTimer.start(); return true; } return false; }
|
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(); TreeCellEditor ed = getCellEditor(); if (ed != null && ed.shouldSelectCell(event) && ed.isCellEditable(event)) { editingPath = path; editingRow = tree.getRowForPath(editingPath); Object val = editingPath.getLastPathComponent(); cellEditor.addCellEditorListener(cellEditorListener); stopEditingInCompleteEditing = false; boolean expanded = tree.isExpanded(editingPath); isEditing = true; editingComponent = ed.getTreeCellEditorComponent(tree, val, true, expanded, isLeaf(editingRow), editingRow); editingComponent.getParent().setVisible(true); editingComponent.getParent().validate(); tree.add(editingComponent.getParent()); editingComponent.getParent().validate(); ((JTextField) editingComponent).requestFocusInWindow(false); editorTimer.start(); return true; } return false; }
| 304 |
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(); TreeCellEditor ed = getCellEditor(); if (ed != null && ed.shouldSelectCell(event) && ed.isCellEditable(event)) { editingPath = path; editingRow = tree.getRowForPath(editingPath); Object val = editingPath.getLastPathComponent(); cellEditor.addCellEditorListener(cellEditorListener); stopEditingInCompleteEditing = false; boolean expanded = tree.isExpanded(editingPath); isEditing = true; editingComponent = ed.getTreeCellEditorComponent(tree, val, true, expanded, isLeaf(editingRow), editingRow); editingComponent.getParent().setVisible(true); editingComponent.getParent().validate(); tree.add(editingComponent.getParent()); editingComponent.getParent().validate(); ((JTextField) editingComponent).requestFocusInWindow(false); editorTimer.start(); return true; } return false; }
|
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(); TreeCellEditor ed = getCellEditor(); if (ed != null && ed.shouldSelectCell(event) && ed.isCellEditable(event)) { editingPath = path; editingRow = tree.getRowForPath(editingPath); Object val = editingPath.getLastPathComponent(); cellEditor.addCellEditorListener(cellEditorListener); stopEditingInCompleteEditing = false; boolean expanded = tree.isExpanded(editingPath); isEditing = true; editingComponent = ed.getTreeCellEditorComponent(tree, val, true, expanded, isLeaf(editingRow), editingRow); editingComponent.getParent().setVisible(true); editingComponent.getParent().validate(); tree.add(editingComponent.getParent()); editingComponent.getParent().validate(); ((JTextField) editingComponent).requestFocusInWindow(false); editorTimer.start(); return true; } return false; }
| 305 |
public void startEditingAtPath(JTree tree, TreePath path) { startEditing(path, null); }
|
public void startEditingAtPath(JTree tree, TreePath path) { startEditing(path, null); }
| 306 |
public void startEditingAtPath(JTree tree, TreePath path) { startEditing(path, null); }
|
public void startEditingAtPath(JTree tree, TreePath path) { startEditing(path, null); }
| 307 |
public boolean stopEditing(JTree tree) { if (isEditing(tree)) completeEditing(true, false, false); return !isEditing(tree); }
|
public boolean stopEditing(JTree tree) { if (isEditing(tree)) completeEditing(true, false, false); return !isEditing(tree); }
| 308 |
public boolean stopEditing(JTree tree) { if (isEditing(tree)) completeEditing(true, false, false); return !isEditing(tree); }
|
public boolean stopEditing(JTree tree) { if (isEditing(tree)) completeEditing(true, false, false); return !isEditing(tree); }
| 309 |
protected void toggleExpandState(TreePath path) { // FIXME: not implemented }
|
protected void toggleExpandState(TreePath path) { // FIXME: not implemented }
| 310 |
protected void uninstallComponents() { // FIXME: not implemented }
|
protected void uninstallComponents() { // FIXME: not implemented }
| 311 |
protected void uninstallDefaults() { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); }
|
protected void uninstallDefaults() { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); }
| 312 |
protected void uninstallKeyboardActions() { }
|
protected void uninstallKeyboardActions() { }
| 313 |
protected void uninstallListeners() { tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseInputListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(selectionModelPropertyChangeListener); tree.removeComponentListener(componentListener); tree.removeTreeExpansionListener(treeExpansionListener); TreeCellEditor tce = tree.getCellEditor(); if (tce != null) tce.removeCellEditorListener(cellEditorListener); TreeModel tm = tree.getModel(); if (tm != null) tm.removeTreeModelListener(treeModelListener); }
|
protected void uninstallListeners() { tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseInputListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(selectionModelPropertyChangeListener); tree.removeComponentListener(componentListener); tree.removeTreeExpansionListener(treeExpansionListener); TreeCellEditor tce = tree.getCellEditor(); if (tce != null) tce.removeCellEditorListener(cellEditorListener); TreeModel tm = tree.getModel(); if (tm != null) tm.removeTreeModelListener(treeModelListener); }
| 314 |
protected void uninstallListeners() { tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseInputListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(selectionModelPropertyChangeListener); tree.removeComponentListener(componentListener); tree.removeTreeExpansionListener(treeExpansionListener); TreeCellEditor tce = tree.getCellEditor(); if (tce != null) tce.removeCellEditorListener(cellEditorListener); TreeModel tm = tree.getModel(); if (tm != null) tm.removeTreeModelListener(treeModelListener); }
|
protected void uninstallListeners() { tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseInputListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(selectionModelPropertyChangeListener); tree.removeComponentListener(componentListener); tree.removeTreeExpansionListener(treeExpansionListener); TreeCellEditor tce = tree.getCellEditor(); if (tce != null) tce.removeCellEditorListener(cellEditorListener); TreeModel tm = tree.getModel(); if (tm != null) tm.removeTreeModelListener(treeModelListener); }
| 315 |
public void uninstallUI(JComponent c) { uninstallDefaults(); uninstallKeyboardActions(); uninstallListeners(); tree = null; completeUIUninstall(); }
|
public void uninstallUI(JComponent c) { prepareForUIUninstall(); uninstallDefaults(); uninstallKeyboardActions(); uninstallListeners(); tree = null; completeUIUninstall(); }
| 316 |
public void uninstallUI(JComponent c) { uninstallDefaults(); uninstallKeyboardActions(); uninstallListeners(); tree = null; completeUIUninstall(); }
|
public void uninstallUI(JComponent c) { uninstallDefaults(); uninstallKeyboardActions(); uninstallListeners(); tree = null; completeUIUninstall(); }
| 317 |
protected void updateCachedPreferredSize() { // FIXME: not implemented }
|
protected void updateCachedPreferredSize() { // FIXME: not implemented }
| 318 |
protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; }
|
protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; }
| 319 |
protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; }
|
protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; }
| 320 |
protected void updateDepthOffset() { // FIXME: not implemented }
|
protected void updateDepthOffset() { // FIXME: not implemented }
| 321 |
protected void updateExpandedDescendants(TreePath path) { // FIXME: not implemented }
|
protected void updateExpandedDescendants(TreePath path) { // FIXME: not implemented }
| 322 |
protected void updateLayoutCacheExpandedNodes() { // FIXME: not implemented }
|
protected void updateLayoutCacheExpandedNodes() { // FIXME: not implemented }
| 323 |
protected void updateRenderer() { // FIXME: not implemented }
|
protected void updateRenderer() { // FIXME: not implemented }
| 324 |
protected void updateSize() { // FIXME: not implemented }
|
protected void updateSize() { // FIXME: not implemented }
| 325 |
public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } }
|
public void remove(int index) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } }
| 326 |
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 ()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); r.parent = null; if (isShowing ()) { if (component[i] == comp) { remove(i); break; } } } }
| 327 |
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; } } } }
| 328 |
public boolean requestFocusInWindow(boolean temporary) { return super.requestFocusInWindow(temporary); }
|
public boolean requestFocusInWindow() { return super.requestFocusInWindow(temporary); }
| 330 |
public boolean requestFocusInWindow(boolean temporary) { return super.requestFocusInWindow(temporary); }
|
public boolean requestFocusInWindow(boolean temporary) { if (isRequestFocusEnabled()) return super.requestFocusInWindow(); else return false; }
| 331 |
public void stop() { running = false; if (waker != null) waker.interrupt(); synchronized (queueLock) { queue = 0; } }
|
public void stop() { running = false; if (waker != null) waker.interrupt(); synchronized (queueLock) { queue = 0; } }
| 332 |
public void stop() { running = false; if (waker != null) waker.interrupt(); synchronized (queueLock) { queue = 0; } }
|
public void stop() { running = false; if (waker != null) waker.interrupt(); synchronized (queueLock) { queue = 0; } }
| 333 |
public Caret getCaret() { return caret; }
|
public Caret getCaret() { return caret; }
| 334 |
public Caret getCaret() { return caret; }
|
public Caret getCaret() { return caret; }
| 335 |
public boolean isEditable() { return editable; }
|
public boolean isEditable() { return editable; }
| 336 |
public boolean isEditable() { return editable; }
|
public boolean isEditable() { return editable; }
| 337 |
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); }
| 338 |
public boolean isExpanded(TreePath path) { if (path == null) return false; Object state = nodeStates.get(path); if ((state == null) || (state != EXPANDED)) return false; TreePath parent = path.getParentPath(); if (parent != null) return isExpanded(parent); return true; }
|
public boolean isExpanded(TreePath path) { if (path == null) return false; Object state = nodeStates.get(path); if ((state == null) || (state != EXPANDED)) return false; TreePath parent = path.getParentPath(); if (parent != null) return isExpanded(parent); return true; }
| 339 |
public void collapsePath(TreePath path) { try { fireTreeWillCollapse(path); } catch (ExpandVetoException ev) { } setExpandedState(path, false); fireTreeCollapsed(path); }
|
public void collapsePath(TreePath path) { try { fireTreeWillCollapse(path); } catch (ExpandVetoException ev) { } setExpandedState(path, false); fireTreeCollapsed(path); }
| 340 |
public void collapsePath(TreePath path) { try { fireTreeWillCollapse(path); } catch (ExpandVetoException ev) { } setExpandedState(path, false); fireTreeCollapsed(path); }
|
public void collapsePath(TreePath path) { try { fireTreeWillCollapse(path); } catch (ExpandVetoException ev) { } setExpandedState(path, false); fireTreeCollapsed(path); }
| 341 |
public void expandPath(TreePath path) { // Don't expand if last path component is a leaf node. if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { } setExpandedState(path, true); fireTreeExpanded(path); }
|
public void expandPath(TreePath path) { // Don't expand if last path component is a leaf node. if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { } setExpandedState(path, true); fireTreeExpanded(path); }
| 342 |
public void expandPath(TreePath path) { // Don't expand if last path component is a leaf node. if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { } setExpandedState(path, true); fireTreeExpanded(path); }
|
public void expandPath(TreePath path) { // Don't expand if last path component is a leaf node. if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { } setExpandedState(path, true); fireTreeExpanded(path); }
| 343 |
public void expandPath(TreePath path) { // Don't expand if last path component is a leaf node. if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { } setExpandedState(path, true); fireTreeExpanded(path); }
|
public void expandPath(TreePath path) { // Don't expand if last path component is a leaf node. if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { } setExpandedState(path, true); fireTreeExpanded(path); }
| 344 |
public int getRowCount() { TreeUI ui = getUI(); if (ui != null) return ui.getRowCount(this); return 0; }
|
public int getRowCount() { TreeUI ui = getUI(); if (ui != null) return ui.getRowCount(this); return 0; }
| 345 |
public boolean stopEditing() { TreeUI ui = getUI(); if (ui != null) return ui.stopEditing(this); return false; }
|
public boolean stopEditing() { TreeUI ui = getUI(); if (ui != null) return ui.stopEditing(this); return false; }
| 346 |
public void clearSelection() { selectionModel.clearSelection(); setLeadSelectionPath(null); }
|
public void clearSelection() { selectionModel.clearSelection(); setLeadSelectionPath(null); }
| 347 |
public void setLeadSelectionPath(TreePath path) { if (leadSelectionPath == path) return; TreePath oldValue = leadSelectionPath; leadSelectionPath = path; firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, path); }
|
public void setLeadSelectionPath(TreePath path) { if (leadSelectionPath == path) return; TreePath oldValue = leadSelectionPath; leadSelectionPath = path; firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, path); }
| 348 |
public boolean isCollapsed(TreePath path) { return !isExpanded(path); }
|
public boolean isCollapsed(TreePath path) { return !isExpanded(path); }
| 349 |
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; lastPath = tree.getLeadSelectionPath(); tree.addTreeSelectionListener(this); editingContainer = createContainer(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setFont(defaults.getFont("Tree.font")); setBorderSelectionColor(defaults.getColor("Tree.selectionBorderColor")); editingIcon = renderer.getIcon(); timer = new javax.swing.Timer(1200, this); }
|
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; lastPath = tree.getLeadSelectionPath(); tree.addTreeSelectionListener(this); editingContainer = createContainer(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setFont(defaults.getFont("Tree.font")); setBorderSelectionColor(defaults.getColor("Tree.selectionBorderColor")); editingIcon = renderer.getIcon(); timer = new javax.swing.Timer(1200, this); }
| 350 |
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; lastPath = tree.getLeadSelectionPath(); tree.addTreeSelectionListener(this); editingContainer = createContainer(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setFont(defaults.getFont("Tree.font")); setBorderSelectionColor(defaults.getColor("Tree.selectionBorderColor")); editingIcon = renderer.getIcon(); timer = new javax.swing.Timer(1200, this); }
|
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); realEditor = editor; lastPath = tree.getLeadSelectionPath(); tree.addTreeSelectionListener(this); editingContainer = createContainer(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setFont(defaults.getFont("Tree.font")); setBorderSelectionColor(defaults.getColor("Tree.selectionBorderColor")); editingIcon = renderer.getIcon(); timer = new javax.swing.Timer(1200, this); }
| 351 |
public FixedHeightLayoutCache() { // TODO } // FixedHeightLayoutCache()
|
public FixedHeightLayoutCache() { // TODO } // FixedHeightLayoutCache()
| 352 |
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; }
| 353 |
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; }
| 354 |
public static int max(int a, int b) { return (a > b) ? a : b; }
|
public static int max(int a, int b) { return (a > b) ? a : b; }
| 355 |
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(); }
| 356 |
public void setRootVisible(boolean flag) { if (rootVisible == flag) return; boolean oldValue = rootVisible; rootVisible = flag; firePropertyChange(ROOT_VISIBLE_PROPERTY, oldValue, flag); }
|
public void setRootVisible(boolean flag) { if (rootVisible == flag) return; boolean oldValue = rootVisible; rootVisible = flag; firePropertyChange(ROOT_VISIBLE_PROPERTY, oldValue, flag); }
| 358 |
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()
| 360 |
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) { paintComponent(graphics, c, p, r.x, r.y, r.width, r.height); } // paintComponent()
| 361 |
Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus);
|
Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus);
| 362 |
public void setModel(TreeModel model) { if (treeModel == model) return; // add treeModelListener to the new model if (treeModelListener == null) treeModelListener = createTreeModelListener(); if (model != null) // as setModel(null) is allowed model.addTreeModelListener(treeModelListener); TreeModel oldValue = treeModel; treeModel = model; firePropertyChange(TREE_MODEL_PROPERTY, oldValue, model); }
|
public void setModel(TreeModel model) { if (treeModel == model) return; // add treeModelListener to the new model if (treeModelListener == null) treeModelListener = createTreeModelListener(); if (model != null) // as setModel(null) is allowed model.addTreeModelListener(treeModelListener); TreeModel oldValue = treeModel; treeModel = model; firePropertyChange(TREE_MODEL_PROPERTY, oldValue, model); }
| 363 |
public void setSelectionModel(TreeSelectionModel model) { if (selectionModel == model) return; if (selectionModel != null) selectionModel.removeTreeSelectionListener(selectionRedirector); TreeSelectionModel oldValue = selectionModel; selectionModel = model; if (selectionModel != null) selectionModel.addTreeSelectionListener(selectionRedirector); firePropertyChange(SELECTION_MODEL_PROPERTY, oldValue, model); revalidate(); repaint(); }
|
public void setSelectionModel(TreeSelectionModel model) { if (selectionModel == model) return; if (selectionModel != null) selectionModel.removeTreeSelectionListener(selectionRedirector); TreeSelectionModel oldValue = selectionModel; selectionModel = model; if (selectionModel != null) selectionModel.addTreeSelectionListener(selectionRedirector); firePropertyChange(SELECTION_MODEL_PROPERTY, oldValue, model); revalidate(); repaint(); }
| 364 |
public void setSelectionModel(TreeSelectionModel model) { if (selectionModel == model) return; if (selectionModel != null) selectionModel.removeTreeSelectionListener(selectionRedirector); TreeSelectionModel oldValue = selectionModel; selectionModel = model; if (selectionModel != null) selectionModel.addTreeSelectionListener(selectionRedirector); firePropertyChange(SELECTION_MODEL_PROPERTY, oldValue, model); revalidate(); repaint(); }
|
public void setSelectionModel(TreeSelectionModel model) { if (selectionModel == model) return; if (selectionModel != null) selectionModel.removeTreeSelectionListener(selectionRedirector); TreeSelectionModel oldValue = selectionModel; selectionModel = model; if (selectionModel != null) selectionModel.addTreeSelectionListener(selectionRedirector); firePropertyChange(SELECTION_MODEL_PROPERTY, oldValue, model); revalidate(); repaint(); }
| 365 |
public void setSelectionModel(TreeSelectionModel model) { if (selectionModel == model) return; if (selectionModel != null) selectionModel.removeTreeSelectionListener(selectionRedirector); TreeSelectionModel oldValue = selectionModel; selectionModel = model; if (selectionModel != null) selectionModel.addTreeSelectionListener(selectionRedirector); firePropertyChange(SELECTION_MODEL_PROPERTY, oldValue, model); revalidate(); repaint(); }
|
public void setSelectionModel(TreeSelectionModel model) { if (selectionModel == model) return; if (selectionModel != null) selectionModel.removeTreeSelectionListener(selectionRedirector); TreeSelectionModel oldValue = selectionModel; selectionModel = model; if (selectionModel != null) selectionModel.addTreeSelectionListener(selectionRedirector); firePropertyChange(SELECTION_MODEL_PROPERTY, oldValue, model); revalidate(); repaint(); }
| 366 |
public void setShowsRootHandles(boolean flag) { if (showsRootHandles == flag) return; boolean oldValue = showsRootHandles; showsRootHandles = flag; firePropertyChange(SHOWS_ROOT_HANDLES_PROPERTY, oldValue, flag); }
|
public void setShowsRootHandles(boolean flag) { if (showsRootHandles == flag) return; boolean oldValue = showsRootHandles; showsRootHandles = flag; firePropertyChange(SHOWS_ROOT_HANDLES_PROPERTY, oldValue, flag); }
| 367 |
public TreeCellEditor getCellEditor() { return cellEditor; }
|
publicTreeCellEditorgetCellEditor(){returncellEditor;}
| 368 |
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; this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightweight()) { if (oldwidth != 0 && oldheight != 0 && parent != null) parent.repaint(oldx, oldy, oldwidth, oldheight); if (width != 0 && height != 0) repaint(); } if (oldx != x || oldy != y) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED); getToolkit().getSystemEventQueue().postEvent(ce); } if (oldwidth != width || oldheight != height) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } }
|
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; this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightweight()) { boolean shouldRepaintParent = false; boolean shouldRepaintSelf = false; if (parent != null) { Rectangle parentBounds = parent.getBounds(); Rectangle oldBounds = new Rectangle(parent.getX() + oldx, parent.getY() + oldy, oldwidth, oldheight); Rectangle newBounds = new Rectangle(parent.getX() + x, parent.getY() + y, width, height); shouldRepaintParent = parentBounds.intersects(oldBounds); shouldRepaintSelf = parentBounds.intersects(newBounds); } if (shouldRepaintParent) parent.repaint(oldx, oldy, oldwidth, oldheight); if (width != 0 && height != 0) repaint(); } if (oldx != x || oldy != y) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED); getToolkit().getSystemEventQueue().postEvent(ce); } if (oldwidth != width || oldheight != height) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } }
| 369 |
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; this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightweight()) { if (oldwidth != 0 && oldheight != 0 && parent != null) parent.repaint(oldx, oldy, oldwidth, oldheight); if (width != 0 && height != 0) repaint(); } if (oldx != x || oldy != y) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED); getToolkit().getSystemEventQueue().postEvent(ce); } if (oldwidth != width || oldheight != height) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } }
|
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; this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightweight()) { if (oldwidth != 0 && oldheight != 0 && parent != null) parent.repaint(oldx, oldy, oldwidth, oldheight); if (shouldRepaintSelf) repaint(); } if (oldx != x || oldy != y) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED); getToolkit().getSystemEventQueue().postEvent(ce); } if (oldwidth != width || oldheight != height) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } }
| 370 |
public SwingWindowPeer(SwingToolkit toolkit, Window window, JInternalFrame jComponent) { super(toolkit, window, jComponent); }
|
public SwingWindowPeer(SwingToolkit toolkit, Window window, JInternalFrame jComponent) { super(toolkit, window, jComponent); }
| 371 |
public void setLocation(Point p) { setLocation(p.x, p.y); }
|
public void setLocation(int x, int y) { setLocation(p.x, p.y); }
| 372 |
public void setLocation(Point p) { setLocation(p.x, p.y); }
|
public void setLocation(Point p) { setLocation(p.x, p.y); }
| 373 |
public void setSize(Dimension d) { resize (d); }
|
public void setSize(int width, int height) { resize (d); }
| 374 |
public void setSize(Dimension d) { resize (d); }
|
public void setSize(Dimension d) { resize (d); }
| 375 |
isResizable(){ return(resizable);}
|
isResizable(){ return(resizable);}
| 376 |
public int getState () { /* FIXME: State might have changed in the peer... Must check. */ return (state & ICONIFIED) != 0 ? ICONIFIED : NORMAL; }
|
public int getState() { /* FIXME: State might have changed in the peer... Must check. */ return (state & ICONIFIED) != 0 ? ICONIFIED : NORMAL; }
| 377 |
public int getState () { /* FIXME: State might have changed in the peer... Must check. */ return (state & ICONIFIED) != 0 ? ICONIFIED : NORMAL; }
|
public int getState () { return (state & ICONIFIED) != 0 ? ICONIFIED : NORMAL; }
| 378 |
getTitle(){ return(title);}
|
getTitle(){ return(title);}
| 379 |
getMenuBar(){ return(menuBar);}
|
getMenuBar(){ return(menuBar);}
| 380 |
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; fireInternalFrameEvent(InternalFrameEvent.INTERNAL_FRAME_CLOSED); removeNotify(); }
|
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; fireInternalFrameEvent(InternalFrameEvent.INTERNAL_FRAME_CLOSED); removeNotify(); }
| 381 |
public UserException(String reason) { super(reason); }
|
public UserException() { super(reason); }
| 382 |
public UserException(String reason) { super(reason); }
|
public UserException(String reason) { }
| 383 |
public IllegalArgumentException(String s) { super(s); }
|
public IllegalArgumentException(String s) { super(s); }
| 384 |
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")); }
| 385 |
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; }
| 386 |
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; }
| 387 |
public void add(AbstractButton b) { b.getModel().setGroup(this); if (b.isSelected()) { if (sel == null) sel = b.getModel(); else b.setSelected(false); } buttons.addElement(b); }
|
public void add(AbstractButton b) { b.getModel().setGroup(this); if (b.isSelected()) { if (sel == null) sel = b.getModel(); else b.setSelected(false); } buttons.addElement(b); }
| 388 |
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 && sel == m) m.setSelected(true); }
|
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 && sel == m) m.setSelected(true); }
| 390 |
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.add(new JIFSDplugins(this)); }
|
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.add(new JIFSDplugins(this)); }
| 391 |
public ReadOnlyFileSystemException(String message) { super(message); }
|
public ReadOnlyFileSystemException(String message) { super(message); }
| 392 |
public void caretUpdate(CaretEvent value0) { // TODO }
|
public void caretUpdate(CaretEvent value0) { // TODO }
| 394 |
public void changedUpdate(DocumentEvent value0) { // TODO }
|
public void changedUpdate(DocumentEvent value0) { // TODO }
| 395 |
public AccessibleRole getAccessibleRole() { return null; // TODO }
|
public AccessibleRole getAccessibleRole() { return null; // TODO }
| 396 |
public AccessibleText getAccessibleText() { return null; // TODO }
|
public AccessibleText getAccessibleText() { return null; // TODO }
| 397 |
public int getCaretPosition() { return 0; // TODO }
|
public int getCaretPosition() { return 0; // TODO }
| 398 |
public int getCharCount() { return 0; // TODO }
|
public int getCharCount() { return 0; // TODO }
| 399 |
public int getIndexAtPoint(Point value0) { return 0; // TODO }
|
public int getIndexAtPoint(Point value0) { return 0; // TODO }
| 400 |
public String getSelectedText() { return null; // TODO }
|
public String getSelectedText() { return null; // TODO }
| 401 |
public int getSelectionEnd() { return 0; // TODO }
|
public int getSelectionEnd() { return 0; // TODO }
| 402 |
public int getSelectionStart() { return 0; // TODO }
|
public int getSelectionStart() { return 0; // TODO }
| 403 |
public void insertUpdate(DocumentEvent value0) { // TODO }
|
public void insertUpdate(DocumentEvent value0) { // TODO }
| 404 |
public void removeUpdate(DocumentEvent value0) { // TODO }
|
public void removeUpdate(DocumentEvent value0) { // TODO }
| 405 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.