[Schmitzm-commits] r1947 - in trunk/schmitzm-core/src/main/java/de/schmitzm: io swing
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Sat Apr 14 20:53:06 CEST 2012
Author: alfonx
Date: 2012-04-14 20:53:06 +0200 (Sat, 14 Apr 2012)
New Revision: 1947
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java
trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ColorButton.java
trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SwingUtil.java
trunk/schmitzm-core/src/main/java/de/schmitzm/swing/WebAndLocalFilesChooser.java
Log:
Organized imports and added a new constructors for swing.ColorButton
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java 2012-04-14 18:52:27 UTC (rev 1946)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtil.java 2012-04-14 18:53:06 UTC (rev 1947)
@@ -48,13 +48,11 @@
import java.io.UnsupportedEncodingException;
import java.io.Writer;
import java.net.InetAddress;
-import java.net.InetSocketAddress;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLDecoder;
-import java.net.UnknownHostException;
import java.nio.channels.FileChannel;
import java.nio.charset.Charset;
import java.security.MessageDigest;
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ColorButton.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ColorButton.java 2012-04-14 18:52:27 UTC (rev 1946)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ColorButton.java 2012-04-14 18:53:06 UTC (rev 1947)
@@ -24,9 +24,13 @@
public ColorButton(AbstractAction abstractAction) {
super(abstractAction);
+ }
+
+ public ColorButton(AbstractAction abstractAction, Color color) {
+ super(abstractAction);
setColor(color);
}
-
+
public Color getColor() {
return color;
}
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SwingUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SwingUtil.java 2012-04-14 18:52:27 UTC (rev 1946)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SwingUtil.java 2012-04-14 18:53:06 UTC (rev 1947)
@@ -119,7 +119,6 @@
import javax.swing.table.TableCellRenderer;
import javax.swing.text.JTextComponent;
import javax.swing.text.View;
-import javax.swing.text.AttributeSet.FontAttribute;
import javax.swing.tree.TreeNode;
import javax.swing.tree.TreePath;
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/WebAndLocalFilesChooser.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/WebAndLocalFilesChooser.java 2012-04-14 18:52:27 UTC (rev 1946)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/WebAndLocalFilesChooser.java 2012-04-14 18:53:06 UTC (rev 1947)
@@ -33,22 +33,18 @@
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.Frame;
-import java.awt.event.ActionListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.File;
import java.net.URL;
-import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JFileChooser;
import javax.swing.JTabbedPane;
import javax.swing.ListSelectionModel;
-import javax.swing.SwingUtilities;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
-import javax.swing.event.DocumentListener;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
More information about the Schmitzm-commits
mailing list