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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 729 - (hide annotations)
Fri Feb 26 13:27:33 2010 UTC (15 years ago) by alfonx
File MIME type: text/plain
File size: 679 byte(s)
GP chart designer : theunit  metadata of the first range attribute is not used for the range axis description by default. aggregation method is also added to the unit automatically.
1 alfonx 474 package skrueger.swing;
2    
3     import javax.swing.Action;
4     import javax.swing.BorderFactory;
5     import javax.swing.JButton;
6    
7     public class SmallButton extends JButton {
8 alfonx 487
9 alfonx 486 public SmallButton() {
10 alfonx 729 setBorder(BorderFactory.createCompoundBorder(BorderFactory
11     .createEtchedBorder(), BorderFactory.createEmptyBorder(0, 1, 0,
12     3)));
13 alfonx 486 }
14 alfonx 474
15     public SmallButton(Action action, String tooltip) {
16 alfonx 487 this(action);
17     setToolTipText(tooltip);
18 alfonx 474 }
19    
20 alfonx 694 public SmallButton(String label) {
21     this();
22     setText(label);
23     }
24    
25     public SmallButton(String label, String toolTip) {
26     this();
27     setText(label);
28     setToolTipText(toolTip);
29 alfonx 729 }
30 alfonx 694
31 alfonx 474 public SmallButton(Action action) {
32 alfonx 694 this();
33     setAction(action);
34 alfonx 474 }
35    
36     }

Properties

Name Value
svn:eol-style native
svn:keywords Id URL
svn:mime-type text/plain

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26