[slf4j-dev] svn commit: r976 - slf4j/trunk/slf4j-converter/src/main/java/org/slf4j/converter/internal

ceki at slf4j.org ceki at slf4j.org
Wed Feb 20 22:44:38 CET 2008


Author: ceki
Date: Wed Feb 20 22:44:38 2008
New Revision: 976

Modified:
   slf4j/trunk/slf4j-converter/src/main/java/org/slf4j/converter/internal/MigratorFrame.java

Log:
- getting rid of SLF4J image

Modified: slf4j/trunk/slf4j-converter/src/main/java/org/slf4j/converter/internal/MigratorFrame.java
==============================================================================
--- slf4j/trunk/slf4j-converter/src/main/java/org/slf4j/converter/internal/MigratorFrame.java	(original)
+++ slf4j/trunk/slf4j-converter/src/main/java/org/slf4j/converter/internal/MigratorFrame.java	Wed Feb 20 22:44:38 2008
@@ -7,7 +7,6 @@
 import java.util.List;
 
 import javax.swing.ButtonGroup;
-import javax.swing.ImageIcon;
 import javax.swing.JButton;
 import javax.swing.JCheckBox;
 import javax.swing.JFileChooser;
@@ -48,9 +47,8 @@
 
   private SpringLayout layoutManager = new SpringLayout();
   private SpringLayoutHelper slh = new SpringLayoutHelper(layoutManager,
-      BASIC_PADDING);
+      BASIC_PADDING); 
 
-  private JLabel slf4jLabel;
   private JLabel migrationLabel;
 
   private JRadioButton radioLog4j;
@@ -102,7 +100,6 @@
   }
 
   private void createComponents() {
-    createSLF4JLabel();
     createMigrationLabel();
     createRadioJCL();
     createRadioLog4j();
@@ -139,7 +136,6 @@
         -BASIC_PADDING / 2);
     slh.placeBelow(radioJCL, radioLog4j, 0, 0);
 
-    slh.placeToTheRight(radioJCL, slf4jLabel, BASIC_PADDING*2, 0);
     
     slh.placeBelow(migrationLabel, folderLabel, 0, BASIC_PADDING * 5);
     slh.placeToTheRight(folderLabel, folderTextField);
@@ -159,7 +155,6 @@
   }
 
   private void addAllComponentsToContextPane() {
-    getContentPane().add(slf4jLabel);
     getContentPane().add(migrationLabel);
     getContentPane().add(radioJCL);
     getContentPane().add(radioLog4j);
@@ -184,18 +179,6 @@
     buttonGroup.add(radioLog4j);
   }
 
-  private void createSLF4JLabel() {
-    String resoucePath = "/images/slf4j-small.jpg";
-
-    java.net.URL imgURL = this.getClass().getResource(resoucePath);
-    if (imgURL != null) {
-      ImageIcon icon = new ImageIcon(imgURL);
-      slf4jLabel = new JLabel("", icon, JLabel.CENTER);
-    } else {
-      slf4jLabel = new JLabel("");
-    }
-  }
-
   private void createMigrationLabel() {
     migrationLabel = new JLabel();
     migrationLabel.setText("Migration Type");



More information about the slf4j-dev mailing list