- Timestamp:
- 2004-10-07T16:44:32+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/NewMetaSetPrompt.java
r7998 r8231 43 43 import javax.swing.event.*; 44 44 import javax.swing.text.*; 45 import org.greenstone.gatherer.Configuration; 45 46 import org.greenstone.gatherer.Dictionary; 46 47 import org.greenstone.gatherer.Gatherer; … … 70 71 // Creation 71 72 JPanel content_pane = (JPanel) getContentPane(); 72 content_pane.setBackground( Gatherer.config.getColor("coloring.collection_heading_background", false));73 content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false)); 73 74 JPanel center_pane = new JPanel(); 74 75 center_pane.setOpaque(false); … … 81 82 Dictionary.setText(name_label, "MEM.Name"); 82 83 name_field = new JTextField(); 83 name_field.setBackground( Gatherer.config.getColor("coloring.collection_tree_background", false));84 name_field.setForeground( Gatherer.config.getColor("coloring.collection_tree_foreground", false));85 name_field.setSelectionColor( Gatherer.config.getColor("coloring.collection_selection_background", false));86 name_field.setSelectedTextColor( Gatherer.config.getColor("coloring.collection_selection_foreground", false));84 name_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 85 name_field.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false)); 86 name_field.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false)); 87 name_field.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false)); 87 88 Dictionary.setTooltip(name_field, "MEM.Set_Name_Tooltip"); 88 89 … … 94 95 Dictionary.setText(namespace_label, "MEM.Namespace"); 95 96 namespace_field = new JTextField(); 96 namespace_field.setBackground( Gatherer.config.getColor("coloring.collection_tree_background", false));97 namespace_field.setForeground( Gatherer.config.getColor("coloring.collection_tree_foreground", false));98 namespace_field.setSelectionColor( Gatherer.config.getColor("coloring.collection_selection_background", false));99 namespace_field.setSelectedTextColor( Gatherer.config.getColor("coloring.collection_selection_foreground", false));97 namespace_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 98 namespace_field.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false)); 99 namespace_field.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false)); 100 namespace_field.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false)); 100 101 Dictionary.setTooltip(namespace_field, "MEM.Set_Namespace_Tooltip"); 101 102 … … 143 144 content_pane.add(button_pane, BorderLayout.SOUTH); 144 145 145 setLocation(( Gatherer.config.screen_size.width - ADD_SET_SIZE.width) / 2, (Gatherer.config.screen_size.height - ADD_SET_SIZE.height) / 2);146 setLocation((Configuration.screen_size.width - ADD_SET_SIZE.width) / 2, (Configuration.screen_size.height - ADD_SET_SIZE.height) / 2); 146 147 setVisible(true); 147 148 }
Note:
See TracChangeset
for help on using the changeset viewer.