/[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

revision 694 by alfonx, Fri Feb 12 11:28:41 2010 UTC revision 729 by alfonx, Fri Feb 26 13:27:33 2010 UTC
# Line 7  import javax.swing.JButton; Line 7  import javax.swing.JButton;
7  public class SmallButton extends JButton {  public class SmallButton extends JButton {
8    
9          public SmallButton() {          public SmallButton() {
10                  setBorder(BorderFactory.createEtchedBorder());                  setBorder(BorderFactory.createCompoundBorder(BorderFactory
11                                    .createEtchedBorder(), BorderFactory.createEmptyBorder(0, 1, 0,
12                                    3)));
13          }          }
14    
15          public SmallButton(Action action, String tooltip) {          public SmallButton(Action action, String tooltip) {
16                  this(action);                  this(action);
17                  setToolTipText(tooltip);                  setToolTipText(tooltip);
18          }          }
           
19    
20          public SmallButton(String label) {          public SmallButton(String label) {
21                  this();                  this();
22                  setText(label);                  setText(label);
23          }          }
           
   
24    
25          public SmallButton(String label, String toolTip) {          public SmallButton(String label, String toolTip) {
26                  this();                  this();
27                  setText(label);                  setText(label);
28                  setToolTipText(toolTip);                  setToolTipText(toolTip);
29          }                }
30    
31          public SmallButton(Action action) {          public SmallButton(Action action) {
32                  this();                  this();

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26