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

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

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

revision 1.17 by rabbit78, Mon Sep 12 20:15:40 2005 UTC revision 1.18 by rabbit78, Fri Sep 30 13:11:05 2005 UTC
# Line 97  public class JCheckBox extends JToggleBu Line 97  public class JCheckBox extends JToggleBu
97        
98    public JCheckBox()    public JCheckBox()
99    {    {
100      super();      this(null, null, false);
     init();  
101    }    }
102    
103    public JCheckBox(Action action)    public JCheckBox(Action action)
104    {    {
105      super(action);      super(action);
     init();  
106    }    }
107    
108    public JCheckBox(Icon icon)    public JCheckBox(Icon icon)
109    {    {
110      super(icon);      this(null, icon, false);
     init();  
111    }        }    
112        
113    public JCheckBox(Icon icon, boolean selected)    public JCheckBox(Icon icon, boolean selected)
114    {    {
115      super(icon, selected);      this(null, icon, selected);
     init();  
116    }        }    
117        
118    public JCheckBox(String text)    public JCheckBox(String text)
119    {    {
120      super(text);      this(text, null, false);
     init();  
121    }    }
122                
123    public JCheckBox(String text, boolean selected)    public JCheckBox(String text, boolean selected)
124    {    {
125      super(text, selected);      this(text, null, selected);
     init();  
126    }    }
127                
128    public JCheckBox(String text, Icon icon)    public JCheckBox(String text, Icon icon)
129    {    {
130      super(text, icon);      this(text, icon, false);
     init();  
131    }    }
132    
133    public JCheckBox(String text, Icon icon, boolean selected)    public JCheckBox(String text, Icon icon, boolean selected)
134    {    {
135      super(text, icon, selected);      super(text, icon, selected);
136      init();      setHorizontalAlignment(LEADING);
137        setBorderPainted(false);
138    }    }
139    
140    /**    /**

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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