Changeset 13195 for trunk/gli/src/org/greenstone/gatherer/gui
- Timestamp:
- 2006-10-30T15:39:10+13:00 (18 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/ExportAsPrompt.java
r13076 r13195 185 185 186 186 saveas_combobox = new JComboBox(saveas_formats.toArray()); 187 saveas_combobox.setOpaque(false); 187 188 saveas_combobox.setToolTipText(Dictionary.get("ExportAsPrompt.SaveAs_Tooltip")); 188 189 -
trunk/gli/src/org/greenstone/gatherer/gui/GComboBox.java
r12823 r13195 42 42 import javax.swing.plaf.basic.*; 43 43 import org.greenstone.gatherer.Configuration; 44 import org.greenstone.gatherer.util.Utility; 44 45 45 46 /** … … 62 63 super(); 63 64 init(); 65 setOpaque(!Utility.isMac()); 64 66 } 65 67 66 68 public GComboBox(boolean editable) { 67 69 super(); 68 setEditable(editable); 69 init(); 70 setOpaque(!Utility.isMac()); 71 setEditable(editable); 72 init(); 73 70 74 } 71 75 72 76 public GComboBox(ArrayList data) { 73 77 super(data.toArray()); 78 setOpaque(!Utility.isMac()); 74 79 init(); 75 80 } … … 77 82 public GComboBox(ArrayList data, boolean editable) { 78 83 super(data.toArray()); 84 setOpaque(!Utility.isMac()); 79 85 setEditable(editable); 80 86 init(); … … 83 89 public GComboBox(ArrayList data, boolean editable, boolean sorted) { 84 90 super(data.toArray()); 91 setOpaque(!Utility.isMac()); 85 92 setEditable(editable); 86 93 setSorted(sorted); … … 90 97 public GComboBox(ComboBoxModel model) { 91 98 super(model); 99 setOpaque(!Utility.isMac()); 92 100 init(); 93 101 } … … 95 103 public GComboBox(ComboBoxModel model, boolean editable) { 96 104 super(model); 105 setOpaque(!Utility.isMac()); 97 106 setEditable(editable); 98 107 init(); … … 101 110 public GComboBox(Object data[]) { 102 111 super(data); 112 setOpaque(!Utility.isMac()); 103 113 init(); 104 114 } … … 106 116 public GComboBox(Object data[], boolean editable) { 107 117 super(data); 118 setOpaque(!Utility.isMac()); 108 119 setEditable(editable); 109 120 init(); … … 112 123 public GComboBox(Object data[], boolean editable, boolean sorted) { 113 124 super(data); 125 setOpaque(!Utility.isMac()); 114 126 setEditable(editable); 115 127 setSorted(sorted); … … 119 131 public GComboBox(Vector data) { 120 132 super(data); 133 setOpaque(!Utility.isMac()); 121 134 init(); 122 135 } … … 124 137 public GComboBox(Vector data, boolean editable) { 125 138 super(data); 139 setOpaque(!Utility.isMac()); 126 140 setEditable(editable); 127 141 init(); -
trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java
r12300 r13195 143 143 JLabel base_collection_label = new JLabel(Dictionary.get("NewCollectionPrompt.Base_Collection")); 144 144 base_collection = new JComboBox(base_collection_model); 145 base_collection.setOpaque(false); 145 146 base_collection.setToolTipText(Dictionary.get("NewCollectionPrompt.Base_Collection_Tooltip")); 146 147 … … 333 334 title_final = title.getText(); 334 335 if(title_final.length() == 0) { 335 JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE); 336 JOptionPane jOptionPane=new JOptionPane(); 337 jOptionPane.setOpaque(!Utility.isMac()); 338 jOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE); 336 339 return; 337 340 } … … 339 342 else { 340 343 if(titleClashes(title_final, null)) { 341 if (JOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Clash"), Dictionary.get("General.Warning"), JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION) { 344 JOptionPane jOptionPane=new JOptionPane(); 345 jOptionPane.setOpaque(!Utility.isMac()); 346 if (jOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Clash"), Dictionary.get("General.Warning"), JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION) { 342 347 return; 343 348 } -
trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java
r12745 r13195 230 230 // what should we do if Gatherer.servlet_config.getSites() is null? 231 231 site_combobox = new JComboBox(Gatherer.servlet_config.getSites().toArray()); 232 site_combobox.setOpaque(false); 232 233 site_combobox.setToolTipText(Dictionary.get("Preferences.Connection.Site_Tooltip")); 233 234 … … 237 238 servlet_label.setPreferredSize(LABEL_SIZE); 238 239 servlet_combobox = new JComboBox(); 240 servlet_combobox.setOpaque(false); 239 241 // try to locate and select the current site 240 242 String this_site = Configuration.site_name; … … 424 426 425 427 language_combobox = new JComboBox(dictionary_model.toArray()); 428 language_combobox.setOpaque(false); 426 429 language_combobox.setToolTipText(Dictionary.get("Preferences.General.Interface_Language_Tooltip")); 427 430 … … 598 601 JLabel predefined_label = new JLabel(Dictionary.get("Preferences.Workflow.Predefined.Label")); 599 602 JComboBox predefined_combobox = new JComboBox(predefined); 600 603 predefined_combobox.setOpaque(false); 601 604 // Connection 602 605 predefined_combobox.addActionListener(new PredefinedActionListener()); -
trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/AutofilterDialog.java
r12115 r13195 125 125 JLabel value_label = new JLabel(Dictionary.get("Autofilter.eqeq")); 126 126 value = new JComboBox(); 127 value.setOpaque(false); 127 128 value.setEditable(false); 128 129 JPanel custom_pane = new JPanel(); … … 130 131 JPanel first_pane = new JPanel(); 131 132 first_method = new JComboBox(); 133 first_method.setOpaque(false); 132 134 first_value = new JComboBox(); 135 first_value.setOpaque(false); 133 136 first_value.setEditable(true); 134 137 first_value.addItem(""); … … 151 154 JPanel second_pane = new JPanel(); 152 155 second_method = new JComboBox(); 156 second_method.setOpaque(false); 153 157 second_method.setEnabled(false); 154 158 second_value = new JComboBox(); 159 second_value.setOpaque(false); 155 160 second_value.setEditable(true); 156 161 second_value.setEnabled(false);
Note:
See TracChangeset
for help on using the changeset viewer.