/[schmitzm]/branches/2.0-RC1/src/skrueger/swing/CancelButton.java
ViewVC logotype

Annotation of /branches/2.0-RC1/src/skrueger/swing/CancelButton.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations)
Tue Feb 24 22:43:52 2009 UTC (16 years ago) by mojays
Original Path: trunk/src/skrueger/swing/CancelButton.java
File size: 926 byte(s)
First Commit, corresponds to Revision 1008 of Wikisquare-SVN
includes:
- schmitzm.* (except schmitzm.test)
- org.geotools.* (all overridden classes)
- skrueger.geotools
- skrueger.i8n
- skrueger.swing
- appl.data.LateLoadable (dependency in SCHMITZM)
- appl.data.LoadingException (dependency in SCHMITZM)
- appl.util.RasterMetaData (dependency in SCHMITZM)

1 mojays 2 package skrueger.swing;
2    
3     import java.awt.Dimension;
4    
5     import javax.swing.Action;
6     import javax.swing.Icon;
7     import javax.swing.ImageIcon;
8     import javax.swing.JButton;
9     /**
10     * A Cancel {@link JButton} without text, but with an expressive {@link Icon}
11     * stat symbolizes CANCEL
12     *
13     * @author Stefan Alfons Krüger
14     *
15     */
16     public class CancelButton extends JButton {
17     public static final Icon ICON_CANCEL_SMALL = new ImageIcon( CancelButton.class.getResource("small/cancel.png") );
18    
19     private static final Dimension DIMENSION = new Dimension(35,25);
20    
21     /**
22     * Creates a {@link JButton} with an icon that symbolizes OK
23     */
24     public CancelButton() {
25     super(ICON_CANCEL_SMALL);
26     setMaximumSize(DIMENSION);
27     }
28    
29     /**
30     * Creates a {@link JButton} with an icon that symbolizes OK
31     */
32     public CancelButton(Action a) {
33     super(a);
34     setIcon(ICON_CANCEL_SMALL);
35     setMaximumSize(DIMENSION);
36     }
37    
38    
39     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26