Parent Directory
|
Revision Log
* 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 | } |
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 |