bugged
stringlengths 6
599k
| fixed
stringlengths 10
599k
| __index_level_0__
int64 0
1.13M
|
|---|---|---|
public AccessibleContext getAccessibleContext() { return null; }
|
public AccessibleContext getAccessibleContext() { return null; }
| 14,898
|
public Component getComponentAt(int i) { Tab t = (Tab) tabs.elementAt(i); return t.tab; }
|
public Component getComponentAt(int i) { Tab t = (Tab) tabs.elementAt(i); return t.tab; }
| 14,899
|
public void updateUI() { setUI((TabbedPaneUI)UIManager.getUI(this)); }
|
public void updateUI() { setUI((TabbedPaneUI)UIManager.getUI(this)); }
| 14,900
|
public Object[] parse (String sourceStr, ParsePosition pos) { // Check initial text. int index = pos.getIndex(); if (! sourceStr.startsWith(leader, index)) { pos.setErrorIndex(index); return null; } index += leader.length(); Vector results = new Vector (elements.length, 1); // Now check each format. for (int i = 0; i < elements.length; ++i) { Format formatter = null; if (elements[i].setFormat != null) formatter = elements[i].setFormat; else if (elements[i].format != null) formatter = elements[i].format; Object value = null; if (formatter instanceof ChoiceFormat) { // We must special-case a ChoiceFormat because it might // have recursive formatting. ChoiceFormat cf = (ChoiceFormat) formatter; String[] formats = (String[]) cf.getFormats(); double[] limits = (double[]) cf.getLimits(); MessageFormat subfmt = new MessageFormat (); subfmt.setLocale(locale); ParsePosition subpos = new ParsePosition (index); int j; for (j = 0; value == null && j < limits.length; ++j) { subfmt.applyPattern(formats[j]); subpos.setIndex(index); value = subfmt.parse(sourceStr, subpos); } if (value != null) { index = subpos.getIndex(); value = new Double (limits[j]); } } else if (formatter != null) { pos.setIndex(index); value = formatter.parseObject(sourceStr, pos); if (value != null) index = pos.getIndex(); } else { // We have a String format. This can lose in a number // of ways, but we give it a shot. int next_index = sourceStr.indexOf(elements[i].trailer, index); if (next_index == -1) { pos.setErrorIndex(index); return null; } value = sourceStr.substring(index, next_index); index = next_index; } if (value == null || ! sourceStr.startsWith(elements[i].trailer, index)) { pos.setErrorIndex(index); return null; } if (elements[i].argNumber >= results.size()) results.setSize(elements[i].argNumber + 1); results.setElementAt(value, elements[i].argNumber); index += elements[i].trailer.length(); } Object[] r = new Object[results.size()]; results.copyInto(r); return r; }
|
public Object[] parse (String sourceStr, ParsePosition pos) { // Check initial text. int index = pos.getIndex(); if (! sourceStr.startsWith(leader, index)) { pos.setErrorIndex(index); return null; } index += leader.length(); Vector results = new Vector (elements.length, 1); // Now check each format. for (int i = 0; i < elements.length; ++i) { Format formatter = null; if (elements[i].setFormat != null) formatter = elements[i].setFormat; else if (elements[i].format != null) formatter = elements[i].format; Object value = null; if (formatter instanceof ChoiceFormat) { // We must special-case a ChoiceFormat because it might // have recursive formatting. ChoiceFormat cf = (ChoiceFormat) formatter; String[] formats = (String[]) cf.getFormats(); double[] limits = (double[]) cf.getLimits(); MessageFormat subfmt = new MessageFormat (); subfmt.setLocale(locale); ParsePosition subpos = new ParsePosition (index); int j; for (j = 0; value == null && j < limits.length; ++j) { subfmt.applyPattern(formats[j]); subpos.setIndex(index); value = subfmt.parse(sourceStr, subpos); } if (value != null) { index = subpos.getIndex(); value = new Double (limits[j]); } } else if (formatter != null) { pos.setIndex(index); value = formatter.parseObject(sourceStr, pos); if (value != null) index = pos.getIndex(); } else { // We have a String format. This can lose in a number // of ways, but we give it a shot. int next_index; if (elements[i].trailer.length() > 0) next_index = sourceStr.indexOf(elements[i].trailer, index); else next_index = sourceStr.length(); if (next_index == -1) { pos.setErrorIndex(index); return null; } value = sourceStr.substring(index, next_index); index = next_index; } if (value == null || ! sourceStr.startsWith(elements[i].trailer, index)) { pos.setErrorIndex(index); return null; } if (elements[i].argNumber >= results.size()) results.setSize(elements[i].argNumber + 1); results.setElementAt(value, elements[i].argNumber); index += elements[i].trailer.length(); } Object[] r = new Object[results.size()]; results.copyInto(r); return r; }
| 14,901
|
public final URL getResource(String resourceName) { try { final JarFile jarFile = getJar(null); final JarEntry entry = jarFile.getJarEntry(resourceName); if (entry == null) { return null; } else { final String id = descriptor.getId(); return new URL("plugin:" + id + "!" + resourceName); } } catch (IOException ex) { return null; } }
|
public final URL getResource(String resourceName) { try { final JarFile jarFile = getJar(null); final JarEntry entry = jarFile.getJarEntry(resourceName); if (entry == null) { return null; } else { final String id = descriptor.getId(); return new URL("plugin:" + id + "!/" + resourceName); } } catch (IOException ex) { return null; } }
| 14,902
|
public void setDefaultButton(JButton newButton) { if (defaultButton == newButton) return; JButton oldButton = defaultButton; defaultButton = newButton; firePropertyChange("defaultButton", oldButton, newButton); }
|
public void setDefaultButton(JButton newButton) { if (defaultButton == newButton) return; JButton oldButton = defaultButton; defaultButton = newButton; firePropertyChange("defaultButton", oldButton, newButton); }
| 14,904
|
protected void installDefaults(JSlider slider) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); slider.setForeground(defaults.getColor("Slider.foreground")); slider.setBackground(defaults.getColor("Slider.background")); shadowColor = defaults.getColor("Slider.shadow"); highlightColor = defaults.getColor("Slider.highlight"); focusColor = defaults.getColor("Slider.focus"); slider.setBorder(defaults.getBorder("Slider.border")); slider.setOpaque(true); focusInsets = defaults.getInsets("Slider.focusInsets"); }
|
protected void installDefaults(JSlider slider) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); slider.setForeground(defaults.getColor("Slider.foreground")); slider.setBackground(defaults.getColor("Slider.background")); shadowColor = defaults.getColor("Slider.shadow"); highlightColor = defaults.getColor("Slider.highlight"); focusColor = defaults.getColor("Slider.focus"); slider.setBorder(defaults.getBorder("Slider.border")); slider.setOpaque(true); focusInsets = defaults.getInsets("Slider.focusInsets"); }
| 14,906
|
protected void installDefaults(JSlider slider) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); slider.setForeground(defaults.getColor("Slider.foreground")); slider.setBackground(defaults.getColor("Slider.background")); shadowColor = defaults.getColor("Slider.shadow"); highlightColor = defaults.getColor("Slider.highlight"); focusColor = defaults.getColor("Slider.focus"); slider.setBorder(defaults.getBorder("Slider.border")); slider.setOpaque(true); focusInsets = defaults.getInsets("Slider.focusInsets"); }
|
protected void installDefaults(JSlider slider) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); slider.setForeground(defaults.getColor("Slider.foreground")); slider.setBackground(defaults.getColor("Slider.background")); shadowColor = defaults.getColor("Slider.shadow"); highlightColor = defaults.getColor("Slider.highlight"); focusColor = defaults.getColor("Slider.focus"); slider.setBorder(defaults.getBorder("Slider.border")); slider.setOpaque(true); }
| 14,907
|
public RTFParseException(String message) { super(message); }
|
public RTFParseException() { super(message); }
| 14,909
|
public RTFParseException(String message) { super(message); }
|
public RTFParseException(String message) { super(); }
| 14,910
|
public SwingDialog(Dialog awtComponent) { this.awtComponent = awtComponent; }
|
public SwingDialog(Dialog awtComponent) { super(awtComponent); }
| 14,911
|
public AccessibleAWTListChild(List parent, int indexInParent) { this.parent = parent; index = indexInParent; if (parent == null) index = -1; }
|
public AccessibleAWTListChild(List parent, int indexInParent) { this.parent = parent; this.indexInParent = indexInParent; if (parent == null) index = -1; }
| 14,912
|
public AccessibleAWTListChild(List parent, int indexInParent) { this.parent = parent; index = indexInParent; if (parent == null) index = -1; }
|
public AccessibleAWTListChild(List parent, int indexInParent) { this.parent = parent; index = indexInParent; if (parent == null) this.indexInParent = -1; }
| 14,913
|
public int getAccessibleIndexInParent() { return index; }
|
public int getAccessibleIndexInParent() { return indexInParent; }
| 14,914
|
public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet states = super.getAccessibleStateSet(); if (parent.isIndexSelected(index)) states.add(AccessibleState.SELECTED); return states; }
|
public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet states = super.getAccessibleStateSet(); if (parent.isIndexSelected(indexInParent)) states.add(AccessibleState.SELECTED); return states; }
| 14,915
|
private int indexOfCRLF(char[] b, int off, int len) throws IOException { doReset = false; int lm1 = len - 1; for (int i = off; i < len; i++) { if (b[i] == '\r') // CR { int d; if (i == lm1) { d = in.read(); doReset = true; } else d = b[i + 1]; if (d == '\n') // LF { doReset = true; return i; } } } return -1; }
|
private int indexOfCRLF(char[] b, int off, int len) throws IOException { doReset = false; int lm1 = len - 1; for (int i = off; i < len; i++) { if (b[i] == '\r') // CR { int d; if (i == lm1) { d = in.read(); doReset = true; } else d = b[i + 1]; if (d == '\n') // LF { doReset = true; return i; } } } return -1; }
| 14,916
|
private int indexOfCRLF(char[] b, int off, int len) throws IOException { doReset = false; int lm1 = len - 1; for (int i = off; i < len; i++) { if (b[i] == '\r') // CR { int d; if (i == lm1) { d = in.read(); doReset = true; } else d = b[i + 1]; if (d == '\n') // LF { doReset = true; return i; } } } return -1; }
|
private int indexOfCRLF(char[] b, int off, int len) throws IOException { doReset = false; int lm1 = len - 1; for (int i = off; i < len; i++) { if (b[i] == '\r') // CR { int d; if (i == em1) { d = in.read(); doReset = true; } else d = b[i + 1]; if (d == '\n') // LF { doReset = true; return i; } } } return -1; }
| 14,917
|
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); if (rootContainer != null) { ((Container) rootContainer).removeComponentListener(topWindowListener); // If this popup menu is the last popup menu visible on the screen, // then // stop interrupting mouse events in the glass pane before hiding this // last popup menu. boolean topLevelMenu = (popupMenu.getInvoker() instanceof JMenu) && ((JMenu) popupMenu.getInvoker()).isTopLevelMenu(); if (topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) { // set glass pane not to interrupt mouse events and remove // mouseInputListener Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(false); glassPane.removeMouseListener(mouseInputListener); mouseInputListener = null; } } }
|
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); if (rootContainer != null) { ((Container) rootContainer).removeComponentListener(topWindowListener); // If this popup menu is the last popup menu visible on the screen, // then // stop interrupting mouse events in the glass pane before hiding this // last popup menu. boolean topLevelMenu = (popupMenu.getInvoker() instanceof JMenu) && ((JMenu) popupMenu.getInvoker()).isTopLevelMenu(); if (topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) { // set glass pane not to interrupt mouse events and remove // mouseInputListener Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(false); glassPane.removeMouseListener(mouseInputListener); mouseInputListener = null; } } }
| 14,918
|
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); if (rootContainer != null) { ((Container) rootContainer).removeComponentListener(topWindowListener); // If this popup menu is the last popup menu visible on the screen, // then // stop interrupting mouse events in the glass pane before hiding this // last popup menu. boolean topLevelMenu = (popupMenu.getInvoker() instanceof JMenu) && ((JMenu) popupMenu.getInvoker()).isTopLevelMenu(); if (topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) { // set glass pane not to interrupt mouse events and remove // mouseInputListener Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(false); glassPane.removeMouseListener(mouseInputListener); mouseInputListener = null; } } }
|
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); if (rootContainer != null) { rootContainer.removeComponentListener(topWindowListener); // If this popup menu is the last popup menu visible on the screen, // then // stop interrupting mouse events in the glass pane before hiding this // last popup menu. boolean topLevelMenu = (popupMenu.getInvoker() instanceof JMenu) && ((JMenu) popupMenu.getInvoker()).isTopLevelMenu(); if (topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) { // set glass pane not to interrupt mouse events and remove // mouseInputListener Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(false); glassPane.removeMouseListener(mouseInputListener); mouseInputListener = null; } } }
| 14,919
|
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); if (rootContainer != null) { ((Container) rootContainer).removeComponentListener(topWindowListener); // If this popup menu is the last popup menu visible on the screen, // then // stop interrupting mouse events in the glass pane before hiding this // last popup menu. boolean topLevelMenu = (popupMenu.getInvoker() instanceof JMenu) && ((JMenu) popupMenu.getInvoker()).isTopLevelMenu(); if (topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) { // set glass pane not to interrupt mouse events and remove // mouseInputListener Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(false); glassPane.removeMouseListener(mouseInputListener); mouseInputListener = null; } } }
|
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); if (rootContainer != null) { ((Container) rootContainer).removeComponentListener(topWindowListener); // If this popup menu is the last popup menu visible on the screen, // then // stop interrupting mouse events in the glass pane before hiding this // last popup menu. boolean topLevelMenu = (popupMenu.getInvoker() instanceof JMenu) && ((JMenu) popupMenu.getInvoker()).isTopLevelMenu(); if ((topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) && rootContainer instanceof RootPaneContainer) { // set glass pane not to interrupt mouse events and remove // mouseInputListener Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(false); glassPane.removeMouseListener(mouseInputListener); mouseInputListener = null; } } }
| 14,920
|
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); if (rootContainer != null) { ((Container) rootContainer).removeComponentListener(topWindowListener); // If this popup menu is the last popup menu visible on the screen, // then // stop interrupting mouse events in the glass pane before hiding this // last popup menu. boolean topLevelMenu = (popupMenu.getInvoker() instanceof JMenu) && ((JMenu) popupMenu.getInvoker()).isTopLevelMenu(); if (topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) { // set glass pane not to interrupt mouse events and remove // mouseInputListener Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(false); glassPane.removeMouseListener(mouseInputListener); mouseInputListener = null; } } }
|
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); if (rootContainer != null) { ((Container) rootContainer).removeComponentListener(topWindowListener); // If this popup menu is the last popup menu visible on the screen, // then // stop interrupting mouse events in the glass pane before hiding this // last popup menu. boolean topLevelMenu = (popupMenu.getInvoker() instanceof JMenu) && ((JMenu) popupMenu.getInvoker()).isTopLevelMenu(); if (topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) { // set glass pane not to interrupt mouse events and remove // mouseInputListener Container glassPane = (Container) rpContainer.getGlassPane(); glassPane.setVisible(false); glassPane.removeMouseListener(mouseInputListener); mouseInputListener = null; } } }
| 14,921
|
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); ((Container) rootContainer).addComponentListener(topWindowListener); // Set the glass pane to interrupt all mouse events originating in root // container if (mouseInputListener == null) { Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(true); mouseInputListener = new MouseInputHandler(rootContainer); glassPane.addMouseListener(mouseInputListener); glassPane.addMouseMotionListener(mouseInputListener); } // if this popup menu is a free floating popup menu, // then by default its first element should be always selected when // this popup menu becomes visible. MenuSelectionManager manager = MenuSelectionManager.defaultManager(); if (manager.getSelectedPath().length == 0) { // Set selected path to point to the first item in the popup menu MenuElement[] path = new MenuElement[2]; path[0] = popupMenu; Component[] comps = popupMenu.getComponents(); if (comps.length != 0 && comps[0] instanceof MenuElement) { path[1] = (MenuElement) comps[0]; manager.setSelectedPath(path); } } }
|
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); ((Container) rootContainer).addComponentListener(topWindowListener); // Set the glass pane to interrupt all mouse events originating in root // container if (mouseInputListener == null) { Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(true); mouseInputListener = new MouseInputHandler(rootContainer); glassPane.addMouseListener(mouseInputListener); glassPane.addMouseMotionListener(mouseInputListener); } // if this popup menu is a free floating popup menu, // then by default its first element should be always selected when // this popup menu becomes visible. MenuSelectionManager manager = MenuSelectionManager.defaultManager(); if (manager.getSelectedPath().length == 0) { // Set selected path to point to the first item in the popup menu MenuElement[] path = new MenuElement[2]; path[0] = popupMenu; Component[] comps = popupMenu.getComponents(); if (comps.length != 0 && comps[0] instanceof MenuElement) { path[1] = (MenuElement) comps[0]; manager.setSelectedPath(path); } } }
| 14,922
|
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); ((Container) rootContainer).addComponentListener(topWindowListener); // Set the glass pane to interrupt all mouse events originating in root // container if (mouseInputListener == null) { Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(true); mouseInputListener = new MouseInputHandler(rootContainer); glassPane.addMouseListener(mouseInputListener); glassPane.addMouseMotionListener(mouseInputListener); } // if this popup menu is a free floating popup menu, // then by default its first element should be always selected when // this popup menu becomes visible. MenuSelectionManager manager = MenuSelectionManager.defaultManager(); if (manager.getSelectedPath().length == 0) { // Set selected path to point to the first item in the popup menu MenuElement[] path = new MenuElement[2]; path[0] = popupMenu; Component[] comps = popupMenu.getComponents(); if (comps.length != 0 && comps[0] instanceof MenuElement) { path[1] = (MenuElement) comps[0]; manager.setSelectedPath(path); } } }
|
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); ((Container) rootContainer).addComponentListener(topWindowListener); // Set the glass pane to interrupt all mouse events originating in root // container if (mouseInputListener == null && rootContainer instanceof RootPaneContainer) { Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(true); mouseInputListener = new MouseInputHandler(rootContainer); glassPane.addMouseListener(mouseInputListener); glassPane.addMouseMotionListener(mouseInputListener); } // if this popup menu is a free floating popup menu, // then by default its first element should be always selected when // this popup menu becomes visible. MenuSelectionManager manager = MenuSelectionManager.defaultManager(); if (manager.getSelectedPath().length == 0) { // Set selected path to point to the first item in the popup menu MenuElement[] path = new MenuElement[2]; path[0] = popupMenu; Component[] comps = popupMenu.getComponents(); if (comps.length != 0 && comps[0] instanceof MenuElement) { path[1] = (MenuElement) comps[0]; manager.setSelectedPath(path); } } }
| 14,923
|
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); ((Container) rootContainer).addComponentListener(topWindowListener); // Set the glass pane to interrupt all mouse events originating in root // container if (mouseInputListener == null) { Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(true); mouseInputListener = new MouseInputHandler(rootContainer); glassPane.addMouseListener(mouseInputListener); glassPane.addMouseMotionListener(mouseInputListener); } // if this popup menu is a free floating popup menu, // then by default its first element should be always selected when // this popup menu becomes visible. MenuSelectionManager manager = MenuSelectionManager.defaultManager(); if (manager.getSelectedPath().length == 0) { // Set selected path to point to the first item in the popup menu MenuElement[] path = new MenuElement[2]; path[0] = popupMenu; Component[] comps = popupMenu.getComponents(); if (comps.length != 0 && comps[0] instanceof MenuElement) { path[1] = (MenuElement) comps[0]; manager.setSelectedPath(path); } } }
|
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); ((Container) rootContainer).addComponentListener(topWindowListener); // Set the glass pane to interrupt all mouse events originating in root // container if (mouseInputListener == null) { RootPaneContainer rpContainer = (RootPaneContainer) rootContainer; Container glassPane = (Container) rpContainer.getGlassPane(); glassPane.setVisible(true); mouseInputListener = new MouseInputHandler(rootContainer); glassPane.addMouseListener(mouseInputListener); glassPane.addMouseMotionListener(mouseInputListener); } // if this popup menu is a free floating popup menu, // then by default its first element should be always selected when // this popup menu becomes visible. MenuSelectionManager manager = MenuSelectionManager.defaultManager(); if (manager.getSelectedPath().length == 0) { // Set selected path to point to the first item in the popup menu MenuElement[] path = new MenuElement[2]; path[0] = popupMenu; Component[] comps = popupMenu.getComponents(); if (comps.length != 0 && comps[0] instanceof MenuElement) { path[1] = (MenuElement) comps[0]; manager.setSelectedPath(path); } } }
| 14,924
|
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); ((Container) rootContainer).addComponentListener(topWindowListener); // Set the glass pane to interrupt all mouse events originating in root // container if (mouseInputListener == null) { Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(true); mouseInputListener = new MouseInputHandler(rootContainer); glassPane.addMouseListener(mouseInputListener); glassPane.addMouseMotionListener(mouseInputListener); } // if this popup menu is a free floating popup menu, // then by default its first element should be always selected when // this popup menu becomes visible. MenuSelectionManager manager = MenuSelectionManager.defaultManager(); if (manager.getSelectedPath().length == 0) { // Set selected path to point to the first item in the popup menu MenuElement[] path = new MenuElement[2]; path[0] = popupMenu; Component[] comps = popupMenu.getComponents(); if (comps.length != 0 && comps[0] instanceof MenuElement) { path[1] = (MenuElement) comps[0]; manager.setSelectedPath(path); } } }
|
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); ((Container) rootContainer).addComponentListener(topWindowListener); // Set the glass pane to interrupt all mouse events originating in root // container if (mouseInputListener == null) { Container glassPane = (Container) rootContainer.getGlassPane(); glassPane.setVisible(true); mouseInputListener = new MouseInputHandler(rpContainer); glassPane.addMouseListener(mouseInputListener); glassPane.addMouseMotionListener(mouseInputListener); } // if this popup menu is a free floating popup menu, // then by default its first element should be always selected when // this popup menu becomes visible. MenuSelectionManager manager = MenuSelectionManager.defaultManager(); if (manager.getSelectedPath().length == 0) { // Set selected path to point to the first item in the popup menu MenuElement[] path = new MenuElement[2]; path[0] = popupMenu; Component[] comps = popupMenu.getComponents(); if (comps.length != 0 && comps[0] instanceof MenuElement) { path[1] = (MenuElement) comps[0]; manager.setSelectedPath(path); } } }
| 14,925
|
public RemoteCall newCall(RemoteObject obj, Operation[] op, int opnum, long hash) throws RemoteException { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } //obj: useless? return (new UnicastRemoteCall(conn, objid, opnum, hash));}
|
public RemoteCall newCall(RemoteObject obj, Operation[] op, int opnum, long hash) throws RemoteException { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new ConnectException("connection failed to host: " + manager.serverName, e1); } //obj: useless? return (new UnicastRemoteCall(conn, objid, opnum, hash));}
| 14,926
|
public URI(String str) throws URISyntaxException { }
|
public URI(String str) throws URISyntaxException { parseURI(str); }
| 14,927
|
public static URI create(String str) throws IllegalArgumentException { return null; }
|
public static URI create(String str) throws IllegalArgumentException { return null; }
| 14,928
|
public String getAuthority() { return null; }
|
public String getAuthority() { return null; }
| 14,929
|
public String getFragment() { return null; }
|
public String getFragment() { return null; }
| 14,930
|
public String getPath() { return null; }
|
public String getPath() { return null; }
| 14,931
|
public String getQuery() { return null; }
|
public String getQuery() { return null; }
| 14,932
|
public String getRawAuthority() { return authority; }
|
public String getRawAuthority() { return authority; }
| 14,933
|
public String getRawFragment() { return fragment; }
|
public String getRawFragment() { return fragment; }
| 14,934
|
public String getRawPath() { return path; }
|
public String getRawPath() { return path; }
| 14,935
|
public String getRawQuery() { return query; }
|
public String getRawQuery() { return query; }
| 14,936
|
public String getRawSchemeSpecificPart() { return null; }
|
public String getRawSchemeSpecificPart() { return null; }
| 14,937
|
public String getRawUserInfo() { return userInfo; }
|
public String getRawUserInfo() { return userInfo; }
| 14,938
|
public String getSchemeSpecificPart() { return null; }
|
public String getSchemeSpecificPart() { return null; }
| 14,939
|
public String getUserInfo() { return null; }
|
public String getUserInfo() { return null; }
| 14,940
|
public boolean isAbsolute() { return false; }
|
public boolean isAbsolute() { return false; }
| 14,941
|
public boolean isOpaque() { return false; }
|
public boolean isOpaque() { return false; }
| 14,942
|
public URI resolve(URI uri) { return null; }
|
public URI resolve(URI uri) { if (uri.isAbsolute()) return uri; if (uri.isOpaque()) return uri; String scheme = uri.getScheme(); String schemeSpecificPart = uri.getSchemeSpecificPart(); String authority = uri.getAuthority(); String path = uri.getPath(); String query = uri.getQuery(); String fragment = uri.getFragment(); try { if (fragment != null && path != null && path.equals("") && scheme == null && authority == null && query == null) return new URI(this.scheme, this.schemeSpecificPart, fragment); if (authority == null) { authority = this.authority; if (path == null) path = ""; if (! (path.startsWith("/"))) { StringBuffer basepath = new StringBuffer(this.path); int i = this.path.lastIndexOf('/'); if (i >= 0) basepath.delete(i + 1, basepath.length()); basepath.append(path); path = basepath.toString(); } } return new URI(this.scheme, authority, path, query, fragment); } catch (URISyntaxException e) { return null; }
| 14,943
|
public String toString() { return ""; }
|
public String toString() { return ""; }
| 14,945
|
public URL toURL() throws IllegalArgumentException, MalformedURLException { return null; }
|
public URL toURL() throws IllegalArgumentException, MalformedURLException { return null; }
| 14,946
|
public final int getAlpha (int pixel) { if (pixel < map_size) return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); return 0; }
|
public final int getAlpha (int pixel) { if (pixel < map_size) return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); return 0; }
| 14,947
|
public final int getAlpha (int pixel) { if (pixel < map_size) return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); return 0; }
|
public final int getAlpha (int pixel) { if (pixel < map_size) return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); }
| 14,948
|
public StringBuffer format(Date date, StringBuffer buffer, FieldPosition pos) { String temp; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Enumeration e = tokens.elements(); while (e.hasMoreElements()) { Object o = e.nextElement(); if (o instanceof FieldSizePair) { FieldSizePair p = (FieldSizePair) o; int beginIndex = buffer.length(); switch (p.field) { case ERA_FIELD: buffer.append(formatData.eras[calendar.get(Calendar.ERA)]); break; case YEAR_FIELD: temp = String.valueOf(calendar.get(Calendar.YEAR)); if (p.size < 4) buffer.append(temp.substring(temp.length()-2)); else buffer.append(temp); break; case MONTH_FIELD: if (p.size < 3) withLeadingZeros(calendar.get(Calendar.MONTH)+1,p.size,buffer); else if (p.size < 4) { final int month = calendar.get(Calendar.MONTH); buffer.append(formatData.shortMonths[month]); } else buffer.append(formatData.months[calendar.get(Calendar.MONTH)]); break; case DATE_FIELD: withLeadingZeros(calendar.get(Calendar.DATE),p.size,buffer); break; case HOUR_OF_DAY1_FIELD: // 1-24 withLeadingZeros(((calendar.get(Calendar.HOUR_OF_DAY)+23)%24)+1,p.size,buffer); break; case HOUR_OF_DAY0_FIELD: // 0-23 withLeadingZeros(calendar.get(Calendar.HOUR_OF_DAY),p.size,buffer); break; case MINUTE_FIELD: withLeadingZeros(calendar.get(Calendar.MINUTE),p.size,buffer); break; case SECOND_FIELD: withLeadingZeros(calendar.get(Calendar.SECOND),p.size,buffer); break; case MILLISECOND_FIELD: withLeadingZeros(calendar.get(Calendar.MILLISECOND),p.size,buffer); break; case DAY_OF_WEEK_FIELD: if (p.size < 4) buffer.append(formatData.shortWeekdays[calendar.get(Calendar.DAY_OF_WEEK)]); else buffer.append(formatData.weekdays[calendar.get(Calendar.DAY_OF_WEEK)]); break; case DAY_OF_YEAR_FIELD: withLeadingZeros(calendar.get(Calendar.DAY_OF_YEAR),p.size,buffer); break; case DAY_OF_WEEK_IN_MONTH_FIELD: withLeadingZeros(calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH),p.size,buffer); break; case WEEK_OF_YEAR_FIELD: withLeadingZeros(calendar.get(Calendar.WEEK_OF_YEAR),p.size,buffer); break; case WEEK_OF_MONTH_FIELD: withLeadingZeros(calendar.get(Calendar.WEEK_OF_MONTH),p.size,buffer); break; case AM_PM_FIELD: buffer.append(formatData.ampms[calendar.get(Calendar.AM_PM)]); break; case HOUR1_FIELD: // 1-12 withLeadingZeros(((calendar.get(Calendar.HOUR)+11)%12)+1,p.size,buffer); break; case HOUR0_FIELD: // 0-11 withLeadingZeros(calendar.get(Calendar.HOUR),p.size,buffer); break; case TIMEZONE_FIELD: TimeZone zone = calendar.getTimeZone(); boolean isDST = calendar.get(Calendar.DST_OFFSET) != 0; // FIXME: XXX: This should be a localized time zone. String zoneID = zone.getDisplayName(isDST, p.size > 3 ? TimeZone.LONG : TimeZone.SHORT); buffer.append(zoneID); break; default: throw new IllegalArgumentException("Illegal pattern character"); } if (pos != null && p.field == pos.getField()) { pos.setBeginIndex(beginIndex); pos.setEndIndex(buffer.length()); } } else { buffer.append(o.toString()); } } return buffer; }
|
public StringBuffer format(Date date, StringBuffer buffer, FieldPosition pos) { String temp; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Enumeration e = tokens.elements(); while (e.hasMoreElements()) { Object o = e.nextElement(); if (o instanceof FieldSizePair) { FieldSizePair p = (FieldSizePair) o; int beginIndex = buffer.length(); switch (p.field) { case ERA_FIELD: buffer.append(formatData.eras[calendar.get(Calendar.ERA)]); break; case YEAR_FIELD: temp = String.valueOf(calendar.get(Calendar.YEAR)); if (p.size < 4) buffer.append(temp.substring(temp.length()-2)); else buffer.append(temp); break; case MONTH_FIELD: if (p.size < 3) withLeadingZeros(calendar.get(Calendar.MONTH)+1,p.size,buffer); else if (p.size < 4) { final int month = calendar.get(Calendar.MONTH); buffer.append(formatData.shortMonths[month]); } else buffer.append(formatData.months[calendar.get(Calendar.MONTH)]); break; case DATE_FIELD: withLeadingZeros(calendar.get(Calendar.DATE),p.size,buffer); break; case HOUR_OF_DAY1_FIELD: // 1-24 withLeadingZeros(((calendar.get(Calendar.HOUR_OF_DAY)+23)%24)+1,p.size,buffer); break; case HOUR_OF_DAY0_FIELD: // 0-23 withLeadingZeros(calendar.get(Calendar.HOUR_OF_DAY),p.size,buffer); break; case MINUTE_FIELD: withLeadingZeros(calendar.get(Calendar.MINUTE),p.size,buffer); break; case SECOND_FIELD: withLeadingZeros(calendar.get(Calendar.SECOND),p.size,buffer); break; case MILLISECOND_FIELD: withLeadingZeros(calendar.get(Calendar.MILLISECOND),p.size,buffer); break; case DAY_OF_WEEK_FIELD: if (p.size < 4) buffer.append(formatData.shortWeekdays[calendar.get(Calendar.DAY_OF_WEEK)]); else buffer.append(formatData.weekdays[calendar.get(Calendar.DAY_OF_WEEK)]); break; case DAY_OF_YEAR_FIELD: withLeadingZeros(calendar.get(Calendar.DAY_OF_YEAR),p.size,buffer); break; case DAY_OF_WEEK_IN_MONTH_FIELD: withLeadingZeros(calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH),p.size,buffer); break; case WEEK_OF_YEAR_FIELD: withLeadingZeros(calendar.get(Calendar.WEEK_OF_YEAR),p.size,buffer); break; case WEEK_OF_MONTH_FIELD: withLeadingZeros(calendar.get(Calendar.WEEK_OF_MONTH),p.size,buffer); break; case AM_PM_FIELD: buffer.append(formatData.ampms[calendar.get(Calendar.AM_PM)]); break; case HOUR1_FIELD: // 1-12 withLeadingZeros(((calendar.get(Calendar.HOUR)+11)%12)+1,p.size,buffer); break; case HOUR0_FIELD: // 0-11 withLeadingZeros(calendar.get(Calendar.HOUR),p.size,buffer); break; case TIMEZONE_FIELD: TimeZone zone = calendar.getTimeZone(); boolean isDST = calendar.get(Calendar.DST_OFFSET) != 0; // FIXME: XXX: This should be a localized time zone. String zoneID = zone.getDisplayName(isDST, p.size > 3 ? TimeZone.LONG : TimeZone.SHORT); buffer.append(zoneID); break; default: throw new IllegalArgumentException("Illegal pattern character"); } if (pos != null && p.field == pos.getField()) { pos.setBeginIndex(beginIndex); pos.setEndIndex(buffer.length()); } } else { buffer.append(o.toString()); } } return buffer; }
| 14,949
|
AbstractNumberNode(TemplateNode children, TemplateNode next, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next); this.format = format; this.lang = lang; this.letterValue = letterValue; this.groupingSeparator = groupingSeparator; this.groupingSize = groupingSize; }
|
AbstractNumberNode(TemplateNode children, TemplateNode next, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next); this.format = format; this.lang = lang; this.letterValue = letterValue; this.groupingSeparator = groupingSeparator; this.groupingSize = groupingSize; }
| 14,950
|
AbstractNumberNode(TemplateNode children, TemplateNode next, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next); this.format = format; this.lang = lang; this.letterValue = letterValue; this.groupingSeparator = groupingSeparator; this.groupingSize = groupingSize; }
|
AbstractNumberNode(TemplateNode children, TemplateNode next, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { this.format = format; this.lang = lang; this.letterValue = letterValue; this.groupingSeparator = groupingSeparator; this.groupingSize = groupingSize; }
| 14,951
|
public JToolTip createToolTip() { if (tooltip == null) tooltip = new JToolTip(tool_tip_text); return tooltip; }
|
public JToolTip createToolTip() { if (tooltip == null) tooltip = new JToolTip(tool_tip_text); return tooltip; }
| 14,954
|
public float getAlignmentX() { // Overrides Container.getAlignmentX to return the vertical alignment. return 0; }
|
public float getAlignmentX() { // Overrides Container.getAlignmentX to return the vertical alignment. return alignmentX; }
| 14,955
|
public float getAlignmentY() { // Overrides Container.getAlignmentY to return the horizontal alignment. return 0; }
|
public float getAlignmentY() { // Overrides Container.getAlignmentY to return the horizontal alignment. return alignmentY; }
| 14,956
|
public boolean getAutoscrolls() { //Returns true if this component automatically scrolls its contents when dragged, (when contained in a component that supports scrolling, like JViewport return false; }
|
public boolean getAutoscrolls() { //Returns true if this component automatically scrolls its contents when dragged, (when contained in a component that supports scrolling, like JViewport return autoscrolls; }
| 14,957
|
public Object getClientProperty(Object key) { return get_prop_hash().get(key); }
|
public Object getClientProperty(Object key) { return getClientProperties().get(key); }
| 14,958
|
protected Graphics getComponentGraphics(Graphics g) { return g; }
|
protected Graphics getComponentGraphics(Graphics g) { g.setFont(this.getFont()); g.setColor(this.getForeground()); return g; }
| 14,959
|
public int getConditionForKeyStroke(KeyStroke aKeyStroke) { //Return the condition that determines whether a registered action occurs in response to the specified keystroke. return 0; }
|
public int getConditionForKeyStroke(KeyStroke aKeyStroke) { //Return the condition that determines whether a registered action occurs in response to the specified keystroke. return UNDEFINED_CONDITION; }
| 14,960
|
public Insets getInsets() { // System.out.println("watch this border"); // DebugMe(border); // System.out.println("border = " + border); if (border == null) { //System.out.println("compares to null !"); return super.getInsets(); } // System.out.println("compare failed !"); return getBorder().getBorderInsets(this); }
|
public Insets getInsets() // System.out.println("watch this border"); // DebugMe(border); // System.out.println("border = " + border); if (border == null) //System.out.println("compares to null !"); return super.getInsets(); } // System.out.println("compare failed !"); return getBorder().getBorderInsets(this); }
| 14,961
|
public Insets getInsets() { // System.out.println("watch this border"); // DebugMe(border); // System.out.println("border = " + border); if (border == null) { //System.out.println("compares to null !"); return super.getInsets(); } // System.out.println("compare failed !"); return getBorder().getBorderInsets(this); }
|
public Insets getInsets() { // System.out.println("watch this border"); // DebugMe(border); // System.out.println("border = " + border); if (border == null) { //System.out.println("compares to null !"); return super.getInsets(); // System.out.println("compare failed !"); return getBorder().getBorderInsets(this);
| 14,962
|
public Point getLocation(Point rv) { //Store the x,y origin of this component into "return value" rv and return rv. if (rv == null) return new Point(getX(), getY()); rv.setLocation(getX(), getY()); return rv; }
|
public Point getLocation(Point rv) { //Store the x,y origin of this component into "return value" rv and return rv. if (rv == null) return new Point(getX(), getY()); rv.setLocation(getX(), getY()); return rv; }
| 14,964
|
public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getMaximumSize(); //System.out.println(" MAX = " + p + ", COMP="+this); return p; }
|
public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getMaximumSize(); //System.out.println(" MAX = " + p + ", COMP="+this); return p; }
| 14,965
|
public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getMaximumSize(); //System.out.println(" MAX = " + p + ", COMP="+this); return p; }
|
public Dimension getMaximumSize() if (max != null) //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) Dimension s = ui.getMaximumSize(this); if (s != null) //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getMaximumSize(); //System.out.println(" MAX = " + p + ", COMP="+this); return p; }
| 14,966
|
public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; } if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getMaximumSize(); //System.out.println(" MAX = " + p + ", COMP="+this); return p; }
|
public Dimension getMaximumSize() { if (max != null) { //System.out.println("HAVE_MAX_SIZE = " + max); return max; if (ui != null) { Dimension s = ui.getMaximumSize(this); if (s != null) { //System.out.println(" UI-MAX = " + s + ", UI = " + ui + ", IM="+this); return s; Dimension p = super.getMaximumSize(); //System.out.println(" MAX = " + p + ", COMP="+this); return p;
| 14,967
|
public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getMinimumSize(); // System.out.println(" MIN = " + p + ", COMP="+this); return p; }
|
public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getMinimumSize(); // System.out.println(" MIN = " + p + ", COMP="+this); return p; }
| 14,968
|
public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getMinimumSize(); // System.out.println(" MIN = " + p + ", COMP="+this); return p; }
|
public Dimension getMinimumSize() if (min != null) //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) Dimension s = ui.getMinimumSize(this); if (s != null) // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getMinimumSize(); // System.out.println(" MIN = " + p + ", COMP="+this); return p; }
| 14,969
|
public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; } if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getMinimumSize(); // System.out.println(" MIN = " + p + ", COMP="+this); return p; }
|
public Dimension getMinimumSize() { if (min != null) { //System.out.println("HAVE_MIN_SIZE = " + min); return min; if (ui != null) { Dimension s = ui.getMinimumSize(this); if (s != null) { // System.out.println(" UI-MIN = " + s + ", UI = " + ui + ", IM="+this); return s; Dimension p = super.getMinimumSize(); // System.out.println(" MIN = " + p + ", COMP="+this); return p;
| 14,970
|
public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getPreferredSize(); // System.out.println(" PREF = " + p + ", COMP="+this); return p; }
|
public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getPreferredSize(); // System.out.println(" PREF = " + p + ", COMP="+this); return p; }
| 14,971
|
public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getPreferredSize(); // System.out.println(" PREF = " + p + ", COMP="+this); return p; }
|
public Dimension getPreferredSize() if (pref != null) //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) Dimension s = ui.getPreferredSize(this); if (s != null) //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getPreferredSize(); // System.out.println(" PREF = " + p + ", COMP="+this); return p; }
| 14,972
|
public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; } if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; } } Dimension p = super.getPreferredSize(); // System.out.println(" PREF = " + p + ", COMP="+this); return p; }
|
public Dimension getPreferredSize() { if (pref != null) { //System.out.println("HAVE_PREF_SIZE = " + pref); return pref; if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) { //System.out.println(" UI-PREF = " + s + ", UI = " + ui + ", IM="+this); return s; Dimension p = super.getPreferredSize(); // System.out.println(" PREF = " + p + ", COMP="+this); return p;
| 14,973
|
public JRootPane getRootPane() { JRootPane p = SwingUtilities.getRootPane(this); System.out.println("root = " + p); return p; }
|
public JRootPane getRootPane() { JRootPane p = SwingUtilities.getRootPane(this); return p; }
| 14,974
|
public String getToolTipText() { return tool_tip_text; }
|
public String getToolTipText() { return toolTipText; }
| 14,975
|
public Container getTopLevelAncestor() { // Returns the top-level ancestor of this component (either the containing Window or Applet), or null if this component has not been added to any container. System.out.println("JComponent, getTopLevelAncestor()"); return null; }
|
public Container getTopLevelAncestor() { // Returns the top-level ancestor of this component (either the containing Window or Applet), or null if this component has not been added to any container. System.out.println("JComponent, getTopLevelAncestor()"); return null; }
| 14,976
|
public Rectangle getVisibleRect() { /// Returns the Component's "visible rectangle" - the intersection of this components visible rectangle: System.out.println("JComponent, getVisibleRect()"); return null; }
|
public Rectangle getVisibleRect() { /// Returns the Component's "visible rectangle" - the intersection of this components visible rectangle: System.out.println("JComponent, getVisibleRect()"); return null; }
| 14,977
|
public boolean isDoubleBuffered() { return use_double_buffer; }
|
public boolean isDoubleBuffered() { return doubleBuffered; }
| 14,978
|
public boolean isRequestFocusEnabled() { // Return whether the receiving component can obtain the focus by calling requestFocus return false; }
|
public boolean isRequestFocusEnabled() { // Return whether the receiving component can obtain the focus by calling requestFocus return requestFocusEnabled; }
| 14,979
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
|
public void paint(Graphics g) { Graphics g2 = g; Image doubleBuffer = null; RepaintManager rm = RepaintManager.currentManager(this); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
| 14,980
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (isDoubleBuffered() && (rm.isDoubleBufferingEnabled()) && (! Thread.holdsLock(paintLock))) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (isDoubleBuffered() && (rm.isDoubleBufferingEnabled()) && (! Thread.holdsLock(paintLock))) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
| 14,981
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
| 14,982
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
| 14,983
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
| 14,984
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } g2 = getComponentGraphics(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
| 14,985
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
|
public void paint(Graphics g) { Graphics g2 = g; Rectangle r = getBounds (); if (use_double_buffer) { if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) { Color save = g2.getColor(); g2.setColor(this.getBackground()); g2.fillRect (0, 0, r.width, r.height); g2.setColor(save); } else g2.clearRect(0, 0, r.width, r.height); } paintBorder(g2); paintComponent(g2); paintChildren(g2); if (use_double_buffer) { // always draw at 0,0, because regardless of your current bounds, // the graphics object you were passed was positioned so the origin // was at the upper left corner of your bounds. g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); } }
| 14,986
|
protected void paintBorder(Graphics g) { // System.out.println("PAINT_BORDER x XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", THIS="+this); // Paint the component's border. if (getBorder() != null) { //System.out.println("PAINT_BORDER x XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", THIS="+this); getBorder().paintBorder(this, g, 0, 0, getWidth(), getHeight()); } }
|
protected void paintBorder(Graphics g) { // System.out.println("PAINT_BORDER x XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", THIS="+this); // Paint the component's border. if (getBorder() != null) { //System.out.println("PAINT_BORDER x XXXXXXX x x x x x x x x x x x x:" + getBorder() + ", THIS="+this); getBorder().paintBorder(this, g, 0, 0, getWidth(), getHeight()); } }
| 14,987
|
protected void paintComponent(Graphics g) { // If the UI delegate is non-null, call its paint method. if (ui != null) { ui.paint(g, this); } }
|
protected void paintComponent(Graphics g) { // If the UI delegate is non-null, call its paint method. if (ui != null) { ui.paint(g, this); } }
| 14,988
|
public void putClientProperty(Object key, Object value) { get_prop_hash().put(key, value); }
|
public void putClientProperty(Object key, Object value) { getClientProperties().put(key, value); }
| 14,990
|
public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); }
|
public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); }
| 14,991
|
public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); }
|
public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); }
| 14,992
|
public void repaint(long tm, int x, int y, int width, int height) { // Adds the specified region to the dirty region list if the component is showing. //System.out.println("JC: repaint"); super.repaint(tm, x,y,width,height); }
|
public void repaint(long tm, int x, int y, int width, int height) { // Adds the specified region to the dirty region list if the component is showing. //System.out.println("JC: repaint"); Rectangle dirty = new Rectangle(x, y, width, height); Rectangle vis = getVisibleRect(); dirty = dirty.intersection(vis); RepaintManager.currentManager(this).addDirtyRegion(this, dirty.x, dirty.y, dirty.width, dirty.height); }
| 14,993
|
public void revalidate() { // Support for deferred automatic layout. if (getParent() == null) invalidate(); }
|
public void revalidate() { // Support for deferred automatic layout. if (getParent() == null) invalidate(); }
| 14,994
|
public void scrollRectToVisible(Rectangle aRect) { // Forwards the scrollRectToVisible() message to the JComponent's parent. }
|
public void scrollRectToVisible(Rectangle r) { // Forwards the scrollRectToVisible() message to the JComponent's parent. }
| 14,995
|
public void setAlignmentX(float alignmentX) { // Set the the vertical alignment. }
|
public void setAlignmentX(float a) { // Set the the vertical alignment. }
| 14,997
|
public void setAlignmentY(float alignmentY) { // Set the the horizontal alignment. }
|
public void setAlignmentY(float a) { // Set the the horizontal alignment. }
| 14,999
|
public void setAutoscrolls(boolean autoscrolls) { // If true this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling, such as JViewport }
|
public void setAutoscrolls(boolean a) { // If true this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling, such as JViewport }
| 15,001
|
public void setDoubleBuffered(boolean aFlag) { use_double_buffer = aFlag; }
|
public void setDoubleBuffered(boolean db) { use_double_buffer = aFlag; }
| 15,004
|
public void setDoubleBuffered(boolean aFlag) { use_double_buffer = aFlag; }
|
public void setDoubleBuffered(boolean aFlag) { doubleBuffered = db; }
| 15,005
|
public void setEnabled(boolean enabled) { // Sets whether or not this component is enabled. super.setEnabled(enabled); repaint(); }
|
public void setEnabled(boolean e) { // Sets whether or not this component is enabled. super.setEnabled(enabled); repaint(); }
| 15,006
|
public void setEnabled(boolean enabled) { // Sets whether or not this component is enabled. super.setEnabled(enabled); repaint(); }
|
public void setEnabled(boolean enabled) { // Sets whether or not this component is enabled. super.setEnabled(e); revalidate(); repaint(); }
| 15,007
|
public void setFont(Font font) { super.setFont(font); revalidate(); repaint(); }
|
public void setFont(Font f) { super.setFont(font); revalidate(); repaint(); }
| 15,008
|
public void setFont(Font font) { super.setFont(font); revalidate(); repaint(); }
|
public void setFont(Font font) { super.setFont(f); revalidate(); repaint(); }
| 15,009
|
public void setMaximumSize(Dimension maximumSize) { max = maximumSize; }
|
public void setMaximumSize(Dimension maximumSize) { max = maximumSize; }
| 15,010
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.