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

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

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

revision 1.20 by mkoch, Wed Jan 26 23:32:51 2005 UTC revision 1.21 by smarothy, Mon Jun 6 23:24:58 2005 UTC
# Line 92  public class JLabel extends JComponent i Line 92  public class JLabel extends JComponent i
92    private transient int iconTextGap = 4;    private transient int iconTextGap = 4;
93    
94    /**    /**
95     * Creates a new horizontally and vertically centered JLabel object with no     * Creates a new vertically centered, horizontally on the leading edge
96     * text and no icon.     * JLabel object with text and no icon.
97     */     */
98    public JLabel()    public JLabel()
99    {    {
100      this(null, null, CENTER);      this(null, null, LEADING);
101    }    }
102    
103    /**    /**
104     * Creates a new horizontally and vertically centered JLabel object with no     * Creates a new vertically centered, horizontally on the leading edge
105     * text and the given icon.     * JLabel object with no text and the given icon.
106     *     *
107     * @param image The icon to use with the label.     * @param image The icon to use with the label.
108     */     */
109    public JLabel(Icon image)    public JLabel(Icon image)
110    {    {
111      this(null, image, CENTER);      this(null, image, LEADING);
112    }    }
113    
114    /**    /**
# Line 125  public class JLabel extends JComponent i Line 125  public class JLabel extends JComponent i
125    }    }
126    
127    /**    /**
128     * Creates a new horizontally and vertically centered JLabel object with no     * Creates a new horizontally leading and vertically centered JLabel
129     * icon and the given text.     * object with no icon and the given text.
130     *     *
131     * @param text The text to use with the label.     * @param text The text to use with the label.
132     */     */
133    public JLabel(String text)    public JLabel(String text)
134    {    {
135      this(text, null, CENTER);      this(text, null, LEADING);
136    }    }
137    
138    /**    /**

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

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