- Timestamp:
- 2009-01-22T11:04:31+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/cdm/BuildTypeManager.java
r13073 r18412 103 103 public BuildTypeControl() { 104 104 super(); 105 105 this.setComponentOrientation(Dictionary.getOrientation()); 106 106 107 JPanel spacer_panel = new JPanel(); 107 108 spacer_panel.setComponentOrientation(Dictionary.getOrientation()); 109 108 110 JPanel main_panel = new JPanel(); 111 main_panel.setComponentOrientation(Dictionary.getOrientation()); 109 112 /* may be CDM.BuildTypeManager.mg, CDM.BuildTYpeManager.mgpp, CDM.BuildTypeManager.lucene */ 110 113 label = new JLabel(Dictionary.get("CDM.BuildTypeManager.Current_Type", getBuildTypeString(getBuildType()))); 111 change_button = new GLIButton(Dictionary.get("CDM.BuildTypeManager.Change"), Dictionary.get("CDM.BuildTypeManager.Change_Tooltip")); 114 label.setComponentOrientation(Dictionary.getOrientation()); 115 116 change_button = new GLIButton(Dictionary.get("CDM.BuildTypeManager.Change"), Dictionary.get("CDM.BuildTypeManager.Change_Tooltip")); 112 117 113 118 change_button.addActionListener(new ActionListener() { … … 119 124 main_panel.setLayout(new BorderLayout(10,10)); 120 125 main_panel.add(label, BorderLayout.CENTER); 121 main_panel.add(change_button, BorderLayout. EAST);126 main_panel.add(change_button, BorderLayout.LINE_END); 122 127 123 128 setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 124 129 setLayout(new BorderLayout()); 125 130 add(spacer_panel, BorderLayout.CENTER); 126 add(main_panel, BorderLayout. EAST);131 add(main_panel, BorderLayout.LINE_END); 127 132 128 133 manager.addBuildTypeListener(this); … … 171 176 setSize(DIALOG_SIZE); 172 177 setTitle(Dictionary.get("CDM.BuildTypeManager.Title")); 173 178 this.setComponentOrientation(Dictionary.getOrientation()); 174 179 mg_button = new JRadioButton(BUILD_TYPE_MG_STR); 180 mg_button.setComponentOrientation(Dictionary.getOrientation()); 175 181 mg_button.setActionCommand(BUILD_TYPE_MG); 176 182 mgpp_button = new JRadioButton(BUILD_TYPE_MGPP_STR); 183 mgpp_button.setComponentOrientation(Dictionary.getOrientation()); 177 184 mgpp_button.setActionCommand(BUILD_TYPE_MGPP); 178 185 lucene_button = new JRadioButton(BUILD_TYPE_LUCENE_STR); 186 lucene_button.setComponentOrientation(Dictionary.getOrientation()); 179 187 lucene_button.setActionCommand(BUILD_TYPE_LUCENE); 180 188 … … 188 196 build_type_group.add(mg_button); 189 197 build_type_group.add(lucene_button); 190 198 191 199 if (current_build_type != null) { 192 200 if (current_build_type.equals(BUILD_TYPE_MGPP)) { … … 204 212 radio_pane.add(mg_button); 205 213 radio_pane.add(lucene_button); 206 214 radio_pane.setComponentOrientation(Dictionary.getOrientation()); 215 207 216 description_textarea = new JTextArea(); 208 217 description_textarea.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); … … 211 220 description_textarea.setLineWrap(true); 212 221 description_textarea.setWrapStyleWord(true); 213 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); 222 description_textarea.setComponentOrientation(Dictionary.getOrientation()); 223 224 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); 214 225 215 226 cancel_button.addActionListener(new ActionListener() { … … 244 255 button_pane.add(ok_button); 245 256 button_pane.add(cancel_button); 246 257 button_pane.setComponentOrientation(Dictionary.getOrientation()); 258 247 259 JPanel content_pane = (JPanel) getContentPane(); 248 260 content_pane.setOpaque(true); … … 251 263 content_pane.add(new JScrollPane(description_textarea), BorderLayout.CENTER); 252 264 content_pane.add(button_pane, BorderLayout.SOUTH); 253 265 content_pane.setComponentOrientation(Dictionary.getOrientation()); 266 254 267 // Center and display. 255 268 Dimension screen_size = Configuration.screen_size;
Note:
See TracChangeset
for help on using the changeset viewer.