88 * it under the terms of the GNU General Public License as
99 * published by the Free Software Foundation, either version 3 of the
1010 * License, or (at your option) any later version.
11- *
11+ *
1212 * This program is distributed in the hope that it will be useful,
1313 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1414 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1515 * GNU General Public License for more details.
16- *
16+ *
1717 * You should have received a copy of the GNU General Public
1818 * License along with this program. If not, see
1919 * <http://www.gnu.org/licenses/gpl-3.0.html>.
2929
3030import org .scijava .Cancelable ;
3131
32- import fiji .plugin .trackmate .gui .Icons ;
3332import fiji .plugin .trackmate .helper .HelperRunner ;
3433import fiji .plugin .trackmate .helper .HelperRunner .Builder ;
3534import fiji .plugin .trackmate .helper .ResultsCrawler ;
3635import fiji .plugin .trackmate .helper .model .ParameterSweepModel ;
3736import fiji .plugin .trackmate .helper .model .ParameterSweepModelIO ;
37+ import fiji .plugin .trackmate .helper .ui .components .GuiUtils ;
3838import fiji .plugin .trackmate .util .EverythingDisablerAndReenabler ;
3939import ij .ImagePlus ;
4040
@@ -79,7 +79,7 @@ public void windowClosing( final java.awt.event.WindowEvent e )
7979 crawler .stopWatching ();
8080 }
8181 } );
82- frame .setIconImage ( Icons . TRACKMATE_ICON .getImage () );
82+ frame .setIconImage ( GuiUtils . HELPER_ICON_BIG .getImage () );
8383 frame .getContentPane ().add ( gui );
8484 frame .setSize ( 600 , 700 );
8585 frame .setLocationRelativeTo ( null );
@@ -97,7 +97,7 @@ private void resetParameters()
9797 + "<p>"
9898 + "and relaunching this user interface. Are you sure?" ;
9999 final String title = "Reset parameters" ;
100- final int answer = JOptionPane .showConfirmDialog ( frame , toHtml ( msg ), title , JOptionPane .YES_NO_OPTION , JOptionPane .WARNING_MESSAGE , Icons . TRACKMATE_ICON );
100+ final int answer = JOptionPane .showConfirmDialog ( frame , toHtml ( msg ), title , JOptionPane .YES_NO_OPTION , JOptionPane .WARNING_MESSAGE , GuiUtils . HELPER_ICON );
101101 if ( answer != JOptionPane .YES_OPTION )
102102 return ;
103103
@@ -108,7 +108,7 @@ private void resetParameters()
108108 if ( file .exists () )
109109 {
110110 final String msg2 = "Could not delete the file: " + file ;
111- JOptionPane .showMessageDialog ( frame , toHtml ( msg2 ), title , JOptionPane .ERROR_MESSAGE , Icons . TRACKMATE_ICON );
111+ JOptionPane .showMessageDialog ( frame , toHtml ( msg2 ), title , JOptionPane .ERROR_MESSAGE , GuiUtils . HELPER_ICON );
112112 return ;
113113 }
114114
@@ -132,7 +132,7 @@ private void resetParameters()
132132 if ( newRunner == null )
133133 {
134134 final String msg3 = builder .getErrorMessage ();
135- JOptionPane .showMessageDialog ( frame , toHtml ( msg3 ), title , JOptionPane .ERROR_MESSAGE , Icons . TRACKMATE_ICON );
135+ JOptionPane .showMessageDialog ( frame , toHtml ( msg3 ), title , JOptionPane .ERROR_MESSAGE , GuiUtils . HELPER_ICON );
136136 return ;
137137 }
138138
0 commit comments