/[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 474 - (hide annotations)
Thu Oct 15 14:04:16 2009 UTC (15 years, 4 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/skrueger/swing/SmallButton.java
File MIME type: text/plain
File size: 393 byte(s)
* AS-Hacking: Improved two label labeling. The seperation char only appears when the second property is not empty.
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    
9     public SmallButton(Action action, String tooltip) {
10     this (action);
11     if (tooltip != null)
12     setToolTipText(tooltip);
13     }
14    
15     public SmallButton(Action action) {
16     super(action);
17     setBorder(BorderFactory.createEtchedBorder());
18     }
19    
20     }

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