- Timestamp:
- 2003-08-29T11:38:22+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/sarm/SearchAndReplace.java
r5183 r5350 137 137 setModal(false); 138 138 setSize(SIZE); 139 setTitle(get(" Title"));139 setTitle(get("SearchAndReplace.Title")); 140 140 setJMenuBar(new SimpleMenuBar("10.1")); 141 141 JPanel content_pane = (JPanel) getContentPane(); … … 144 144 145 145 JPanel search_pane = new JPanel(); 146 JLabel search_label = new JLabel(get("Search "));146 JLabel search_label = new JLabel(get("SearchAndReplace.Search")); 147 147 search_label.setPreferredSize(LABEL_SIZE); 148 148 search = new JTextField(""); 149 149 150 150 JPanel replace_pane = new JPanel(); 151 JLabel replace_label = new JLabel(get(" Replace"));151 JLabel replace_label = new JLabel(get("SearchAndReplace.Replace")); 152 152 replace_label.setPreferredSize(LABEL_SIZE); 153 153 replace = new JTextField(""); … … 158 158 159 159 JPanel options_pane = new JPanel(); 160 JLabel options_label = new JLabel(get(" Options"));160 JLabel options_label = new JLabel(get("SearchAndReplace.Options")); 161 161 options_label.setPreferredSize(LABEL_SIZE); 162 162 JPanel inner_options_pane = new JPanel(); 163 case_sensitive = new JCheckBox(get(" Case_Sensitive"));164 regular_expression = new JCheckBox(get(" Regular_Expression"));163 case_sensitive = new JCheckBox(get("SearchAndReplace.Case_Sensitive")); 164 regular_expression = new JCheckBox(get("SearchAndReplace.Regular_Expression")); 165 165 166 166 JPanel options2_pane = new JPanel(); 167 JLabel options2_label = new JLabel(get("Search _In"));167 JLabel options2_label = new JLabel(get("SearchAndReplace.Search_In")); 168 168 options2_label.setPreferredSize(LABEL_SIZE); 169 169 JPanel inner_options2_pane = new JPanel(); 170 search_elements = new JCheckBox(get("Search _Elements"));170 search_elements = new JCheckBox(get("SearchAndReplace.Search_Elements")); 171 171 search_elements.setSelected(true); 172 search_records = new JCheckBox(get("Search _Records"));172 search_records = new JCheckBox(get("SearchAndReplace.Search_Records")); 173 173 search_records.setSelected(true); 174 search_values = new JCheckBox(get("Search _Values"));174 search_values = new JCheckBox(get("SearchAndReplace.Search_Values")); 175 175 search_values.setSelected(true); 176 176 177 177 JPanel results_pane = new JPanel(); 178 status = new JLabel(get("S tatus"));178 status = new JLabel(get("SearchAndReplace.Status")); 179 179 180 180 JPanel buttons_pane = new JPanel(); 181 find_button = new JButton(get(" Find_Button"));181 find_button = new JButton(get("SearchAndReplace.Find_Button")); 182 182 find_button.setMnemonic(KeyEvent.VK_F); 183 find_next_button = new JButton(get(" Find_Next_Button"));183 find_next_button = new JButton(get("SearchAndReplace.Find_Next_Button")); 184 184 find_next_button.setEnabled(false); 185 185 find_next_button.setMnemonic(KeyEvent.VK_N); 186 replace_button = new JButton(get(" Replace_Button"));186 replace_button = new JButton(get("SearchAndReplace.Replace_Button")); 187 187 replace_button.setEnabled(false); 188 188 replace_button.setMnemonic(KeyEvent.VK_R); 189 replace_all_button = new JButton(get(" Replace_All_Button"));189 replace_all_button = new JButton(get("SearchAndReplace.Replace_All_Button")); 190 190 replace_all_button.setEnabled(false); 191 191 replace_all_button.setMnemonic(KeyEvent.VK_N); 192 reset_button = new JButton(get(" Reset"));192 reset_button = new JButton(get("SearchAndReplace.Reset")); 193 193 reset_button.setEnabled(false); 194 194 reset_button.setMnemonic(KeyEvent.VK_ESCAPE); 195 undo_button = new JButton(get(" Undo"));195 undo_button = new JButton(get("SearchAndReplace.Undo")); 196 196 undo_button.setEnabled(false); 197 197 undo_button.setMnemonic(KeyEvent.VK_U); 198 redo_button = new JButton(get(" Redo"));198 redo_button = new JButton(get("SearchAndReplace.Redo")); 199 199 redo_button.setEnabled(false); 200 200 redo_button.setMnemonic(KeyEvent.VK_D); … … 293 293 if(key != null) { 294 294 args[0] = search.getText(); 295 status.setText(get("S tatus") + ": " + get(key, args));295 status.setText(get("SearchAndReplace.Status") + ": " + get(key, args)); 296 296 } 297 297 else { 298 status.setText(get("S tatus"));298 status.setText(get("SearchAndReplace.Status")); 299 299 } 300 300 }
Note:
See TracChangeset
for help on using the changeset viewer.