rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
{ setUI((TabbedPaneUI)UIManager.getUI(this)); } | { setUI((TabbedPaneUI) UIManager.getUI(this)); invalidate(); } | public void updateUI() { setUI((TabbedPaneUI)UIManager.getUI(this)); } |
int next_index = sourceStr.indexOf(elements[i].trailer, index); | int next_index; if (elements[i].trailer.length() > 0) next_index = sourceStr.indexOf(elements[i].trailer, index); else next_index = sourceStr.length(); | 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 e... |
return new URL("plugin:" + id + "!" + resourceName); | return new URL("plugin:" + id + "!/" + resourceName); | 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 ... |
System.out.println("ioex: " +ex.getMessage()); | 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 ... | |
if (defaultButton == newButton) return; | if (defaultButton != newButton && (newButton == null || newButton.isDefaultCapable())) { | 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); } | |
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(... | LookAndFeel.installColors(slider, "Slider.background", "Slider.foreground"); LookAndFeel.installBorder(slider, "Slider.border"); shadowColor = UIManager.getColor("Slider.shadow"); highlightColor = UIManager.getColor("Slider.highlight"); focusColor = UIManager.getColor("Slider.focus"); focusInsets = UIManager.getInsets(... | 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 = defa... |
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 = defa... | |
*/ return stack[3].getClassLoader(); | ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); for (int i = 0; i < stack.length; i++) { if (stack[i] != securityClass && stack[i] != resourceBundleClass) return stack[i].getClassLoader(); } return null; } | |
public RTFParseException(String message) | public RTFParseException() | public RTFParseException(String message) { super(message); } |
super(message); | super(); | public RTFParseException(String message) { super(message); } |
this.awtComponent = awtComponent; | super(awtComponent); | public SwingDialog(Dialog awtComponent) { this.awtComponent = awtComponent; } |
index = indexInParent; | this.indexInParent = indexInParent; | public AccessibleAWTListChild(List parent, int indexInParent) { this.parent = parent; index = indexInParent; if (parent == null) index = -1; } |
index = -1; | this.indexInParent = -1; | public AccessibleAWTListChild(List parent, int indexInParent) { this.parent = parent; index = indexInParent; if (parent == null) index = -1; } |
return index; | return indexInParent; | public int getAccessibleIndexInParent() { return index; } |
if (parent.isIndexSelected(index)) | if (parent.isIndexSelected(indexInParent)) | public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet states = super.getAccessibleStateSet(); if (parent.isIndexSelected(index)) states.add(AccessibleState.SELECTED); return states; } |
int lm1 = len - 1; for (int i = off; i < len; i++) | int end = off + len; int em1 = end - 1; for (int i = off; i < end; i++) | 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 = tr... |
if (i == lm1) | if (i == em1) | 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 = tr... |
RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); | Component rootContainer = SwingUtilities.getRoot(invoker); | 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... |
((Container) rootContainer).removeComponentListener(topWindowListener); | rootContainer.removeComponentListener(topWindowListener); | 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... |
if (topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) | if ((topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) && rootContainer instanceof RootPaneContainer) | 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... |
Container glassPane = (Container) rootContainer.getGlassPane(); | Container glassPane = (Container) rpContainer.getGlassPane(); | 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... |
RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities .getRoot(invoker); ((Container) rootContainer).addComponentListener(topWindowListener); | Component rootContainer = SwingUtilities.getRoot(invoker); rootContainer.addComponentListener(topWindowListener); | 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.getInv... |
if (mouseInputListener == null) | if (mouseInputListener == null && rootContainer instanceof RootPaneContainer) | 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.getInv... |
Container glassPane = (Container) rootContainer.getGlassPane(); | RootPaneContainer rpContainer = (RootPaneContainer) rootContainer; Container glassPane = (Container) rpContainer.getGlassPane(); | 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.getInv... |
mouseInputListener = new MouseInputHandler(rootContainer); | mouseInputListener = new MouseInputHandler(rpContainer); | 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.getInv... |
throw new RemoteException("connection failed to host: " + manager.serverName, e1); | throw new ConnectException("connection failed to host: " + manager.serverName, e1); | 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... |
public URI(String str) throws URISyntaxException { | public URI(String str) throws URISyntaxException { parseURI(str); | public URI(String str) throws URISyntaxException { } |
public static URI create(String str) throws IllegalArgumentException { return null; | public static URI create(String str) { try { return new URI(str); } catch (URISyntaxException e) { throw (IllegalArgumentException) new IllegalArgumentException() .initCause(e); } | public static URI create(String str) throws IllegalArgumentException { return null; } |
public String getAuthority() { return null; | public String getAuthority() { return authority; | public String getAuthority() { return null; } |
public String getFragment() { return null; | public String getFragment() { return fragment; | public String getFragment() { return null; } |
public String getPath() { return null; | public String getPath() { return path; | public String getPath() { return null; } |
public String getQuery() { return null; | public String getQuery() { return query; | public String getQuery() { return null; } |
public String getRawAuthority() { return authority; | public String getRawAuthority() { return rawAuthority; | public String getRawAuthority() { return authority; } |
public String getRawFragment() { return fragment; | public String getRawFragment() { return rawFragment; | public String getRawFragment() { return fragment; } |
public String getRawPath() { return path; | public String getRawPath() { return rawPath; | public String getRawPath() { return path; } |
public String getRawQuery() { return query; | public String getRawQuery() { return rawQuery; | public String getRawQuery() { return query; } |
public String getRawSchemeSpecificPart() { return null; | public String getRawSchemeSpecificPart() { return rawSchemeSpecificPart; | public String getRawSchemeSpecificPart() { return null; } |
public String getRawUserInfo() { return userInfo; | public String getRawUserInfo() { return rawUserInfo; | public String getRawUserInfo() { return userInfo; } |
public String getSchemeSpecificPart() { return null; | public String getSchemeSpecificPart() { return schemeSpecificPart; | public String getSchemeSpecificPart() { return null; } |
public String getUserInfo() { return null; | public String getUserInfo() { return userInfo; | public String getUserInfo() { return null; } |
public boolean isAbsolute() { return false; | public boolean isAbsolute() { return (scheme != null); | public boolean isAbsolute() { return false; } |
public boolean isOpaque() { return false; | public boolean isOpaque() { return ((scheme != null) && ! (schemeSpecificPart.startsWith("/"))); | public boolean isOpaque() { return false; } |
public URI resolve(URI uri) { | 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(... | public URI resolve(URI uri) { return null; } |
} | public URI resolve(URI uri) { return null; } | |
public String toString() { return ""; | public String toString() { return (getScheme() == null ? "" : getScheme() + ":") + (getRawAuthority() == null ? "" : " + (getRawPath() == null ? "" : getRawPath()) + (getRawQuery() == null ? "" : "?" + getRawQuery()) + (getRawFragment() == null ? "" : "#" + getRawFragment()); | public String toString() { return ""; } |
public URL toURL() throws IllegalArgumentException, MalformedURLException { return null; | public URL toURL() throws IllegalArgumentException, MalformedURLException { if (isAbsolute()) return new URL(this.toString()); throw new IllegalArgumentException("not absolute"); | public URL toURL() throws IllegalArgumentException, MalformedURLException { return null; } |
if (pixel < map_size) return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); | if (opaque || pixel >= map_size) return 255; | public final int getAlpha (int pixel) { if (pixel < map_size) return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); return 0; } |
return 0; | return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); | public final int getAlpha (int pixel) { if (pixel < map_size) return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); return 0; } |
String temp; calendar.setTime(date); 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(Calen... | formatWithAttribute(date, new StringFormatBuffer (buffer), pos); | 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 ... |
AbstractNumberNode(TemplateNode children, TemplateNode next, TemplateNode format, String lang, | AbstractNumberNode(TemplateNode format, String lang, | 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 = lette... |
super(children, next); | 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 = lette... | |
defaultLocale = Locale.getDefault(); debugGraphicsOptions = DebugGraphics.NONE_OPTION; | public JComponent() { super(); super.setLayout(new FlowLayout()); //eventMask |= AWTEvent.COMP_KEY_EVENT_MASK; // enableEvents( AWTEvent.KEY_EVENT_MASK ); //updateUI(); // get a proper ui } | |
Component c = getParent(); if (c != null && c instanceof JComponent) { ((JComponent) c).computeVisibleRect(rect); rect.translate(-getX(), -getY()); Rectangle2D.intersect(rect, new Rectangle(0, 0, getWidth(), getHeight()), rect); } else rect.setRect(0, 0, getWidth(), getHeight()); | public void computeVisibleRect(Rectangle rect) { //Returns the Component's "visible rect rectangle" - the intersection of the visible rectangles for this component and all of its ancestors. //super.computeVisibleRect(rect); } | |
if (tooltip == null) tooltip = new JToolTip(tool_tip_text); return tooltip; | if (toolTip == null) toolTip = new JToolTip(toolTipText); return toolTip; | public JToolTip createToolTip() { if (tooltip == null) tooltip = new JToolTip(tool_tip_text); return tooltip; } |
return 0; | return alignmentX; | public float getAlignmentX() { // Overrides Container.getAlignmentX to return the vertical alignment. return 0; } |
return 0; | return alignmentY; | public float getAlignmentY() { // Overrides Container.getAlignmentY to return the horizontal alignment. return 0; } |
return false; | return autoscrolls; | 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; } |
{ return get_prop_hash().get(key); } | { return getClientProperties().get(key); } | public Object getClientProperty(Object key) { return get_prop_hash().get(key); } |
{ return g; } | { g.setFont(this.getFont()); g.setColor(this.getForeground()); return g; } | protected Graphics getComponentGraphics(Graphics g) { return g; } |
return 0; | return UNDEFINED_CONDITION; | public int getConditionForKeyStroke(KeyStroke aKeyStroke) { //Return the condition that determines whether a registered action occurs in response to the specified keystroke. return 0; } |
{ | 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().getBorderInset... | |
} | 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().getBorderInset... | |
if (rv == null) return new Point(getX(), getY()); | 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; } | |
if (rv == null) return new Point(getX(), getY()); rv.setLocation(getX(), getY()); | rv.setLocation(getX(), getY()); | 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; } |
if (max != null) { return max; } | if (maximumSize != null) return maximumSize; | 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; } } Dim... |
{ | 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; } } Dim... | |
} | 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; } } Dim... | |
if (min != null) { return min; } | if (minimumSize != null) return minimumSize; | 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; } } Dimensio... |
{ | 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; } } Dimensio... | |
} | 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; } } Dimensio... | |
if (pref != null) { return pref; } | if (preferredSize != null) return preferredSize; | 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; } } ... |
{ | 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; } } ... | |
} | 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; } } ... | |
System.out.println("root = " + p); | public JRootPane getRootPane() { JRootPane p = SwingUtilities.getRootPane(this); System.out.println("root = " + p); return p; } | |
{ return tool_tip_text; } | { return toolTipText; } | public String getToolTipText() { return tool_tip_text; } |
System.out.println("JComponent, getTopLevelAncestor()"); return null; | Container c = getParent(); for (Container peek = c; peek != null; peek = peek.getParent()) c = peek; return c; | 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; } |
System.out.println("JComponent, getVisibleRect()"); return null; | Rectangle r = new Rectangle(); computeVisibleRect(r); return r; | public Rectangle getVisibleRect() { /// Returns the Component's "visible rectangle" - the intersection of this components visible rectangle: System.out.println("JComponent, getVisibleRect()"); return null; } |
{ return use_double_buffer; } | { return doubleBuffered; } | public boolean isDoubleBuffered() { return use_double_buffer; } |
return false; | return requestFocusEnabled; | public boolean isRequestFocusEnabled() { // Return whether the receiving component can obtain the focus by calling requestFocus return false; } |
Rectangle r = getBounds (); | Image doubleBuffer = null; RepaintManager rm = RepaintManager.currentManager(this); | 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 = c... |
if (use_double_buffer) | if (isDoubleBuffered() && (rm.isDoubleBufferingEnabled()) && (! Thread.holdsLock(paintLock))) | 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 = c... |
if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; | doubleBuffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); | 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 = c... |
g2 = doubleBuffer.getGraphics (); if (this.getBackground() != null) | synchronized (paintLock) | 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 = c... |
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); | if (doubleBuffer != null) { g2 = doubleBuffer.getGraphics(); g2.setClip(g.getClipBounds()); | 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 = c... |
paintBorder(g2); | g2 = getComponentGraphics(g2); | 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 = c... |
if (use_double_buffer) { g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); | if (doubleBuffer != null) 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 = c... |
{ getBorder().paintBorder(this, g, 0, 0, getWidth(), getHeight()); } | 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() + ", ... |
{ ui.paint(g, this); } | ui.update(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); } } |
paintImmediately(new Rectangle(x, y, w, h)); | public void paintImmediately(int x, int y, int w, int h) { //Ronald: this shoudld probably redirect to the PLAF .... } | |
{ get_prop_hash().put(key, value); } | { getClientProperties().put(key, value); } | public void putClientProperty(Object key, Object value) { get_prop_hash().put(key, value); } |
public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) | public void registerKeyboardAction(ActionListener act, KeyStroke stroke, int cond) | public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); } |
registerKeyboardAction(anAction, null, aKeyStroke, aCondition); | registerKeyboardAction(act, null, stroke, cond); | public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition) { registerKeyboardAction(anAction, null, aKeyStroke, aCondition); } |
super.repaint(tm, x,y,width,height); | 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); | 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); } |
if (getParent() == null) invalidate(); | RepaintManager.currentManager(this).addInvalidComponent(this); | public void revalidate() { // Support for deferred automatic layout. if (getParent() == null) invalidate(); } |
public void scrollRectToVisible(Rectangle aRect) | public void scrollRectToVisible(Rectangle r) | public void scrollRectToVisible(Rectangle aRect) { // Forwards the scrollRectToVisible() message to the JComponent's parent. } |
Component p = getParent(); if (p != null && p instanceof JComponent) ((JComponent) p).scrollRectToVisible(r); | public void scrollRectToVisible(Rectangle aRect) { // Forwards the scrollRectToVisible() message to the JComponent's parent. } | |
public void setAlignmentX(float alignmentX) | public void setAlignmentX(float a) | public void setAlignmentX(float alignmentX) { // Set the the vertical alignment. } |
alignmentX = a; | public void setAlignmentX(float alignmentX) { // Set the the vertical alignment. } | |
public void setAlignmentY(float alignmentY) | public void setAlignmentY(float a) | public void setAlignmentY(float alignmentY) { // Set the the horizontal alignment. } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.