/[schmitzm]/trunk/src/skrueger/swing/SmallButton.java
ViewVC logotype

Diff of /trunk/src/skrueger/swing/SmallButton.java

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

branches/1.0-gt2-2.6/src/skrueger/swing/SmallButton.java revision 474 by alfonx, Thu Oct 15 14:04:16 2009 UTC trunk/src/skrueger/swing/SmallButton.java revision 694 by alfonx, Fri Feb 12 11:28:41 2010 UTC
# Line 6  import javax.swing.JButton; Line 6  import javax.swing.JButton;
6    
7  public class SmallButton extends JButton {  public class SmallButton extends JButton {
8    
9            public SmallButton() {
10                    setBorder(BorderFactory.createEtchedBorder());
11            }
12    
13          public SmallButton(Action action, String tooltip) {          public SmallButton(Action action, String tooltip) {
14                  this (action);                  this(action);
15                  if (tooltip != null)                  setToolTipText(tooltip);
16                          setToolTipText(tooltip);          }
17            
18    
19            public SmallButton(String label) {
20                    this();
21                    setText(label);
22          }          }
23            
24    
25    
26            public SmallButton(String label, String toolTip) {
27                    this();
28                    setText(label);
29                    setToolTipText(toolTip);
30            }      
31    
32          public SmallButton(Action action) {          public SmallButton(Action action) {
33                  super(action);                  this();
34                  setBorder(BorderFactory.createEtchedBorder());                  setAction(action);
35          }          }
36    
37  }  }

Legend:
Removed from v.474  
changed lines
  Added in v.694

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26