[Schmitzm-commits] r1532 - trunk/schmitzm-core/src/main/java/de/schmitzm/swing

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Mar 20 19:36:34 CET 2011


Author: alfonx
Date: 2011-03-20 19:36:33 +0100 (Sun, 20 Mar 2011)
New Revision: 1532

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SmallButton.java
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ThinButton.java
Log:
* Changing the order of colors is not also possible for raster styles

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SmallButton.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SmallButton.java	2011-03-20 17:23:31 UTC (rev 1531)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SmallButton.java	2011-03-20 18:36:33 UTC (rev 1532)
@@ -3,9 +3,8 @@
 import javax.swing.Action;
 import javax.swing.BorderFactory;
 import javax.swing.Icon;
-import javax.swing.JButton;
 
-public class SmallButton extends JButton {
+public class SmallButton extends ThinButton {
 
 	public SmallButton() {
 		setBorder(BorderFactory.createCompoundBorder(

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ThinButton.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ThinButton.java	2011-03-20 17:23:31 UTC (rev 1531)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ThinButton.java	2011-03-20 18:36:33 UTC (rev 1532)
@@ -15,13 +15,16 @@
 	static final Font thinFont = new JLabel().getFont().deriveFont(
 			BUTTON_FONT_STYLE, BUTTON_FONT_SIZE);
 
+	public ThinButton() {
+		this("");
+	}
+
 	public ThinButton(String label) {
 		this(label, null);
 	}
 
 	public ThinButton(Action action) {
 		super(action);
-
 		init();
 	}
 



More information about the Schmitzm-commits mailing list