|
28 | 28 | import static fiji.plugin.trackmate.gui.Icons.EXECUTE_ICON; |
29 | 29 | import static fiji.plugin.trackmate.gui.Icons.REVERT_ICON; |
30 | 30 | import static fiji.plugin.trackmate.helper.ui.components.GuiUtils.HELPER_ICON; |
| 31 | +import static fiji.plugin.trackmate.helper.ui.components.GuiUtils.HELPER_ICON_16x16; |
31 | 32 |
|
32 | 33 | import java.awt.BorderLayout; |
33 | 34 | import java.awt.Desktop; |
|
46 | 47 |
|
47 | 48 | import javax.swing.Box; |
48 | 49 | import javax.swing.BoxLayout; |
| 50 | +import javax.swing.ImageIcon; |
49 | 51 | import javax.swing.JButton; |
50 | 52 | import javax.swing.JCheckBox; |
51 | 53 | import javax.swing.JLabel; |
@@ -133,15 +135,15 @@ public ParameterSweepPanel( |
133 | 135 | tabbedPane.addTab( "Log", null, panelLog, null ); |
134 | 136 |
|
135 | 137 | final CrawlerResultsPanel bestParamsPanel = new CrawlerResultsPanel( crawler, imp ); |
136 | | - tabbedPane.addTab( "Best params", HELPER_ICON, bestParamsPanel, null ); |
| 138 | + tabbedPane.addTab( "Best params", HELPER_ICON_16x16, bestParamsPanel, null ); |
137 | 139 |
|
138 | 140 | panelSpotFilters = new SpotFilterConfigPanel( Spot.QUALITY, imp, model ); |
139 | 141 | tabbedPane.addTab( "Spot filters", Icons.SPOT_ICON_16x16, panelSpotFilters, null ); |
140 | 142 | // Enabler. |
141 | 143 | enablers.add( new EverythingDisablerAndReenabler( panelSpotFilters, new Class[] { JLabel.class } ) ); |
142 | 144 |
|
143 | 145 | panelTrackFilters = new TrackFilterConfigPanel( TrackBranchingAnalyzer.NUMBER_SPOTS, imp, model ); |
144 | | - tabbedPane.addTab( "Track filters", Icons.TRACK_ICON_64x64, panelTrackFilters, null ); |
| 146 | + tabbedPane.addTab( "Track filters", Icons.TRACK_SCHEME_ICON_16x16, panelTrackFilters, null ); |
145 | 147 | // Enabler. |
146 | 148 | enablers.add( new EverythingDisablerAndReenabler( panelTrackFilters, new Class[] { JLabel.class } ) ); |
147 | 149 |
|
@@ -274,7 +276,8 @@ public void mouseClicked( final java.awt.event.MouseEvent e ) |
274 | 276 | final ActionListener al = l -> { |
275 | 277 | if ( chkbox.isSelected() ) |
276 | 278 | { |
277 | | - tabbedPane.addTab( name, dm.getIcon(), panel, null ); |
| 279 | + final ImageIcon smallIcon = fiji.plugin.trackmate.gui.GuiUtils.scaleImage( dm.getIcon(), 16, 16 ); |
| 280 | + tabbedPane.addTab( name, smallIcon, panel, null ); |
278 | 281 | model.setActive( name, true ); |
279 | 282 | } |
280 | 283 | else |
|
0 commit comments