/[classpath]/classpath/javax/swing/JComponent.java
ViewVC logotype

Diff of /classpath/javax/swing/JComponent.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28 by mkoch, Mon Oct 25 10:37:36 2004 UTC revision 1.29 by mark, Thu Nov 11 17:22:52 2004 UTC
# Line 325  public abstract class JComponent extends Line 325  public abstract class JComponent extends
325    private ActionMap actionMap;    private ActionMap actionMap;
326    private InputVerifier inputVerifier;    private InputVerifier inputVerifier;
327    
328      private TransferHandler transferHandler;
329    
330    /**    /**
331     * A lock held during recursive painting; this is used to serialize     * A lock held during recursive painting; this is used to serialize
332     * access to the double buffer, and also to select the "top level"     * access to the double buffer, and also to select the "top level"
# Line 862  public abstract class JComponent extends Line 864  public abstract class JComponent extends
864     */     */
865    protected Graphics getComponentGraphics(Graphics g)    protected Graphics getComponentGraphics(Graphics g)
866    {        {    
867      g.setFont(this.getFont());      Graphics g2 = g.create();
868      g.setColor(this.getForeground());      g2.setFont(this.getFont());
869      return g;      g2.setColor(this.getForeground());
870        return g2;
871    }    }
872    
873    
# Line 2069  public abstract class JComponent extends Line 2072  public abstract class JComponent extends
2072    }    }
2073    
2074    /**    /**
2075       * Get the value of the {@link #transferHandler} property.
2076       *
2077       * @return The current value of the property
2078       *
2079       * @see ComponentUI#setTransferHandler
2080       */
2081    
2082      public TransferHandler getTransferHandler()
2083      {
2084        return transferHandler;
2085      }
2086    
2087      /**
2088       * Set the value of the {@link #transferHandler} property.
2089       *
2090       * @param newHandler The new value of the property
2091       *
2092       * @see ComponentUI#getTransferHandler
2093       */
2094    
2095      void setTransferHandler (TransferHandler newHandler)
2096      {
2097        transferHandler = newHandler;
2098      }
2099    
2100      /**
2101     * Set the value of the {@link #opaque} property, revalidate and repaint     * Set the value of the {@link #opaque} property, revalidate and repaint
2102     * this component.     * this component.
2103     *     *

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26