Changeset 10012 for trunk/gli/src/org/greenstone/gatherer/gui
- Timestamp:
- 2005-06-03T15:36:09+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/MenuBar.java
r9243 r10012 44 44 import org.greenstone.gatherer.Dictionary; 45 45 import org.greenstone.gatherer.Gatherer; 46 import org.greenstone.gatherer.util.JarTools; 46 47 import org.greenstone.gatherer.util.Utility; 47 48 … … 51 52 */ 52 53 public class MenuBar 53 extends JMenuBar { 54 extends JMenuBar 55 { 56 static public ImageIcon BLANK_ICON = JarTools.getImage("blank.gif"); 57 static public ImageIcon HELP_ICON = JarTools.getImage("help.gif"); 58 54 59 /** The icon to be displayed alongside the context choosen help file. */ 55 60 private int current_tab = -1; … … 180 185 // Help menu 181 186 help = new JMenu(); 182 help.setIcon( Utility.HELP_ICON);187 help.setIcon(HELP_ICON); 183 188 Dictionary.setText(help, "Menu.Help"); 184 189 … … 187 192 Dictionary.registerText(help_general, "Source.General"); 188 193 189 help_download = new JMenuItem( Utility.BLANK_ICON);194 help_download = new JMenuItem(BLANK_ICON); 190 195 help_download.addActionListener(Gatherer.g_man); 191 196 Dictionary.registerText(help_download, "GUI.Download"); 192 197 193 help_gather = new JMenuItem( Utility.BLANK_ICON);198 help_gather = new JMenuItem(BLANK_ICON); 194 199 help_gather.addActionListener(Gatherer.g_man); 195 200 Dictionary.registerText(help_gather, "GUI.Gather"); 196 201 197 help_enrich = new JMenuItem( Utility.BLANK_ICON);202 help_enrich = new JMenuItem(BLANK_ICON); 198 203 help_enrich.addActionListener(Gatherer.g_man); 199 204 Dictionary.registerText(help_enrich, "GUI.Enrich"); 200 205 201 help_design = new JMenuItem( Utility.BLANK_ICON);206 help_design = new JMenuItem(BLANK_ICON); 202 207 help_design.addActionListener(Gatherer.g_man); 203 208 Dictionary.registerText(help_design, "GUI.Design"); 204 209 205 help_create = new JMenuItem( Utility.BLANK_ICON);210 help_create = new JMenuItem(BLANK_ICON); 206 211 help_create.addActionListener(Gatherer.g_man); 207 212 Dictionary.registerText(help_create, "GUI.Create"); … … 265 270 selected = help.getItem(current_tab); 266 271 if(selected != null) { 267 selected.setIcon( Utility.BLANK_ICON);272 selected.setIcon(BLANK_ICON); 268 273 } 269 274 } … … 271 276 selected = help.getItem(current_tab); 272 277 if(selected != null) { 273 selected.setIcon( Utility.HELP_ICON);278 selected.setIcon(HELP_ICON); 274 279 } 275 280 selected = null; -
trunk/gli/src/org/greenstone/gatherer/gui/SimpleMenuBar.java
r8579 r10012 5 5 import javax.swing.*; 6 6 import org.greenstone.gatherer.Dictionary; 7 import org.greenstone.gatherer.util. Utility;7 import org.greenstone.gatherer.util.JarTools; 8 8 9 9 public class SimpleMenuBar … … 16 16 this.page_name = page_name; 17 17 JMenu help = new JMenu(); 18 help.setIcon( Utility.HELP_ICON);18 help.setIcon(JarTools.getImage("help.gif")); 19 19 Dictionary.setText(help, "Menu.Help"); 20 20
Note:
See TracChangeset
for help on using the changeset viewer.