/[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.23 by mkoch, Thu Sep 23 14:25:28 2004 UTC revision 1.24 by mkoch, Sat Sep 25 15:58:19 2004 UTC
# Line 380  public abstract class JComponent extends Line 380  public abstract class JComponent extends
380    public static final int WHEN_IN_FOCUSED_WINDOW = 2;    public static final int WHEN_IN_FOCUSED_WINDOW = 2;
381    
382    
383      /**
384       * Creates a new <code>JComponent</code> instance.
385       */
386    public JComponent()    public JComponent()
387    {    {
388      super();      super();
# Line 797  public abstract class JComponent extends Line 800  public abstract class JComponent extends
800     * Set the value of the {@link #border} property, revalidate     * Set the value of the {@link #border} property, revalidate
801     * and repaint this component.     * and repaint this component.
802     *       *  
803     * @param border The new value of the property     * @param newBorder The new value of the property
804     *     *
805     * @see #getBorder     * @see #getBorder
806     */     */
807    public void setBorder(Border border)    public void setBorder(Border newBorder)
808    {    {
809      this.border = border;      Border oldBorder = border;
810        border = newBorder;
811        firePropertyChange("border", oldBorder, newBorder);
812      revalidate();      revalidate();
813      repaint();      repaint();
814    }    }
# Line 1908  public abstract class JComponent extends Line 1913  public abstract class JComponent extends
1913     * Set the value of the {@link #enabled} property, revalidate     * Set the value of the {@link #enabled} property, revalidate
1914     * and repaint this component.     * and repaint this component.
1915     *     *
1916     * @param e The new value of the property     * @param enable The new value of the property
1917     */     */
1918    public void setEnabled(boolean e)    public void setEnabled(boolean enable)
1919    {    {
1920      super.setEnabled(e);      boolean oldEnabled = isEnabled();
1921        super.setEnabled(enable);
1922        firePropertyChange("enabeld", oldEnabled, enable);
1923      revalidate();      revalidate();
1924      repaint();      repaint();
1925    }    }
# Line 1964  public abstract class JComponent extends Line 1971  public abstract class JComponent extends
1971     */     */
1972    public void setMaximumSize(Dimension max)    public void setMaximumSize(Dimension max)
1973    {    {
1974        Dimension oldMaximumSize = maximumSize;
1975      maximumSize = max;      maximumSize = max;
1976        firePropertyChange("maximumSize", oldMaximumSize, maximumSize);
1977      revalidate();      revalidate();
1978      repaint();      repaint();
1979    }    }
# Line 1977  public abstract class JComponent extends Line 1986  public abstract class JComponent extends
1986     */     */
1987    public void setMinimumSize(Dimension min)    public void setMinimumSize(Dimension min)
1988    {    {
1989        Dimension oldMinimumSize = minimumSize;
1990      minimumSize = min;      minimumSize = min;
1991        firePropertyChange("minimumSize", oldMinimumSize, minimumSize);
1992      revalidate();      revalidate();
1993      repaint();      repaint();
1994    }    }
# Line 1990  public abstract class JComponent extends Line 2001  public abstract class JComponent extends
2001     */     */
2002    public void setPreferredSize(Dimension pref)    public void setPreferredSize(Dimension pref)
2003    {    {
2004        Dimension oldPreferredSize = preferredSize;
2005      preferredSize = pref;      preferredSize = pref;
2006        firePropertyChange("preferredSize", oldPreferredSize, preferredSize);
2007    }    }
2008    
2009    /**    /**
# Line 2026  public abstract class JComponent extends Line 2039  public abstract class JComponent extends
2039     */     */
2040    public void setOpaque(boolean isOpaque)    public void setOpaque(boolean isOpaque)
2041    {    {
2042        boolean oldOpaque = opaque;
2043      opaque = isOpaque;      opaque = isOpaque;
2044        firePropertyChange("opaque", oldOpaque, opaque);
2045      revalidate();      revalidate();
2046      repaint();      repaint();
2047    }    }

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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