|
8 | 8 | * it under the terms of the GNU General Public License as |
9 | 9 | * published by the Free Software Foundation, either version 3 of the |
10 | 10 | * License, or (at your option) any later version. |
11 | | - * |
| 11 | + * |
12 | 12 | * This program is distributed in the hope that it will be useful, |
13 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | * GNU General Public License for more details. |
16 | | - * |
| 16 | + * |
17 | 17 | * You should have received a copy of the GNU General Public |
18 | 18 | * License along with this program. If not, see |
19 | 19 | * <http://www.gnu.org/licenses/gpl-3.0.html>. |
|
26 | 26 | import static fiji.plugin.trackmate.gui.Fonts.FONT; |
27 | 27 | import static fiji.plugin.trackmate.gui.Fonts.SMALL_FONT; |
28 | 28 | import static fiji.plugin.trackmate.gui.Icons.MAGNIFIER_ICON; |
| 29 | +import static fiji.plugin.trackmate.weka.WekaDetectorFactory.ICON; |
29 | 30 | import static fiji.plugin.trackmate.weka.WekaDetectorFactory.KEY_CLASSIFIER_FILEPATH; |
30 | 31 | import static fiji.plugin.trackmate.weka.WekaDetectorFactory.KEY_CLASS_INDEX; |
31 | 32 | import static fiji.plugin.trackmate.weka.WekaDetectorFactory.KEY_PROBA_THRESHOLD; |
|
36 | 37 | import java.awt.Insets; |
37 | 38 | import java.beans.PropertyChangeListener; |
38 | 39 | import java.io.File; |
39 | | -import java.net.URL; |
40 | 40 | import java.text.DecimalFormat; |
41 | 41 | import java.text.NumberFormat; |
42 | 42 | import java.util.Arrays; |
|
46 | 46 | import java.util.Vector; |
47 | 47 |
|
48 | 48 | import javax.swing.DefaultComboBoxModel; |
49 | | -import javax.swing.ImageIcon; |
50 | 49 | import javax.swing.JButton; |
51 | 50 | import javax.swing.JComboBox; |
52 | 51 | import javax.swing.JFormattedTextField; |
@@ -80,8 +79,6 @@ public class WekaDetectorConfigurationPanel extends ConfigurationPanel |
80 | 79 |
|
81 | 80 | private static final NumberFormat THRESHOLD_FORMAT = new DecimalFormat( "#.##" ); |
82 | 81 |
|
83 | | - protected static final ImageIcon ICON = new ImageIcon( getResource( "images/TrackMateWeka-logo-100px.png" ) ); |
84 | | - |
85 | 82 | private static final String TITLE = WekaDetectorFactory.NAME; |
86 | 83 |
|
87 | 84 | private static final FileFilter fileFilter = new FileNameExtensionFilter( "Weka classifier files.", "model" ); |
@@ -433,9 +430,4 @@ public void run() |
433 | 430 | } |
434 | 431 | }.start(); |
435 | 432 | } |
436 | | - |
437 | | - protected static URL getResource( final String name ) |
438 | | - { |
439 | | - return WekaDetectorFactory.class.getClassLoader().getResource( name ); |
440 | | - } |
441 | 433 | } |
0 commit comments