Changeset 10011 for trunk/gli/src/org/greenstone/gatherer/gui
- Timestamp:
- 2005-06-03T15:21:06+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/gui
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/AboutDialog.java
r9647 r10011 35 35 import javax.swing.*; 36 36 import org.greenstone.gatherer.Dictionary; 37 import org.greenstone.gatherer.util.JarTools; 37 38 import org.greenstone.gatherer.util.Utility; 38 39 … … 59 60 * @see org.greenstone.gatherer.gui.AboutDialog.CloseButtonListener 60 61 * @see org.greenstone.gatherer.gui.GLIButton 61 * @see org.greenstone.gatherer.util.Utility#getImage62 62 * @see org.greenstone.gatherer.util.Utility#PROGRAM_NAME 63 63 * @see org.greenstone.gatherer.util.Utility#PROGRAM_VERSION … … 70 70 JPanel content_pane = (JPanel) getContentPane(); 71 71 JPanel upper_pane = new JPanel(); 72 ImageIcon icon = Utility.getImage("gatherer_medium.gif");72 ImageIcon icon = JarTools.getImage("gatherer_medium.gif"); 73 73 ImageIcon scaled_icon = new ImageIcon(icon.getImage().getScaledInstance(ICON_SIZE, ICON_SIZE, Image.SCALE_DEFAULT)); 74 74 JLabel icon_label = new JLabel(scaled_icon); -
trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java
r9801 r10011 58 58 import org.greenstone.gatherer.gui.metaaudit.MetaAuditFrame; 59 59 import org.greenstone.gatherer.gui.tree.DragTree; 60 import org.greenstone.gatherer.util.JarTools; 60 61 import org.greenstone.gatherer.util.StaticStrings; 61 62 import org.greenstone.gatherer.util.TreeSynchronizer; … … 324 325 325 326 // Pretty corner icon 326 this.setIconImage( Utility.getImage("gatherer_small.gif").getImage());327 this.setIconImage(JarTools.getImage("gatherer_small.gif").getImage()); 327 328 // BorderLayout for the main screen. I'll try my best to avoid these in subcomponents as they're space greedy. 328 329 content_pane.setLayout(new BorderLayout()); … … 344 345 download_pane = new DownloadPane(); 345 346 // "GUI.Download_Tooltip" is used automatically 346 tab_pane.addTab("GUI.Download", Utility.getImage("download.gif"), download_pane);347 tab_pane.addTab("GUI.Download", JarTools.getImage("download.gif"), download_pane); 347 348 tab_pane.setEnabledAt(tab_pane.indexOfComponent(download_pane), Configuration.get("workflow.download", false)); 348 349 } … … 352 353 if(Configuration.get("workflow.gather", true)) { 353 354 // "GUI.Gather_Tooltip" is used automatically 354 tab_pane.addTab("GUI.Gather", Utility.getImage("gather.gif"), gather_pane);355 tab_pane.addTab("GUI.Gather", JarTools.getImage("gather.gif"), gather_pane); 355 356 tab_pane.setEnabledAt(tab_pane.indexOfComponent(gather_pane), Configuration.get("workflow.gather", false)); 356 357 } … … 360 361 if(Configuration.get("workflow.enrich", true)) { 361 362 // "GUI.Enrich_Tooltip" is used automatically 362 tab_pane.addTab("GUI.Enrich", Utility.getImage("enrich.gif"), enrich_pane);363 tab_pane.addTab("GUI.Enrich", JarTools.getImage("enrich.gif"), enrich_pane); 363 364 tab_pane.setEnabledAt(tab_pane.indexOfComponent(enrich_pane), false); 364 365 } … … 368 369 if(Configuration.get("workflow.design", true)) { 369 370 // "GUI.Design_Tooltip" is used automatically 370 tab_pane.addTab("GUI.Design", Utility.getImage("design.gif"), design_pane);371 tab_pane.addTab("GUI.Design", JarTools.getImage("design.gif"), design_pane); 371 372 tab_pane.setEnabledAt(tab_pane.indexOfComponent(design_pane), false); 372 373 } … … 376 377 if(Configuration.get("workflow.create", true)) { 377 378 // "GUI.Create_Tooltip" is used automatically 378 tab_pane.addTab("GUI.Create", Utility.getImage("create.gif"), create_pane);379 tab_pane.addTab("GUI.Create", JarTools.getImage("create.gif"), create_pane); 379 380 tab_pane.setEnabledAt(tab_pane.indexOfComponent(create_pane), false); 380 381 } -
trunk/gli/src/org/greenstone/gatherer/gui/GatherPane.java
r9855 r10011 61 61 import org.greenstone.gatherer.util.DragComponent; 62 62 import org.greenstone.gatherer.util.DragGroup; 63 import org.greenstone.gatherer.util.JarTools; 63 64 import org.greenstone.gatherer.util.TreeSynchronizer; 64 65 import org.greenstone.gatherer.util.Utility; … … 142 143 Dictionary.registerBoth(stop_action, "Collection.Stop", "Collection.Stop_Tooltip"); 143 144 144 new_folder = new GLIButton( Utility.getImage("folder.gif"));145 new_folder = new GLIButton(JarTools.getImage("folder.gif")); 145 146 new_folder.addActionListener(this); 146 147 new_folder.setEnabled(false); -
trunk/gli/src/org/greenstone/gatherer/gui/HelpFrame.java
r10009 r10011 47 47 import org.greenstone.gatherer.DebugStream; 48 48 import org.greenstone.gatherer.Dictionary; 49 import org.greenstone.gatherer.util.JarTools; 49 50 import org.greenstone.gatherer.util.StaticStrings; 50 51 import org.greenstone.gatherer.util.Utility; … … 109 110 110 111 // Pretty corner icon 111 this.setIconImage( Utility.getImage("gatherer_small.gif").getImage());112 this.setIconImage(JarTools.getImage("gatherer_small.gif").getImage()); 112 113 113 114 self = this; -
trunk/gli/src/org/greenstone/gatherer/gui/LockFileDialog.java
r9036 r10011 43 43 import org.greenstone.gatherer.Configuration; 44 44 import org.greenstone.gatherer.Dictionary; 45 import org.greenstone.gatherer.util. Utility;45 import org.greenstone.gatherer.util.JarTools; 46 46 import org.greenstone.gatherer.util.XMLTools; 47 47 import org.w3c.dom.*; … … 76 76 JPanel content_pane = (JPanel) getContentPane(); 77 77 JPanel upper_pane = new JPanel(); 78 ImageIcon icon = Utility.getImage("lcolicn.gif");78 ImageIcon icon = JarTools.getImage("lcolicn.gif"); 79 79 ImageIcon scaled_icon = new ImageIcon(icon.getImage().getScaledInstance(ICON_SIZE, ICON_SIZE, Image.SCALE_DEFAULT)); 80 80 JLabel icon_label = new JLabel(scaled_icon); -
trunk/gli/src/org/greenstone/gatherer/gui/MetadataValueTablePane.java
r9856 r10011 44 44 import org.greenstone.gatherer.metadata.MetadataValueTableModel; 45 45 import org.greenstone.gatherer.metadata.MetadataXMLFileManager; 46 import org.greenstone.gatherer.util.JarTools; 46 47 import org.greenstone.gatherer.util.Utility; 47 48 … … 322 323 // First column: inherited metadata icon 323 324 if (column == 0 && value != null) { 324 component = new JLabel( Utility.getImage("upfolder.gif"));325 component = new JLabel(JarTools.getImage("upfolder.gif")); 325 326 } 326 327 -
trunk/gli/src/org/greenstone/gatherer/gui/OpenCollectionDialog.java
r8240 r10011 49 49 import org.greenstone.gatherer.collection.BasicCollectionConfiguration; 50 50 import org.greenstone.gatherer.collection.CollectionManager; 51 import org.greenstone.gatherer.util.JarTools; 51 52 import org.greenstone.gatherer.util.StaticStrings; 52 53 import org.greenstone.gatherer.util.Utility; … … 54 55 public class OpenCollectionDialog 55 56 extends JFileChooser { 56 static final private ImageIcon LOCKED_COLLECTION_ICON = Utility.getImage("lcolicn.gif");57 static final private ImageIcon NORMAL_COLLECTION_ICON = Utility.getImage("ncolicn.gif");57 static final private ImageIcon LOCKED_COLLECTION_ICON = JarTools.getImage("lcolicn.gif"); 58 static final private ImageIcon NORMAL_COLLECTION_ICON = JarTools.getImage("ncolicn.gif"); 58 59 /** The name of the mouse listener that initiates editing on a double click. */ 59 60 static final private String SINGLE_CLICK_LISTENER = "SingleClickListener"; -
trunk/gli/src/org/greenstone/gatherer/gui/WarningDialog.java
r9864 r10011 33 33 import org.greenstone.gatherer.Dictionary; 34 34 import org.greenstone.gatherer.Gatherer; 35 import org.greenstone.gatherer.util. Utility;35 import org.greenstone.gatherer.util.JarTools; 36 36 37 37 … … 74 74 JPanel content_pane = (JPanel) getContentPane(); 75 75 JPanel text_pane = new JPanel(); 76 JLabel icon_label = new JLabel( Utility.getImage("gatherer_medium.gif"));76 JLabel icon_label = new JLabel(JarTools.getImage("gatherer_medium.gif")); 77 77 78 78 JTextArea text_area = new JTextArea(); -
trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/HeaderRenderer.java
r8243 r10011 41 41 import javax.swing.table.TableCellRenderer; 42 42 import org.greenstone.gatherer.Dictionary; 43 import org.greenstone.gatherer.util. Utility;43 import org.greenstone.gatherer.util.JarTools; 44 44 45 45 /** This custom button renderer replaces the boring old column headers with clickable versions which are based on JToggleButtons. … … 52 52 53 53 /** The constructor sets up a margin around the button, and adds the filter icons. 54 * @see org.greenstone.gatherer.util.Utility55 54 */ 56 55 public HeaderRenderer() { 57 56 setMargin(new Insets(0,0,0,0)); 58 setIcon( Utility.getImage("filter.gif"));59 setSelectedIcon( Utility.getImage("filter-on.gif"));57 setIcon(JarTools.getImage("filter.gif")); 58 setSelectedIcon(JarTools.getImage("filter-on.gif")); 60 59 } 61 60
Note:
See TracChangeset
for help on using the changeset viewer.