Changeset 18370
- Timestamp:
- 2009-01-12T13:04:29+13:00 (15 years ago)
- Location:
- gli/trunk/src/org/greenstone/gatherer
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/Dictionary.java
r12295 r18370 37 37 package org.greenstone.gatherer; 38 38 39 import java.awt.ComponentOrientation; 39 40 import javax.swing.plaf.FontUIResource; 40 41 import java.util.HashMap; … … 74 75 Loaded from a file named "dictionary<I>locale</I>.properties. */ 75 76 static private ResourceBundle dictionary = null; 76 77 77 /** language orientation property */ 78 static private ComponentOrientation orientation = null; 79 78 80 public Dictionary(Locale locale, FontUIResource font) 79 81 { … … 84 86 this.locale = ((locale == null) ? Locale.getDefault() : locale); 85 87 this.dictionary = ResourceBundle.getBundle("dictionary", this.locale); 86 } 87 88 88 if (this.get("Component.Orientation").equals("RTL")){ 89 this.orientation = ComponentOrientation.RIGHT_TO_LEFT; 90 } else { 91 this.orientation = ComponentOrientation.LEFT_TO_RIGHT; 92 } 93 94 } 95 89 96 /** Retrieve the two letter code of the current language we are using, according to the stored locale. 90 97 * @return A <strong>String</strong> containing the two letter ISO639 language code. … … 94 101 return locale.getLanguage(); 95 102 } 96 97 103 /** returns the Components Orientation for use with right to left languages 104 * @return A <strong>ComponentOrientation</strong> with the current 105 dictionary's language orientation. 106 * by Amin Hejazi 107 */ 108 static public ComponentOrientation getOrientation() 109 { 110 return orientation; 111 } 112 98 113 static public String get(String key) 99 114 { 100 115 return get(key, (String[]) null); 101 116 } 102 103 117 104 118 static public String get(String key, String arg) -
gli/trunk/src/org/greenstone/gatherer/gui/AboutDialog.java
r17916 r18370 68 68 this.self = this; 69 69 setSize(SIZE); 70 70 this.setComponentOrientation(Dictionary.getOrientation()); 71 71 JPanel content_pane = (JPanel) getContentPane(); 72 content_pane.setComponentOrientation(Dictionary.getOrientation()); 73 72 74 JPanel upper_pane = new JPanel(); 73 75 upper_pane.setComponentOrientation(Dictionary.getOrientation()); 76 74 77 String gmedium_image = "gatherer_medium.gif"; 75 78 if (Configuration.fedora_info.isActive()) { … … 80 83 ImageIcon scaled_icon = new ImageIcon(icon.getImage().getScaledInstance(ICON_SIZE, ICON_SIZE, Image.SCALE_DEFAULT)); 81 84 JLabel icon_label = new JLabel(scaled_icon); 82 JPanel title_pane = new JPanel(); 83 JLabel title_one_label = new JLabel(Dictionary.get("AboutDialog.Title_One")); 84 JLabel title_two_label = new JLabel(Gatherer.PROGRAM_NAME + " " + Gatherer.PROGRAM_VERSION + " " + Dictionary.get("AboutDialog.Date")); 85 JLabel title_three_label = new JLabel(Dictionary.get("AboutDialog.Title_Two")); 86 JLabel copyright_label = new JLabel(Dictionary.get("AboutDialog.Copyright")); 87 JLabel gpl_label = new JLabel(Dictionary.get("AboutDialog.Copyright_Two")); 88 85 icon_label.setComponentOrientation(Dictionary.getOrientation()); 86 87 JPanel title_pane = new JPanel(); 88 title_pane.setComponentOrientation(Dictionary.getOrientation()); 89 90 JLabel title_one_label = new JLabel(Dictionary.get("AboutDialog.Title_One")); 91 title_one_label.setComponentOrientation(Dictionary.getOrientation()); 92 JLabel title_two_label = new JLabel(Gatherer.PROGRAM_NAME + " " + Gatherer.PROGRAM_VERSION + " " + Dictionary.get("AboutDialog.Date")); 93 title_two_label.setComponentOrientation(Dictionary.getOrientation()); 94 JLabel title_three_label = new JLabel(Dictionary.get("AboutDialog.Title_Two")); 95 title_three_label.setComponentOrientation(Dictionary.getOrientation()); 96 JLabel copyright_label = new JLabel(Dictionary.get("AboutDialog.Copyright")); 97 copyright_label.setComponentOrientation(Dictionary.getOrientation()); 98 JLabel gpl_label = new JLabel(Dictionary.get("AboutDialog.Copyright_Two")); 99 gpl_label.setComponentOrientation(Dictionary.getOrientation()); 100 89 101 JTextArea text = new JTextArea(); 102 text.setComponentOrientation(Dictionary.getOrientation()); 90 103 text.setLineWrap(true); 91 104 text.setWrapStyleWord(true); 92 105 106 93 107 JPanel button_pane = new JPanel(); 108 button_pane.setComponentOrientation(Dictionary.getOrientation()); 94 109 close_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip")); 95 110 … … 109 124 upper_pane.setBorder(BorderFactory.createEmptyBorder(0,0,5,0)); 110 125 upper_pane.setLayout(new BorderLayout()); 111 upper_pane.add(icon_label, BorderLayout. WEST);126 upper_pane.add(icon_label, BorderLayout.LINE_START); 112 127 upper_pane.add(title_pane, BorderLayout.CENTER); 113 128 114 129 button_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 115 130 button_pane.setLayout(new BorderLayout()); 116 button_pane.add(close_button, BorderLayout. EAST);131 button_pane.add(close_button, BorderLayout.LINE_END); 117 132 118 133 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); -
gli/trunk/src/org/greenstone/gatherer/gui/BaseConfigPane.java
r12805 r18370 75 75 DebugStream.println("BaseConfigPane: Main GUI components created."); 76 76 // Creation 77 this.setComponentOrientation(Dictionary.getOrientation()); 77 78 tree_pane = new JPanel(); 78 79 tree_pane.setComponentOrientation(Dictionary.getOrientation()); 80 79 81 tree = new DesignTree(); 80 82 tree.setComponentOrientation(Dictionary.getOrientation()); 81 83 // Connect 82 84 tree.addTreeSelectionListener(new TreeListener()); … … 85 87 tree_pane.setLayout(new BorderLayout()); 86 88 tree_pane.setPreferredSize(TREE_SIZE); 87 tree_pane.add(new JScrollPane(tree), BorderLayout.CENTER); 89 JScrollPane scrol_tmp; 90 scrol_tmp = new JScrollPane(tree); 91 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 92 tree_pane.add(scrol_tmp, BorderLayout.CENTER); 88 93 setLayout(new BorderLayout()); 89 94 setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 90 95 91 add(tree_pane, BorderLayout. WEST);96 add(tree_pane, BorderLayout.LINE_START); 92 97 93 98 -
gli/trunk/src/org/greenstone/gatherer/gui/CreatePane.java
r17940 r18370 167 167 */ 168 168 public CreatePane() { 169 this.setComponentOrientation(Dictionary.getOrientation()); 169 170 log_textarea = new JTextArea(); 170 171 log_scroll = new JScrollPane(log_textarea); 171 172 172 173 // Create components 173 174 card_layout = new CardLayout(); 174 175 // Control Pane 175 176 control_pane = new JPanel(); 177 control_pane.setComponentOrientation(Dictionary.getOrientation()); 176 178 tree = new OptionTree(); 179 tree.setComponentOrientation(Dictionary.getOrientation()); 177 180 button_pane = new JPanel(); 181 button_pane.setComponentOrientation(Dictionary.getOrientation()); 178 182 179 183 // Progress Pane 180 184 progress_pane = new JPanel(); // One owner of the bar component 185 progress_pane.setComponentOrientation(Dictionary.getOrientation()); 181 186 bar_area = new JPanel(); // This component will be shared about 187 bar_area.setComponentOrientation(Dictionary.getOrientation()); 182 188 183 189 progress_import_label = new JLabel(Dictionary.get("CreatePane.Import_Progress")); 184 190 progress_import_label.setComponentOrientation(Dictionary.getOrientation()); 191 185 192 import_monitor = new GImportProgressMonitor(); 186 193 Gatherer.c_man.registerImportMonitor(import_monitor); 187 194 188 195 progress_build_label = new JLabel(Dictionary.get("CreatePane.Build_Progress")); 189 196 progress_build_label.setComponentOrientation(Dictionary.getOrientation()); 197 190 198 build_monitor = new GBuildProgressMonitor(import_monitor.getSharedProgress()); 191 199 Gatherer.c_man.registerBuildMonitor(build_monitor); … … 202 210 sbutton_panel = new JPanel(); 203 211 sinner_panel = new JPanel(); 204 212 213 slower_panel.setComponentOrientation(Dictionary.getOrientation()); 214 sbutton_panel.setComponentOrientation(Dictionary.getOrientation()); 215 sinner_panel.setComponentOrientation(Dictionary.getOrientation()); 216 205 217 //Radio buttons 206 218 incremental_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Minimal_Build")); 219 incremental_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 207 220 incremental_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Minimal_Build_Tooltip")); 208 221 full_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Full_Build")); 222 full_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 209 223 full_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Full_Build_Tooltip")); 210 224 sincremental_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Minimal_Build")); 225 sincremental_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 211 226 sincremental_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Minimal_Build_Tooltip")); 212 227 sfull_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Full_Build")); 228 sfull_build_radio_button.setComponentOrientation(Dictionary.getOrientation()); 213 229 sfull_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Full_Build_Tooltip")); 214 230 … … 283 299 sbuild_type_group.add(sfull_build_radio_button); 284 300 JPanel build_type_pane = new JPanel(new GridLayout(2,1)); 301 build_type_pane.setComponentOrientation(Dictionary.getOrientation()); 285 302 build_type_pane.add(full_build_radio_button); 286 303 build_type_pane.add(incremental_build_radio_button); 287 304 JPanel sbuild_type_pane = new JPanel(new GridLayout(2,1)); 305 sbuild_type_pane.setComponentOrientation(Dictionary.getOrientation()); 288 306 sbuild_type_pane.add(sfull_build_radio_button); 289 307 sbuild_type_pane.add(sincremental_build_radio_button); … … 293 311 // Build control_pane 294 312 JPanel left = new JPanel(); 313 left.setComponentOrientation(Dictionary.getOrientation()); 295 314 left.setBorder(BorderFactory.createEmptyBorder(0,5,5,5)); 296 315 left.setLayout(new BorderLayout()); … … 300 319 301 320 right = new JPanel(); 321 right.setComponentOrientation(Dictionary.getOrientation()); 302 322 right.setBorder(BorderFactory.createEmptyBorder(0,0,5,5)); 303 323 right.setLayout(new BorderLayout()); 304 324 305 325 JPanel options_area = new JPanel(); 326 options_area.setComponentOrientation(Dictionary.getOrientation()); 306 327 options_area.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,5,5,5), BorderFactory.createTitledBorder(Dictionary.get("CreatePane.Options_Title")))); 307 328 options_area.setLayout(new BorderLayout()); 308 options_area.add(left, BorderLayout. WEST);329 options_area.add(left, BorderLayout.LINE_START); 309 330 options_area.add(right, BorderLayout.CENTER); 310 331 311 332 button_pane = new JPanel(); 333 button_pane.setComponentOrientation(Dictionary.getOrientation()); 312 334 button_pane.setBorder(BorderFactory.createEmptyBorder(5,10,10,10)); 313 335 button_pane.setLayout(new GridLayout(1,4)); … … 322 344 // Build progress_pane 323 345 JPanel labels_pane = new JPanel(); 346 labels_pane.setComponentOrientation(Dictionary.getOrientation()); 324 347 labels_pane.setLayout(new GridLayout(2,1,0,5)); 325 348 labels_pane.add(progress_import_label); … … 327 350 328 351 JPanel monitors_pane = new JPanel(); 352 monitors_pane.setComponentOrientation(Dictionary.getOrientation()); 329 353 monitors_pane.setLayout(new GridLayout(2,1,0,5)); 330 354 monitors_pane.add(import_monitor.getProgress()); … … 333 357 bar_area.setBorder(BorderFactory.createEmptyBorder(10,10,5,10)); 334 358 bar_area.setLayout(new BorderLayout(5,5)); 335 bar_area.add(labels_pane, BorderLayout. WEST);359 bar_area.add(labels_pane, BorderLayout.LINE_START); 336 360 bar_area.add(monitors_pane, BorderLayout.CENTER); 337 361 … … 351 375 352 376 JPanel simple_bar_area = new JPanel(new GridLayout(2,1)); 377 simple_bar_area.setComponentOrientation(Dictionary.getOrientation()); 353 378 simple_bar_area.setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 354 379 simple_bar_area.add(import_monitor.getSharedProgress()); … … 357 382 sinner_panel.setBorder(BorderFactory.createEmptyBorder(5,0,5,0)); 358 383 sinner_panel.setLayout(new BorderLayout()); 359 sinner_panel.add(sbuild_type_pane, BorderLayout. WEST);384 sinner_panel.add(sbuild_type_pane, BorderLayout.LINE_START); 360 385 //sinner_panel.add(full_build_radio_button, BorderLayout.WEST); 361 386 sinner_panel.add(simple_bar_area, BorderLayout.CENTER); … … 371 396 sargument_configuration_panel = new JPanel(); 372 397 } 398 sargument_configuration_panel.setComponentOrientation(Dictionary.getOrientation()); 373 399 sargument_configuration_scroll = new JScrollPane(sargument_configuration_panel); 374 400 sargument_configuration_scroll.setPreferredSize(ARGUMENT_SIZE); 375 401 sargument_configuration_scroll.setComponentOrientation(Dictionary.getOrientation()); 402 376 403 slower_panel.setLayout(new BorderLayout()); 377 404 slower_panel.add(sinner_panel, BorderLayout.NORTH); … … 381 408 382 409 simple_panel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, sargument_configuration_scroll, slower_panel); 410 simple_panel.setComponentOrientation(Dictionary.getOrientation()); 383 411 // Main pane 384 412 main_pane = new JPanel(card_layout); 413 main_pane.setComponentOrientation(Dictionary.getOrientation()); 385 414 if(current_mode < THRESHOLD) { // Simple mode - add first 386 415 main_pane.add(simple_panel, SIMPLE); … … 494 523 } 495 524 sargument_configuration_scroll = new JScrollPane(sargument_configuration_panel); 525 sargument_configuration_panel.setComponentOrientation(Dictionary.getOrientation()); 526 sargument_configuration_scroll.setComponentOrientation(Dictionary.getOrientation()); 496 527 sargument_configuration_scroll.setPreferredSize(ARGUMENT_SIZE); 497 528 simple_panel.setTopComponent(sargument_configuration_scroll); … … 634 665 //} 635 666 sargument_configuration_scroll = new JScrollPane(sargument_configuration_panel); 667 sargument_configuration_scroll.setComponentOrientation(Dictionary.getOrientation()); 636 668 sargument_configuration_scroll.setPreferredSize(ARGUMENT_SIZE); 637 669 simple_panel.setTopComponent(sargument_configuration_scroll); … … 913 945 public OptionTree() { 914 946 super(); 915 947 this.setComponentOrientation(Dictionary.getOrientation()); 916 948 ToolTipManager.sharedInstance().registerComponent(this); 917 949 addTreeSelectionListener(this); -
gli/trunk/src/org/greenstone/gatherer/gui/CreateShortcutPrompt.java
r12119 r18370 53 53 { 54 54 super(Gatherer.g_man); 55 55 this.setComponentOrientation(Dictionary.getOrientation()); 56 56 setModal(true); 57 57 setSize(DIALOG_SIZE); … … 60 60 // Creation 61 61 JPanel content_pane = (JPanel) getContentPane(); 62 content_pane.setComponentOrientation(Dictionary.getOrientation()); 62 63 JPanel center_pane = new JPanel(); 64 center_pane.setComponentOrientation(Dictionary.getOrientation()); 63 65 JPanel labels_pane = new JPanel(); 66 labels_pane.setComponentOrientation(Dictionary.getOrientation()); 64 67 JPanel fields_pane = new JPanel(); 68 fields_pane.setComponentOrientation(Dictionary.getOrientation()); 65 69 66 70 JLabel file_label = new JLabel(Dictionary.get("MappingPrompt.File")); 67 JLabel file_field = new JLabel(file.getAbsolutePath()); 68 71 file_label.setComponentOrientation(Dictionary.getOrientation()); 72 JLabel file_field = new JLabel(file.getAbsolutePath()); 73 file_field.setComponentOrientation(Dictionary.getOrientation()); 74 69 75 JLabel name_label = new JLabel(Dictionary.get("MappingPrompt.Name")); 70 name_field = new JTextField(file.getName()); 71 76 name_label.setComponentOrientation(Dictionary.getOrientation()); 77 name_field = new JTextField(file.getName()); 78 name_field.setComponentOrientation(Dictionary.getOrientation()); 79 72 80 JPanel button_pane = new JPanel(); 81 button_pane.setComponentOrientation(Dictionary.getOrientation()); 73 82 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 74 83 ok_button.setEnabled(name_field.getText().length() > 0); … … 91 100 center_pane.setBorder(BorderFactory.createEmptyBorder(0,0,5,0)); 92 101 center_pane.setLayout(new BorderLayout(5,0)); 93 center_pane.add(labels_pane, BorderLayout. WEST);102 center_pane.add(labels_pane, BorderLayout.LINE_START); 94 103 center_pane.add(fields_pane, BorderLayout.CENTER); 95 104 -
gli/trunk/src/org/greenstone/gatherer/gui/DeleteCollectionPrompt.java
r15156 r18370 92 92 super(Gatherer.g_man); 93 93 close_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip")); 94 94 this.setComponentOrientation(Dictionary.getOrientation()); 95 95 confirmation = new JCheckBox(Dictionary.get("DeleteCollectionPrompt.Confirm_Delete")); 96 details = new JTextArea(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 96 confirmation.setComponentOrientation(Dictionary.getOrientation()); 97 details = new JTextArea(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 98 details.setComponentOrientation(Dictionary.getOrientation()); 97 99 details.setEditable(false); 98 100 details_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_Details")); 99 101 details_label.setComponentOrientation(Dictionary.getOrientation()); 102 100 103 list = new JList(); 104 list.setComponentOrientation(Dictionary.getOrientation()); 101 105 list_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_List")); 102 106 list_label.setComponentOrientation(Dictionary.getOrientation()); 107 103 108 list_model = new DefaultListModel(); 104 109 ok_button = new GLIButton(Dictionary.get("DeleteCollectionPrompt.Delete"), Dictionary.get("DeleteCollectionPrompt.Delete_Tooltip")); … … 107 112 setModal(true); 108 113 setSize(SIZE); 109 setTitle(Dictionary.get("DeleteCollectionPrompt.Title")); 110 114 setTitle(Dictionary.get("DeleteCollectionPrompt.Title")); 115 111 116 setJMenuBar(new SimpleMenuBar("deletingcollections")); 112 117 close_button.addActionListener(new CloseButtonListener()); … … 121 126 ok_button.setEnabled(false); 122 127 scanForCollections(); 128 123 129 } 124 130 … … 140 146 public boolean display() { 141 147 // Central pane 148 JScrollPane scrol_tmp; 142 149 JPanel list_pane = new JPanel(new BorderLayout()); 150 list_pane.setComponentOrientation(Dictionary.getOrientation()); 143 151 list_pane.add(list_label, BorderLayout.NORTH); 144 list_pane.add(new JScrollPane(list), BorderLayout.CENTER); 152 scrol_tmp = new JScrollPane(list); 153 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 154 list_pane.add(scrol_tmp, BorderLayout.CENTER); 145 155 list_pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0)); 146 156 147 157 JPanel details_pane = new JPanel(new BorderLayout()); 158 details_pane.setComponentOrientation(Dictionary.getOrientation()); 148 159 details_pane.add(details_label, BorderLayout.NORTH); 149 details_pane.add(new JScrollPane(details), BorderLayout.CENTER); 160 scrol_tmp = new JScrollPane(details); 161 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 162 details_pane.add(scrol_tmp, BorderLayout.CENTER); 150 163 details_pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); 151 164 152 165 JPanel central_pane = new JPanel(new GridLayout(2, 1)); 166 central_pane.setComponentOrientation(Dictionary.getOrientation()); 153 167 central_pane.add(list_pane); 154 168 central_pane.add(details_pane); … … 157 171 // Lower pane 158 172 JPanel confirmation_pane = new JPanel(new BorderLayout()); 173 confirmation_pane.setComponentOrientation(Dictionary.getOrientation()); 159 174 confirmation_pane.add(confirmation, BorderLayout.CENTER); 160 175 confirmation_pane.setBorder(BorderFactory.createEmptyBorder(0,0,5,0)); 161 176 162 177 JPanel button_pane = new JPanel(new GridLayout(1, 2)); 178 button_pane.setComponentOrientation(Dictionary.getOrientation()); 163 179 button_pane.add(ok_button); 164 180 button_pane.add(close_button); … … 166 182 167 183 JPanel lower_pane = new JPanel(new BorderLayout()); 184 lower_pane.setComponentOrientation(Dictionary.getOrientation()); 168 185 lower_pane.add(confirmation_pane, BorderLayout.NORTH); 169 186 lower_pane.add(button_pane, BorderLayout.SOUTH); … … 172 189 // Final. 173 190 JPanel content_pane = (JPanel)this.getContentPane(); 191 content_pane.setComponentOrientation(Dictionary.getOrientation()); 174 192 content_pane.setLayout(new BorderLayout()); 175 193 content_pane.add(central_pane, BorderLayout.CENTER); -
gli/trunk/src/org/greenstone/gatherer/gui/DesignPane.java
r14974 r18370 37 37 package org.greenstone.gatherer.gui; 38 38 39 import org.greenstone.gatherer.Dictionary; 39 40 import org.greenstone.gatherer.cdm.CollectionDesignManager; 40 41 import org.greenstone.gatherer.cdm.Control; -
gli/trunk/src/org/greenstone/gatherer/gui/DesignPaneHeader.java
r12119 r18370 55 55 public DesignPaneHeader(String label_key, String help_key) 56 56 { 57 this.setComponentOrientation(Dictionary.getOrientation()); 57 58 JLabel title_label = new JLabel("<HTML><STRONG><FONT FACE={FONT} COLOR=Black SIZE=5>" + Dictionary.get(label_key) + "</FONT></STRONG></HTML>"); 58 59 title_label.setComponentOrientation(Dictionary.getOrientation()); 60 59 61 JPanel title_pane = new JPanel(); 60 62 title_pane.setBorder(BorderFactory.createEmptyBorder(0,0,0,5)); … … 62 64 title_pane.add(title_label, BorderLayout.CENTER); 63 65 title_pane.add(new JSeparator(), BorderLayout.SOUTH); 64 66 title_pane.setComponentOrientation(Dictionary.getOrientation()); 67 65 68 GLIButton help_button = new GLIButton(Dictionary.get("CDM.HelpButton"), Dictionary.get("CDM.HelpButton_Tooltip")); 66 69 this.help_key_name = help_key; … … 75 78 setLayout(new BorderLayout()); 76 79 add(title_pane, BorderLayout.CENTER); 77 add(help_button, BorderLayout. EAST);80 add(help_button, BorderLayout.LINE_END); 78 81 } 79 82 } -
gli/trunk/src/org/greenstone/gatherer/gui/DownloadPane.java
r17651 r18370 93 93 public DownloadPane() { 94 94 super(); 95 95 JScrollPane scrol_tmp; 96 this.setComponentOrientation(Dictionary.getOrientation()); 96 97 // TODO: Download the WDownload and the download panel fixed!! 97 98 getter = new DownloadScrollPane(); 98 99 getter.start(); 99 list_scroll = getter.getDownloadJobList(); 100 100 list_scroll = getter.getDownloadJobList(); 101 list_scroll.setComponentOrientation(Dictionary.getOrientation()); 101 102 // TODO should use Vector to store all loaded downloads!! 102 103 String lang = Configuration.getLanguage(); … … 110 111 // Creation 111 112 tree = new DesignTree(); 113 tree.setComponentOrientation(Dictionary.getOrientation()); 112 114 options_pane = new JPanel(); 113 115 options_pane.setComponentOrientation(Dictionary.getOrientation()); 114 116 115 117 JButton clear_cache_button = new GLIButton(Dictionary.get("Mirroring.ClearCache"), Dictionary.get("Mirroring.ClearCache_Tooltip")); … … 139 141 // Add to Panel 140 142 JPanel button_pane = new JPanel(); 143 button_pane.setComponentOrientation(Dictionary.getOrientation()); 141 144 button_pane.setLayout(new FlowLayout(FlowLayout.CENTER,20,5)); 142 145 button_pane.setBorder(BorderFactory.createEtchedBorder()); … … 147 150 148 151 JPanel tree_pane = new JPanel(); 152 tree_pane.setComponentOrientation(Dictionary.getOrientation()); 149 153 tree_pane.setLayout(new BorderLayout()); 150 tree_pane.add(new JScrollPane(tree), BorderLayout.CENTER); 154 scrol_tmp = new JScrollPane(tree); 155 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 156 tree_pane.add(scrol_tmp, BorderLayout.CENTER); 151 157 tree_pane.setPreferredSize(TREE_SIZE); 152 158 … … 158 164 159 165 JScrollPane options_scroll_pane = new JScrollPane(options_pane); 166 options_scroll_pane.setComponentOrientation(Dictionary.getOrientation()); 160 167 JSplitPane mode_pane = new JSplitPane(); 168 mode_pane.setComponentOrientation(Dictionary.getOrientation()); 161 169 mode_pane.setBorder(BorderFactory.createEmptyBorder(0,0,0,0)); 162 mode_pane.add(tree_pane,JSplitPane.LEFT); 163 mode_pane.add(options_scroll_pane,JSplitPane.RIGHT); 164 mode_pane.setDividerLocation(TREE_SIZE.width); 170 if (Dictionary.getOrientation().isLeftToRight()){ 171 mode_pane.add(tree_pane,JSplitPane.LEFT); 172 mode_pane.add(options_scroll_pane,JSplitPane.RIGHT); 173 mode_pane.setDividerLocation(TREE_SIZE.width); 174 }else{ 175 mode_pane.add(tree_pane,JSplitPane.RIGHT); 176 mode_pane.add(options_scroll_pane,JSplitPane.LEFT); 177 mode_pane.setDividerLocation(1); 178 } 179 165 180 166 181 JPanel edit_pane = new JPanel(); 182 edit_pane.setComponentOrientation(Dictionary.getOrientation()); 167 183 edit_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(2,0,0,0), BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Download Setting"), BorderFactory.createEmptyBorder(2,2,2,2)))); 168 184 edit_pane.setLayout(new BorderLayout()); … … 188 204 private void addHeader(String name, Color color, JPanel target_pane) { 189 205 JPanel header = new JPanel(); 206 header.setComponentOrientation(Dictionary.getOrientation()); 190 207 header.setBackground(color); 191 208 JPanel inner_pane = new JPanel(); 209 inner_pane.setComponentOrientation(Dictionary.getOrientation()); 192 210 inner_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,5,5,5), BorderFactory.createRaisedBevelBorder())); 193 211 inner_pane.setBackground(color); 194 212 JLabel header_label = new JLabel("<html><strong>" + name + "</strong></html>"); 213 header_label.setComponentOrientation(Dictionary.getOrientation()); 195 214 header_label.setBackground(Configuration.getColor("coloring.collection_heading_background", false)); 196 215 header_label.setHorizontalAlignment(JLabel.CENTER); … … 353 372 /** Behaviour Functions */ 354 373 public void afterDisplay() { 355 ready = true; 374 ready = true; 356 375 } 357 376 -
gli/trunk/src/org/greenstone/gatherer/gui/EditorDialog.java
r12119 r18370 67 67 public EditorDialog() { 68 68 super(Gatherer.g_man); 69 this.setComponentOrientation(Dictionary.getOrientation()); 69 70 } 70 71 … … 94 95 // Create 95 96 text = new JTextArea(value); 97 text.setComponentOrientation(Dictionary.getOrientation()); 96 98 text.setCaretPosition(value.length()); 97 99 text.setEditable(editable); … … 115 117 // Layout 116 118 JPanel button_pane = new JPanel(); 119 button_pane.setComponentOrientation(Dictionary.getOrientation()); 117 120 button_pane.setLayout(new GridLayout(1,2)); 118 121 if(editable) { … … 126 129 127 130 JPanel content_pane = (JPanel) getContentPane(); 131 content_pane.setComponentOrientation(Dictionary.getOrientation()); 128 132 content_pane.setLayout(new BorderLayout()); 129 content_pane.add(new JScrollPane(text), BorderLayout.CENTER); 133 JScrollPane scrol_tmp; 134 scrol_tmp = new JScrollPane(text); 135 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 136 content_pane.add(scrol_tmp, BorderLayout.CENTER); 130 137 content_pane.add(button_pane, BorderLayout.SOUTH); 131 138 -
gli/trunk/src/org/greenstone/gatherer/gui/EmailField.java
r4939 r18370 6 6 import javax.swing.event.*; 7 7 import javax.swing.text.*; 8 import org.greenstone.gatherer.Dictionary; 8 9 9 10 public class EmailField … … 19 20 public EmailField(Color invalid_background) { 20 21 super(); 22 this.setComponentOrientation(Dictionary.getOrientation()); 21 23 this.invalid_background = invalid_background; 22 24 } -
gli/trunk/src/org/greenstone/gatherer/gui/EnrichPane.java
r18199 r18370 83 83 public EnrichPane() 84 84 { 85 // Create the metadata value tree pane 86 metadata_value_tree_pane = new MetadataValueTreePane(); 85 this.setComponentOrientation(Dictionary.getOrientation()); 86 // Create the metadata value tree pane 87 metadata_value_tree_pane = new MetadataValueTreePane(); 87 88 metadata_value_tree_pane.addMetadataValueTreeSelectionListener(new MetadataValueTreeSelectionListener()); 88 89 89 90 // Create metadata value table pane 90 metadata_value_table_pane = new MetadataValueTablePane(); 91 metadata_value_table_pane = new MetadataValueTablePane(); 91 92 metadata_value_table_pane.addMetadataValueTableListSelectionListener(new MetadataValueTableListSelectionListener()); 92 93 metadata_value_table_pane.addMetadataValueTableMouseListener(new MetadataValueTableMouseListener()); … … 100 101 public void afterDisplay() 101 102 { 102 external_split.setDividerLocation(0.3); 103 if (Dictionary.getOrientation().isLeftToRight()){ 104 external_split.setDividerLocation(0.3); 105 }else{ 106 external_split.setDividerLocation(0.7); 107 } 103 108 } 104 109 … … 112 117 { 113 118 JPanel left_hand_pane = new JPanel(new BorderLayout()); 119 left_hand_pane.setComponentOrientation(Dictionary.getOrientation()); 114 120 GLIButton metadata_set_button = new GLIButton(Dictionary.get("EnrichPane.ManageMetadataSets"), Dictionary.get("EnrichPane.ManageMetadataSets_Tooltip")); 115 121 metadata_set_button.addActionListener(new ActionListener() { … … 124 130 // Collection Tree 125 131 collection_pane = new JPanel(new BorderLayout()); 132 // collection_pane.setComponentOrientation(Dictionary.getOrientation()); 126 133 collection_pane.setMinimumSize(MINIMUM_SIZE); 127 134 collection_pane.setPreferredSize(COLLECTION_TREE_SIZE); 128 135 129 136 collection_label = new JLabel(Dictionary.get("Collection.No_Collection")); 137 collection_label.setComponentOrientation(Dictionary.getOrientation()); 130 138 collection_label.setOpaque(true); 131 139 132 140 collection_tree = Gatherer.c_man.getCollectionTree(); 133 141 collection_tree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); 134 collection_tree.addTreeSelectionListener(this); 142 collection_tree.addTreeSelectionListener(this); 143 collection_tree.setComponentOrientation(Dictionary.getOrientation()); 135 144 collection_filter = collection_tree.getFilter(); 136 137 145 external_split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); 138 146 external_split.setComponentOrientation(Dictionary.getOrientation()); 139 147 // Layout 140 148 collection_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(3,3,3,3), BorderFactory.createLoweredBevelBorder())); 141 149 collection_pane.setMinimumSize(MINIMUM_SIZE); 142 150 collection_pane.setPreferredSize(new Dimension(Gatherer.g_man.getSize().width / 3, Gatherer.g_man.getSize().height)); 143 151 collection_pane.setComponentOrientation(Dictionary.getOrientation()); 144 152 // Collection Pane 145 153 collection_pane.add(collection_label, BorderLayout.NORTH); … … 148 156 metadata_editing_pane.setBorder(BorderFactory.createEmptyBorder(0,5,5,5)); 149 157 metadata_editing_pane.setDividerSize(8); 150 158 metadata_editing_pane.setComponentOrientation(Dictionary.getOrientation()); 159 151 160 metadata_editing_pane.add(metadata_value_table_pane, JSplitPane.TOP); 152 161 metadata_editing_pane.add(metadata_value_tree_pane, JSplitPane.BOTTOM); … … 155 164 left_hand_pane.add(collection_pane, BorderLayout.CENTER); 156 165 left_hand_pane.add(metadata_set_button, BorderLayout.SOUTH); 157 external_split.add(left_hand_pane, JSplitPane.LEFT); 158 external_split.add(metadata_editing_pane, JSplitPane.RIGHT); 166 if (Dictionary.getOrientation().isLeftToRight()){ 167 external_split.add(left_hand_pane, JSplitPane.LEFT); 168 external_split.add(metadata_editing_pane, JSplitPane.RIGHT); 169 }else{ 170 external_split.add(left_hand_pane, JSplitPane.RIGHT); 171 external_split.add(metadata_editing_pane, JSplitPane.LEFT); 172 } 159 173 160 174 -
gli/trunk/src/org/greenstone/gatherer/gui/ExplodeMetadataDatabasePrompt.java
r17612 r18370 87 87 this.self = this; 88 88 this.metadata_file = source_file; 89 89 this.setComponentOrientation(Dictionary.getOrientation()); 90 90 // check that we actually have an explodable file 91 91 ArrayList exp_plugins = CollectionDesignManager.plugin_manager.getExploderPlugins(source_file); … … 107 107 // Creation 108 108 JPanel content_pane = (JPanel) getContentPane(); 109 content_pane.setComponentOrientation(Dictionary.getOrientation()); 109 110 content_pane.setOpaque(true); 110 111 111 112 options_pane = new JPanel(); 113 options_pane.setComponentOrientation(Dictionary.getOrientation()); 112 114 addScriptOptions(options_pane); 113 115 JScrollPane middle_pane = new JScrollPane(options_pane); 114 116 middle_pane.setComponentOrientation(Dictionary.getOrientation()); 117 115 118 JTextArea instructions_area = new JTextArea(Dictionary.get("ExplodeMetadataPrompt.Instructions")); 116 instructions_area.setEditable(false); 119 instructions_area.setComponentOrientation(Dictionary.getOrientation()); 120 instructions_area.setEditable(false); 117 121 instructions_area.setLineWrap(true); 118 122 instructions_area.setRows(5); … … 120 124 121 125 JPanel button_pane = new JPanel(); 122 JButton explode_button = new GLIButton(Dictionary.get("ExplodeMetadataPrompt.Explode"), Dictionary.get("ExplodeMetadataPrompt.Explode_Tooltip")); 126 button_pane.setComponentOrientation(Dictionary.getOrientation()); 127 JButton explode_button = new GLIButton(Dictionary.get("ExplodeMetadataPrompt.Explode"), Dictionary.get("ExplodeMetadataPrompt.Explode_Tooltip")); 123 128 JButton cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); 124 129 -
gli/trunk/src/org/greenstone/gatherer/gui/ExportAsPrompt.java
r17252 r18370 155 155 public ExportAsPrompt() { 156 156 super(Gatherer.g_man, true); 157 157 this.setComponentOrientation(Dictionary.getOrientation()); 158 158 plugoutMap.clear(); 159 159 plugoutMap.put("DSpace","dublin-core.xml"); … … 168 168 details_textarea = new JTextArea(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 169 169 details_textarea.setEditable(false); 170 170 details_textarea.setComponentOrientation(Dictionary.getOrientation()); 171 171 172 details_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_Details")); 172 173 … … 178 179 instructions_textarea.setRows(4); 179 180 instructions_textarea.setWrapStyleWord(true); 180 181 instructions_textarea.setComponentOrientation(Dictionary.getOrientation()); 181 182 182 183 183 184 saveas_label = new JLabel(Dictionary.get("ExportAsPrompt.SaveAs") 184 185 ); 186 saveas_label.setComponentOrientation(Dictionary.getOrientation()); 185 187 //saveas_label.setPreferredSize(LABEL_SIZE); 186 188 … … 188 190 saveas_combobox.setOpaque(false); 189 191 saveas_combobox.setToolTipText(Dictionary.get("ExportAsPrompt.SaveAs_Tooltip")); 190 192 saveas_combobox.setComponentOrientation(Dictionary.getOrientation()); 191 193 192 194 // Add xml conversion feature … … 203 205 convert_xml_checkbox1.setText(Dictionary.get("ExportAsPrompt.ApplyXSL","doc.xml")); 204 206 convert_xml_checkbox1.setToolTipText(Dictionary.get("ExportAsPrompt.ApplyXSL_Tooltip")); 207 convert_xml_checkbox1.setComponentOrientation(Dictionary.getOrientation()); 205 208 206 209 convert_xml_checkbox2 = new JCheckBox(); 207 210 convert_xml_checkbox2.setToolTipText(Dictionary.get("ExportAsPrompt.ApplyXSL_Tooltip")); 208 209 211 convert_xml_checkbox2.setComponentOrientation(Dictionary.getOrientation()); 212 210 213 output_single_checkbox = new JCheckBox(); 214 output_single_checkbox.setComponentOrientation(Dictionary.getOrientation()); 211 215 output_single_checkbox.setText(Dictionary.get("ExportAsPrompt.MARCXMLGroup")); 212 216 output_single_checkbox.setToolTipText(Dictionary.get("ExportAsPrompt.MARCXMLGroup_Tooltip")); … … 214 218 215 219 mapping_xml_checkbox = new JCheckBox(); 220 mapping_xml_checkbox.setComponentOrientation(Dictionary.getOrientation()); 216 221 mapping_xml_checkbox.setText(Dictionary.get("ExportAsPrompt.MappingXML")); 217 222 mapping_xml_checkbox.setToolTipText(Dictionary.get("ExportAsPrompt.MappingXML_Tooltip")); 218 223 219 220 224 convert_xml_field1 = new JTextField(); 225 convert_xml_field1.setComponentOrientation(Dictionary.getOrientation()); 221 226 convert_xml_field1.setEnabled(false); 227 222 228 convert_xml_field2 = new JTextField(); 229 convert_xml_field2.setComponentOrientation(Dictionary.getOrientation()); 223 230 convert_xml_field2.setEnabled(false); 231 224 232 mapping_xml_field = new JTextField(); 233 mapping_xml_field.setComponentOrientation(Dictionary.getOrientation()); 225 234 mapping_xml_field.setEnabled(false); 226 235 227 236 convert_xml_pane1 = new JPanel(new BorderLayout()); 228 237 convert_xml_pane1.setComponentOrientation(Dictionary.getOrientation()); 238 229 239 convert_xml_pane2 = new JPanel(new BorderLayout()); 230 240 convert_xml_pane2.setComponentOrientation(Dictionary.getOrientation()); 241 231 242 mapping_xml_pane = new JPanel(new BorderLayout()); 232 243 mapping_xml_pane.setComponentOrientation(Dictionary.getOrientation()); 244 233 245 convert_xml_pane = new JPanel(new GridLayout(3,1)); 234 246 convert_xml_pane.setComponentOrientation(Dictionary.getOrientation()); 247 235 248 all_collections = new ArrayList(); 236 249 //list = new CheckList(true); 237 250 list = new JList(getCollectionListModel()); 238 251 list_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_List")); 239 252 list_label.setComponentOrientation(Dictionary.getOrientation()); 253 240 254 ok_button = new GLIButton(Dictionary.get("ExportAsPrompt.Export"), Dictionary.get("ExportAsPrompt.Export_Tooltip")); 241 255 242 256 title_field = new JTextField(); 257 title_field.setComponentOrientation(Dictionary.getOrientation()); 243 258 title_field.setToolTipText(Dictionary.get("ExportAsPrompt.Export_Name_Tooltip")); 244 259 title_label = new JLabel(Dictionary.get("ExportAsPrompt.Export_Name")); 245 260 title_label.setComponentOrientation(Dictionary.getOrientation()); 261 246 262 folder_button = new GLIButton(Dictionary.get("ExportAsPrompt.Browse"),Dictionary.get("ExportAsPrompt.Browse_Tooltip")); 247 263 folder_button.addActionListener(new FolderButtonListener()); … … 294 310 * returns true if it has exported the collections that are currently selected */ 295 311 public boolean display() { 312 JScrollPane scrol_tmp; 296 313 // Top pane 297 314 instructions_pane = new JPanel(new BorderLayout()); 298 instructions_pane.setBorder(BorderFactory.createEmptyBorder(0,0,5,5)); 299 instructions_pane.add(new JScrollPane(instructions_textarea), BorderLayout.CENTER); 315 instructions_pane.setComponentOrientation(Dictionary.getOrientation()); 316 instructions_pane.setBorder(BorderFactory.createEmptyBorder(0,0,5,5)); 317 scrol_tmp = new JScrollPane(instructions_textarea); 318 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 319 instructions_pane.add(scrol_tmp, BorderLayout.CENTER); 300 320 301 321 title_label.setBorder(BorderFactory.createEmptyBorder(0,5,0,15)); 302 322 303 323 JPanel title_pane = new JPanel(new BorderLayout()); 304 title_pane.add(title_label, BorderLayout.WEST); 324 title_pane.setComponentOrientation(Dictionary.getOrientation()); 325 title_pane.add(title_label, BorderLayout.LINE_START); 305 326 title_pane.add(title_field, BorderLayout.CENTER); 306 title_pane.add(folder_button, BorderLayout. EAST);327 title_pane.add(folder_button, BorderLayout.LINE_END); 307 328 //apply xsl pane 308 329 … … 312 333 convert_xml_pane.removeAll(); 313 334 314 convert_xml_pane1.add(convert_xml_checkbox1, BorderLayout. WEST);335 convert_xml_pane1.add(convert_xml_checkbox1, BorderLayout.LINE_START); 315 336 convert_xml_pane1.add(convert_xml_field1, BorderLayout.CENTER); 316 convert_xml_pane1.add(convert_xml_button1, BorderLayout. EAST);317 318 convert_xml_pane2.add(convert_xml_checkbox2, BorderLayout. WEST);337 convert_xml_pane1.add(convert_xml_button1, BorderLayout.LINE_END); 338 339 convert_xml_pane2.add(convert_xml_checkbox2, BorderLayout.LINE_START); 319 340 convert_xml_pane2.add(convert_xml_field2, BorderLayout.CENTER); 320 convert_xml_pane2.add(convert_xml_button2, BorderLayout. EAST);341 convert_xml_pane2.add(convert_xml_button2, BorderLayout.LINE_END); 321 342 322 mapping_xml_pane.add(mapping_xml_checkbox, BorderLayout. WEST);343 mapping_xml_pane.add(mapping_xml_checkbox, BorderLayout.LINE_START); 323 344 mapping_xml_pane.add(mapping_xml_field, BorderLayout.CENTER); 324 mapping_xml_pane.add(convert_xml_button3, BorderLayout. EAST);345 mapping_xml_pane.add(convert_xml_button3, BorderLayout.LINE_END); 325 346 326 347 convert_xml_pane.add(convert_xml_pane1); … … 332 353 // Save as pane 333 354 JPanel saveas_pane = new JPanel(new BorderLayout()); 355 saveas_pane.setComponentOrientation(Dictionary.getOrientation()); 334 356 saveas_label.setBorder(BorderFactory.createEmptyBorder(0,5,0,15)); 335 saveas_pane.add(saveas_label, BorderLayout. WEST);357 saveas_pane.add(saveas_label, BorderLayout.LINE_START); 336 358 saveas_pane.add(saveas_combobox, BorderLayout.CENTER); 337 359 338 360 JPanel tmp_pane = new JPanel(new BorderLayout()); 361 tmp_pane.setComponentOrientation(Dictionary.getOrientation()); 339 362 tmp_pane.add(saveas_pane, BorderLayout.NORTH); 340 363 tmp_pane.add(title_pane, BorderLayout.CENTER); … … 346 369 // Central pane 347 370 JPanel list_pane = new JPanel(new BorderLayout()); 371 list_pane.setComponentOrientation(Dictionary.getOrientation()); 348 372 list_pane.add(list_label, BorderLayout.NORTH); 349 list_pane.add(new JScrollPane(list), BorderLayout.CENTER); 373 scrol_tmp = new JScrollPane(list); 374 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 375 list_pane.add(scrol_tmp, BorderLayout.CENTER); 350 376 list_pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0)); 351 377 352 378 JPanel details_pane = new JPanel(new BorderLayout()); 379 details_pane.setComponentOrientation(Dictionary.getOrientation()); 353 380 details_pane.add(details_label, BorderLayout.NORTH); 354 details_pane.add(new JScrollPane(details_textarea), BorderLayout.CENTER); 381 scrol_tmp = new JScrollPane(details_textarea); 382 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 383 details_pane.add(scrol_tmp, BorderLayout.CENTER); 355 384 details_pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); 356 385 357 386 JPanel central_pane = new JPanel(new GridLayout(2, 1)); 387 central_pane.setComponentOrientation(Dictionary.getOrientation()); 358 388 central_pane.add(list_pane); 359 389 central_pane.add(details_pane); … … 362 392 // Lower pane 363 393 JPanel button_pane = new JPanel(new GridLayout(1, 2)); 394 button_pane.setComponentOrientation(Dictionary.getOrientation()); 364 395 button_pane.add(ok_button); 365 396 button_pane.add(cancel_button); … … 367 398 368 399 JPanel lower_pane = new JPanel(new BorderLayout()); 400 lower_pane.setComponentOrientation(Dictionary.getOrientation()); 369 401 lower_pane.add(button_pane, BorderLayout.SOUTH); 370 402 lower_pane.setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5)); … … 372 404 // Final. 373 405 JPanel content_pane = (JPanel)this.getContentPane(); 406 content_pane.setComponentOrientation(Dictionary.getOrientation()); 374 407 content_pane.setLayout(new BorderLayout()); 375 408 content_pane.add(instructions_pane, BorderLayout.NORTH); -
gli/trunk/src/org/greenstone/gatherer/gui/FileAssociationDialog.java
r12710 r18370 81 81 this.file_association_manager = file_association_manager; 82 82 this.self = this; 83 83 this.setComponentOrientation(Dictionary.getOrientation()); 84 84 // Creation 85 85 setModal(true); … … 109 109 extension_field = new NonWhitespaceField(); 110 110 extension_field.setToolTipText(Dictionary.get("FileAssociationDialog.Extension_Tooltip")); 111 111 112 112 JLabel command_label = new JLabel(Dictionary.get("FileAssociationDialog.Command")); 113 113 JPanel command_pane = new JPanel(); … … 123 123 124 124 125 JPanel button_pane = new JPanel(); 126 125 JPanel button_pane = new JPanel(); 126 127 127 add_button = new GLIButton(Dictionary.get("FileAssociationDialog.Add"), Dictionary.get("FileAssociationDialog.Add_Tooltip")); 128 128 add_button.setEnabled(false); … … 151 151 extension_pane.setBorder(BorderFactory.createEmptyBorder(2,0,2,0)); 152 152 extension_pane.setLayout(new BorderLayout(5,0)); 153 extension_pane.add(extension_label, BorderLayout. WEST);153 extension_pane.add(extension_label, BorderLayout.LINE_START); 154 154 extension_pane.add(extension_field, BorderLayout.CENTER); 155 155 … … 157 157 command_pane.setLayout(new BorderLayout()); 158 158 command_pane.add(command_field, BorderLayout.CENTER); 159 command_pane.add(browse_button, BorderLayout. EAST);159 command_pane.add(browse_button, BorderLayout.LINE_END); 160 160 161 161 details_pane.setBorder(BorderFactory.createTitledBorder(Dictionary.get("FileAssociationDialog.Details"))); … … 181 181 control_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 182 182 control_pane.setLayout(new BorderLayout()); 183 control_pane.add(new JScrollPane(existing_associations_table), BorderLayout.CENTER); 183 JScrollPane scrol_tmp; 184 scrol_tmp = new JScrollPane(existing_associations_table); 185 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 186 control_pane.add(scrol_tmp, BorderLayout.CENTER); 184 187 control_pane.add(lower_pane, BorderLayout.SOUTH); 185 188 186 189 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 187 190 content_pane.setLayout(new BorderLayout()); 188 content_pane.add(new JScrollPane(instructions_area), BorderLayout.NORTH); 191 scrol_tmp = new JScrollPane(instructions_area); 192 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 193 content_pane.add(scrol_tmp, BorderLayout.NORTH); 189 194 content_pane.add(control_pane, BorderLayout.CENTER); 190 195 … … 192 197 setLocation((int)(screen.getX() + (screen.getWidth() - SIZE.width) / 2), (int)(screen.getY() + (screen.getHeight() - SIZE.height) / 2)); 193 198 screen = null; 199 200 //RTL 201 content_pane.setComponentOrientation(Dictionary.getOrientation()); 202 instructions_area.setComponentOrientation(Dictionary.getOrientation()); 203 control_pane.setComponentOrientation(Dictionary.getOrientation()); 204 existing_associations_table.setComponentOrientation(Dictionary.getOrientation()); 205 lower_pane.setComponentOrientation(Dictionary.getOrientation()); 206 details_pane.setComponentOrientation(Dictionary.getOrientation()); 207 extension_pane.setComponentOrientation(Dictionary.getOrientation()); 208 extension_label.setComponentOrientation(Dictionary.getOrientation()); 209 extension_field.setComponentOrientation(Dictionary.getOrientation()); 210 command_label.setComponentOrientation(Dictionary.getOrientation()); 211 command_pane.setComponentOrientation(Dictionary.getOrientation()); 212 //end 194 213 } 195 214 -
gli/trunk/src/org/greenstone/gatherer/gui/Filter.java
r17086 r18370 93 93 public Filter(DragTree tree, ArrayList others) { 94 94 super(); 95 this.setComponentOrientation(Dictionary.getOrientation()); 95 96 if (others == null) { 96 97 others = new ArrayList(); … … 118 119 } 119 120 label = new JLabel(Dictionary.get("Filter.Filter_Tree")); 121 label.setComponentOrientation(Dictionary.getOrientation()); 122 label.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 120 123 combobox.setToolTipText(Dictionary.get("Collection.Filter_Tooltip")); 121 124 … … 127 130 setBorder(BorderFactory.createEmptyBorder(2,2,2,2)); 128 131 setLayout(new BorderLayout()); 129 add(label, BorderLayout. WEST);132 add(label, BorderLayout.LINE_START); 130 133 add(combobox, BorderLayout.CENTER); 131 134 } -
gli/trunk/src/org/greenstone/gatherer/gui/FormatPane.java
r16680 r18370 73 73 } 74 74 JPanel side_panel = new JPanel (); 75 side_panel.setComponentOrientation(Dictionary.getOrientation()); 75 76 side_panel.setLayout (new BorderLayout ()); 76 77 remove (tree_pane); 77 78 side_panel.add (tree_pane, BorderLayout.CENTER); 78 79 JPanel preview_pane = new JPanel (); 80 preview_pane.setComponentOrientation(Dictionary.getOrientation()); 81 79 82 preview_pane.setLayout (new BorderLayout ()); 80 83 preview_pane.setBorder (BorderFactory.createEmptyBorder (5,0,0,0)); … … 103 106 side_panel.add (preview_pane, BorderLayout.SOUTH); 104 107 105 add (side_panel, BorderLayout. WEST);108 add (side_panel, BorderLayout.LINE_START); 106 109 } 107 110 -
gli/trunk/src/org/greenstone/gatherer/gui/GComboBox.java
r13195 r18370 62 62 public GComboBox() { 63 63 super(); 64 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 64 65 init(); 65 66 setOpaque(!Utility.isMac()); … … 68 69 public GComboBox(boolean editable) { 69 70 super(); 71 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 70 72 setOpaque(!Utility.isMac()); 71 73 setEditable(editable); … … 76 78 public GComboBox(ArrayList data) { 77 79 super(data.toArray()); 80 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 78 81 setOpaque(!Utility.isMac()); 79 82 init(); … … 82 85 public GComboBox(ArrayList data, boolean editable) { 83 86 super(data.toArray()); 87 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 84 88 setOpaque(!Utility.isMac()); 85 89 setEditable(editable); … … 89 93 public GComboBox(ArrayList data, boolean editable, boolean sorted) { 90 94 super(data.toArray()); 95 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 91 96 setOpaque(!Utility.isMac()); 92 97 setEditable(editable); … … 97 102 public GComboBox(ComboBoxModel model) { 98 103 super(model); 104 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 99 105 setOpaque(!Utility.isMac()); 100 106 init(); … … 103 109 public GComboBox(ComboBoxModel model, boolean editable) { 104 110 super(model); 111 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 105 112 setOpaque(!Utility.isMac()); 106 113 setEditable(editable); … … 110 117 public GComboBox(Object data[]) { 111 118 super(data); 119 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 112 120 setOpaque(!Utility.isMac()); 113 121 init(); … … 116 124 public GComboBox(Object data[], boolean editable) { 117 125 super(data); 126 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 118 127 setOpaque(!Utility.isMac()); 119 128 setEditable(editable); … … 123 132 public GComboBox(Object data[], boolean editable, boolean sorted) { 124 133 super(data); 134 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 125 135 setOpaque(!Utility.isMac()); 126 136 setEditable(editable); … … 131 141 public GComboBox(Vector data) { 132 142 super(data); 143 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 133 144 setOpaque(!Utility.isMac()); 134 145 init(); … … 137 148 public GComboBox(Vector data, boolean editable) { 138 149 super(data); 150 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 139 151 setOpaque(!Utility.isMac()); 140 152 setEditable(editable); … … 320 332 super(""); 321 333 this.setOpaque(true); 334 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 322 335 } 323 336 public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { -
gli/trunk/src/org/greenstone/gatherer/gui/GProgressBar.java
r11075 r18370 29 29 30 30 import javax.swing.*; 31 import org.greenstone.gatherer.Dictionary; 31 32 32 33 … … 47 48 { 48 49 super(0, 100); 50 this.setComponentOrientation(Dictionary.getOrientation()); 49 51 } 50 52 -
gli/trunk/src/org/greenstone/gatherer/gui/GUIManager.java
r18199 r18370 117 117 public GUIManager(Dimension size) { 118 118 super(); 119 this.setComponentOrientation(Dictionary.getOrientation()); 119 120 // Initialization 120 121 this.help = new HelpFrame(); … … 329 330 public void display() { 330 331 content_pane = (JPanel) this.getContentPane(); 332 content_pane.setComponentOrientation(Dictionary.getOrientation()); 333 331 334 // Enable window-type events to be fired. 332 335 enableEvents(AWTEvent.WINDOW_EVENT_MASK); … … 358 361 // Create the menu-bar and stick it up the top. 359 362 menu_bar = new MenuBar(new MenuListenerImpl()); 363 menu_bar.setComponentOrientation(Dictionary.getOrientation()); 360 364 361 365 //feedback changes … … 367 371 // expand to consume all available space like any good gas would. 368 372 tab_pane = new JTabbedPane(); 373 tab_pane.setComponentOrientation(Dictionary.getOrientation()); 369 374 tab_pane.addChangeListener(this); 370 375 tab_pane.setFont(Configuration.getFont("general.font", false)); … … 377 382 } 378 383 379 gather_pane = new GatherPane(); 384 gather_pane = new GatherPane(); 380 385 gather_pane.display(); 381 386 if (Configuration.get("workflow.gather", true)) { … … 408 413 409 414 create_pane = new CreatePane(); 415 create_pane.setComponentOrientation(Dictionary.getOrientation()); 410 416 create_pane.display(); 411 417 if (Configuration.get("workflow.create", true)) { … … 416 422 417 423 format_pane = new FormatPane(); 424 format_pane.setComponentOrientation(Dictionary.getOrientation()); 418 425 format_pane.display(); 419 426 if (Configuration.get("workflow.format", true)) { … … 424 431 // The MetaAuditFrame must be created after the gather/enrich panes but before they get focus 425 432 meta_audit = new MetaAuditFrame(); 426 433 meta_audit.setComponentOrientation(Dictionary.getOrientation()); 427 434 // Select the collect pane if it is available 428 435 if (tab_pane.indexOfComponent(gather_pane) != -1) { … … 444 451 if (Gatherer.isGsdlRemote) { 445 452 JPanel remote_greenstone_server_progress_panel = new JPanel(); 453 //remote_greenstone_server_progress_panel.setComponentOrientation(Dictionary.getOrientation()); 446 454 JLabel remote_greenstone_server_progress_label = new JLabel(Dictionary.get("RemoteGreenstoneServer.Progress")); 455 //remote_greenstone_server_progress_label.setComponentOrientation(Dictionary.getOrientation()); 447 456 remote_greenstone_server_progress_panel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 448 457 remote_greenstone_server_progress_panel.setLayout(new BorderLayout()); 449 remote_greenstone_server_progress_panel.add(remote_greenstone_server_progress_label, BorderLayout. WEST);458 remote_greenstone_server_progress_panel.add(remote_greenstone_server_progress_label, BorderLayout.LINE_START); 450 459 remote_greenstone_server_progress_panel.add(Gatherer.remoteGreenstoneServer.getProgressBar(), BorderLayout.CENTER); 451 460 content_pane.add(remote_greenstone_server_progress_panel, BorderLayout.SOUTH); … … 715 724 { 716 725 OpenCollectionDialog dialog = new OpenCollectionDialog(); 726 dialog.setComponentOrientation(Dictionary.getOrientation()); 717 727 if (dialog.display() == OpenCollectionDialog.OK_OPTION) { 718 728 return dialog.getFileName(); -
gli/trunk/src/org/greenstone/gatherer/gui/GatherPane.java
r13520 r18370 127 127 this.group = new DragGroup(); 128 128 this.file_queue = Gatherer.f_man.getQueue(); 129 129 this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation()); 130 130 // Create components. 131 131 stop_action = new GLIButton(Dictionary.get("Collection.Stop"), Dictionary.get("Collection.Stop_Tooltip")); … … 207 207 workspace_pane.setPreferredSize(TREE_SIZE); 208 208 workspace_pane.setSize(TREE_SIZE); 209 workspace_pane.setComponentOrientation(Dictionary.getOrientation()); 209 210 210 211 workspace_label = new JLabel(Dictionary.get("Collection.Workspace")); … … 212 213 workspace_label.setBackground(Configuration.getColor("coloring.workspace_heading_background", false)); 213 214 workspace_label.setForeground(Configuration.getColor("coloring.workspace_heading_foreground", false)); 214 215 workspace_label.setComponentOrientation(Dictionary.getOrientation()); 216 215 217 workspace_tree = new WorkspaceTree(); 218 workspace_tree.setComponentOrientation(Dictionary.getOrientation()); 216 219 group.add(workspace_tree); 217 220 workspace_scroll = new JScrollPane(workspace_tree); 221 workspace_scroll.setComponentOrientation(Dictionary.getOrientation()); 218 222 workspace_filter = workspace_tree.getFilter(); 219 223 workspace_filter.setComponentOrientation(Dictionary.getOrientation()); 224 220 225 card_layout = new CardLayout(); 221 226 … … 225 230 collection_pane.setPreferredSize(TREE_SIZE); 226 231 collection_pane.setSize(TREE_SIZE); 227 232 collection_pane.setComponentOrientation(Dictionary.getOrientation()); 233 228 234 collection_label = new JLabel(Dictionary.get("Collection.Collection")); 229 235 collection_label.setOpaque(true); 230 236 collection_label.setComponentOrientation(Dictionary.getOrientation()); 237 231 238 collection_tree = Gatherer.c_man.getCollectionTree(); 232 239 collection_tree.setEnabled(Gatherer.c_man.getCollectionTreeModel() != null); … … 235 242 236 243 tree_pane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); 237 244 tree_pane.setComponentOrientation(Dictionary.getOrientation()); 238 245 // No collection loaded pane 239 246 JPanel no_collection_pane = new JPanel(); 240 247 no_collection_pane.setBackground(Color.lightGray); 241 248 no_collection_pane.setComponentOrientation(Dictionary.getOrientation()); 249 242 250 JLabel no_collection_label = new JLabel(Dictionary.get("Collection.Collection")); 243 251 no_collection_label.setBackground(Color.lightGray); 244 252 no_collection_label.setForeground(Color.black); 245 253 no_collection_label.setOpaque(true); 254 no_collection_label.setComponentOrientation(Dictionary.getOrientation()); 246 255 247 256 JPanel no_collection_loaded_panel = new JPanel(); 248 257 no_collection_loaded_panel.setBorder(BorderFactory.createLineBorder(Color.black)); 249 258 no_collection_loaded_panel.setBackground(Color.lightGray); 250 259 no_collection_loaded_panel.setComponentOrientation(Dictionary.getOrientation()); 260 251 261 JLabel no_collection_loaded_label = new JLabel(Dictionary.get("Collection.No_Collection_Loaded")); 252 262 no_collection_loaded_label.setHorizontalAlignment(JLabel.CENTER); 253 263 no_collection_loaded_label.setVerticalAlignment(JLabel.CENTER); 254 264 no_collection_loaded_label.setComponentOrientation(Dictionary.getOrientation()); 265 255 266 // Status pane 256 267 control_pane = new JPanel(); 257 268 control_pane.setComponentOrientation(Dictionary.getOrientation()); 269 258 270 JPanel inner_pane = new JPanel(); 259 271 inner_pane.setSize(STATUS_SIZE); 260 272 inner_pane.setComponentOrientation(Dictionary.getOrientation()); 273 261 274 card_pane = new JPanel(); 275 card_pane.setComponentOrientation(Dictionary.getOrientation()); 276 262 277 JPanel file_pane = new JPanel(); 278 file_pane.setComponentOrientation(Dictionary.getOrientation()); 279 263 280 JPanel progress_pane = new JPanel(); 281 progress_pane.setComponentOrientation(Dictionary.getOrientation()); 282 264 283 JLabel file_status = file_queue.getFileStatus(); 265 284 file_status.setComponentOrientation(Dictionary.getOrientation()); 285 266 286 JProgressBar progress_bar = file_queue.getProgressBar(); 267 287 progress_bar.setComponentOrientation(Dictionary.getOrientation()); 288 268 289 JPanel button_pane = new JPanel(); 269 290 button_pane.setComponentOrientation(Dictionary.getOrientation()); 270 291 RecycleBin recycle_bin = Gatherer.recycle_bin; 271 292 recycle_bin.addActionListener(this); … … 295 316 card_pane.add(collection_pane, COLLECTION_LOADED_CARD); 296 317 297 tree_pane.add(workspace_pane, JSplitPane.LEFT); 298 tree_pane.add(card_pane, JSplitPane.RIGHT); 318 if (Dictionary.getOrientation().isLeftToRight()){ 319 tree_pane.add(workspace_pane, JSplitPane.LEFT); 320 tree_pane.add(card_pane, JSplitPane.RIGHT); 321 }else{ 322 tree_pane.add(workspace_pane, JSplitPane.RIGHT); 323 tree_pane.add(card_pane, JSplitPane.LEFT); 324 } 325 326 299 327 tree_pane.setDividerLocation(TREE_SIZE.width - 10); 300 328 … … 302 330 file_pane.setLayout(new BorderLayout()); 303 331 file_pane.add(file_status, BorderLayout.CENTER); 304 file_pane.add(stop_action, BorderLayout. EAST);332 file_pane.add(stop_action, BorderLayout.LINE_END); 305 333 306 334 progress_pane.setBorder(BorderFactory.createEmptyBorder(2,2,2,2)); … … 318 346 control_pane.setLayout(new BorderLayout()); 319 347 control_pane.add(inner_pane, BorderLayout.CENTER); 320 control_pane.add(button_pane, BorderLayout. EAST);348 control_pane.add(button_pane, BorderLayout.LINE_END); 321 349 322 350 this.setLayout(new BorderLayout()); -
gli/trunk/src/org/greenstone/gatherer/gui/HelpFrame.java
r17916 r18370 81 81 setSize(SIZE); 82 82 setTitle(Dictionary.get("Help.Title")); 83 83 this.setComponentOrientation(Dictionary.getOrientation()); 84 84 85 help_pane = new JEditorPane(); 86 help_pane.setComponentOrientation(Dictionary.getOrientation()); 85 87 help_pane.setEditable(false); 86 88 help_pane.addHyperlinkListener(new HelpPaneHyperlinkListener()); … … 89 91 help_contents_tree_model = new HelpContentsTreeModel(help_tree_root_node); 90 92 help_contents_tree = new JTree((DefaultTreeModel) help_contents_tree_model); 93 help_contents_tree.setComponentOrientation(Dictionary.getOrientation()); 91 94 help_contents_tree.addTreeSelectionListener(new HelpContentsTreeSelectionListener()); 92 95 help_contents_tree.setExpandsSelectedPaths(true); … … 94 97 // Creation 95 98 JPanel content_pane = (JPanel) this.getContentPane(); 96 split_pane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); 99 content_pane.setComponentOrientation(Dictionary.getOrientation()); 100 split_pane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); 97 101 JScrollPane help_contents_tree_scroll = new JScrollPane(help_contents_tree); 102 help_contents_tree_scroll.setComponentOrientation(Dictionary.getOrientation()); 98 103 JScrollPane help_pane_scroll = new JScrollPane(help_pane); 104 help_pane_scroll.setComponentOrientation(Dictionary.getOrientation()); 99 105 100 106 // Layout 101 split_pane.add(help_contents_tree_scroll, JSplitPane.LEFT); 102 split_pane.add(help_pane_scroll, JSplitPane.RIGHT); 107 if (Dictionary.getOrientation().isLeftToRight()){ 108 split_pane.add(help_contents_tree_scroll, JSplitPane.LEFT); 109 split_pane.add(help_pane_scroll, JSplitPane.RIGHT); 110 }else{ 111 split_pane.add(help_contents_tree_scroll, JSplitPane.RIGHT); 112 split_pane.add(help_pane_scroll, JSplitPane.LEFT); 113 } 114 103 115 content_pane.setLayout(new BorderLayout()); 104 116 content_pane.add(split_pane, BorderLayout.CENTER); -
gli/trunk/src/org/greenstone/gatherer/gui/LockFileDialog.java
r12119 r18370 66 66 public LockFileDialog(JFrame parent, String name, File lock_file) { 67 67 super(parent, Dictionary.get("LockFileDialog.Title"), true); 68 this.setComponentOrientation(Dictionary.getOrientation()); 68 69 setSize(SIZE); 69 70 setJMenuBar(new SimpleMenuBar("openingacollection")); … … 75 76 // Creation 76 77 JPanel content_pane = (JPanel) getContentPane(); 78 content_pane.setComponentOrientation(Dictionary.getOrientation()); 77 79 JPanel upper_pane = new JPanel(); 80 upper_pane.setComponentOrientation(Dictionary.getOrientation()); 78 81 ImageIcon icon = JarTools.getImage("lcolicn.gif"); 79 82 ImageIcon scaled_icon = new ImageIcon(icon.getImage().getScaledInstance(ICON_SIZE, ICON_SIZE, Image.SCALE_DEFAULT)); 80 83 JLabel icon_label = new JLabel(scaled_icon); 84 icon_label.setComponentOrientation(Dictionary.getOrientation()); 81 85 JPanel title_pane = new JPanel(); 86 title_pane.setComponentOrientation(Dictionary.getOrientation()); 82 87 JLabel title_one_label = new JLabel(Dictionary.get("General.Warning")); 83 88 title_one_label.setComponentOrientation(Dictionary.getOrientation()); 84 89 JTextArea title_two_textarea = new JTextArea(Dictionary.get("LockFileDialog.Lockfile_Message_One")); 90 title_two_textarea.setComponentOrientation(Dictionary.getOrientation()); 85 91 title_two_textarea.setEditable(false); 86 92 title_two_textarea.setLineWrap(true); … … 89 95 title_two_textarea.setWrapStyleWord(true); 90 96 91 JPanel central_pane = new JPanel(); 92 97 JPanel central_pane = new JPanel(); 98 central_pane.setComponentOrientation(Dictionary.getOrientation()); 99 93 100 JPanel name_pane = new JPanel(); 101 name_pane.setComponentOrientation(Dictionary.getOrientation()); 94 102 JLabel name_label = new JLabel(Dictionary.get("LockFileDialog.Name")); 103 name_label.setComponentOrientation(Dictionary.getOrientation()); 95 104 name_label.setPreferredSize(LABEL_SIZE); 96 105 97 106 JTextField name_field = new JTextField(name); 107 name_field.setComponentOrientation(Dictionary.getOrientation()); 98 108 name_field.setEditable(false); 99 109 name_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 100 110 101 JPanel person_pane = new JPanel(); 102 JLabel person_label = new JLabel(Dictionary.get("LockFileDialog.User")); 111 112 JPanel person_pane = new JPanel(); 113 person_pane.setComponentOrientation(Dictionary.getOrientation()); 114 JLabel person_label = new JLabel(Dictionary.get("LockFileDialog.User")); 115 person_label.setComponentOrientation(Dictionary.getOrientation()); 103 116 person_label.setPreferredSize(LABEL_SIZE); 104 117 105 118 JTextField person_field = new JTextField(getValue("User")); 119 person_field.setComponentOrientation(Dictionary.getOrientation()); 106 120 person_field.setEditable(false); 107 121 person_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 108 122 109 123 JPanel machine_pane = new JPanel(); 124 machine_pane.setComponentOrientation(Dictionary.getOrientation()); 110 125 JLabel machine_label = new JLabel(Dictionary.get("LockFileDialog.Machine")); 126 machine_label.setComponentOrientation(Dictionary.getOrientation()); 111 127 machine_label.setPreferredSize(LABEL_SIZE); 112 128 113 129 JTextField machine_field = new JTextField(getValue("Machine")); 130 machine_field.setComponentOrientation(Dictionary.getOrientation()); 114 131 machine_field.setEditable(false); 115 132 machine_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 116 133 117 134 JPanel created_pane = new JPanel(); 135 created_pane.setComponentOrientation(Dictionary.getOrientation()); 118 136 JLabel created_label = new JLabel(Dictionary.get("LockFileDialog.Date")); 119 137 created_label.setPreferredSize(LABEL_SIZE); 138 created_label.setComponentOrientation(Dictionary.getOrientation()); 120 139 121 140 JTextField created_field = new JTextField(getValue("Date")); 141 created_field.setComponentOrientation(Dictionary.getOrientation()); 122 142 created_field.setEditable(false); 123 143 created_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 124 144 125 145 JLabel central_label = new JLabel(Dictionary.get("LockFileDialog.Lockfile_Message_Two")); 126 146 central_label.setComponentOrientation(Dictionary.getOrientation()); 147 127 148 JPanel button_pane = new JPanel(); 149 button_pane.setComponentOrientation(Dictionary.getOrientation()); 128 150 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("LockFileDialog.OK_Tooltip")); 129 151 … … 142 164 143 165 upper_pane.setLayout(new BorderLayout()); 144 upper_pane.add(icon_label, BorderLayout. WEST);166 upper_pane.add(icon_label, BorderLayout.LINE_START); 145 167 upper_pane.add(title_pane, BorderLayout.CENTER); 146 168 147 169 name_pane.setLayout(new BorderLayout()); 148 name_pane.add(name_label, BorderLayout. WEST);170 name_pane.add(name_label, BorderLayout.LINE_START); 149 171 name_pane.add(name_field, BorderLayout.CENTER); 150 172 151 173 person_pane.setLayout(new BorderLayout()); 152 person_pane.add(person_label, BorderLayout. WEST);174 person_pane.add(person_label, BorderLayout.LINE_START); 153 175 person_pane.add(person_field, BorderLayout.CENTER); 154 176 155 177 machine_pane.setLayout(new BorderLayout()); 156 machine_pane.add(machine_label, BorderLayout. WEST);178 machine_pane.add(machine_label, BorderLayout.LINE_START); 157 179 machine_pane.add(machine_field, BorderLayout.CENTER); 158 180 159 181 created_pane.setLayout(new BorderLayout()); 160 created_pane.add(created_label, BorderLayout. WEST);182 created_pane.add(created_label, BorderLayout.LINE_START); 161 183 created_pane.add(created_field, BorderLayout.CENTER); 162 184 -
gli/trunk/src/org/greenstone/gatherer/gui/MenuBar.java
r14680 r18370 87 87 public MenuBar(MenuListener menu_listener) 88 88 { 89 this.setComponentOrientation(Dictionary.getOrientation()); 90 89 91 file = new JMenu(); 90 92 file.setEnabled(false); 91 93 file.setText(Dictionary.get("Menu.File")); 92 94 file.setComponentOrientation(Dictionary.getOrientation()); 95 93 96 file_associations = new JMenuItem(Dictionary.get("Menu.File_Associations")); 94 97 file_associations.addActionListener(Gatherer.g_man); 95 98 file_associations.setComponentOrientation(Dictionary.getOrientation()); 99 96 100 file_cdimage = new JMenuItem(Dictionary.get("Menu.File_CDimage")); 97 101 file_cdimage.addActionListener(Gatherer.g_man); 98 102 file_cdimage.setEnabled(!Gatherer.isGsdlRemote); 99 103 file_cdimage.setComponentOrientation(Dictionary.getOrientation()); 104 100 105 file_close = new JMenuItem(Dictionary.get("Menu.File_Close")); 101 106 file_close.addActionListener(Gatherer.g_man); 102 107 file_close.setEnabled(false); 103 108 file_close.setComponentOrientation(Dictionary.getOrientation()); 109 104 110 file_delete = new JMenuItem(Dictionary.get("Menu.File_Delete")); 105 111 file_delete.addActionListener(Gatherer.g_man); 106 112 file_delete.setComponentOrientation(Dictionary.getOrientation()); 113 107 114 file_exit = new JMenuItem(Dictionary.get("Menu.File_Exit")); 108 115 file_exit.addActionListener(Gatherer.g_man); 109 116 file_exit.setComponentOrientation(Dictionary.getOrientation()); 117 110 118 file_exportas = new JMenuItem(Dictionary.get("Menu.File_ExportAs")); 111 119 file_exportas.addActionListener(Gatherer.g_man); 112 120 file_exportas.setEnabled((!Gatherer.isGsdlRemote && !Gatherer.GS3)); 121 file_exportas.setComponentOrientation(Dictionary.getOrientation()); 113 122 114 123 file_new = new JMenuItem(Dictionary.get("Menu.File_New")); 115 124 file_new.addActionListener(Gatherer.g_man); 116 125 file_new.setComponentOrientation(Dictionary.getOrientation()); 126 117 127 file_open = new JMenuItem(Dictionary.get("Menu.File_Open")); 118 128 file_open.addActionListener(Gatherer.g_man); 119 129 file_open.setComponentOrientation(Dictionary.getOrientation()); 130 120 131 file_options = new JMenuItem(Dictionary.get("Menu.File_Options")); 121 132 file_options.addActionListener(Gatherer.g_man); 133 file_options.setComponentOrientation(Dictionary.getOrientation()); 122 134 123 135 file_save = new JMenuItem(Dictionary.get("Menu.File_Save")); 124 136 file_save.addActionListener(Gatherer.g_man); 125 137 file_save.setEnabled(false); 126 138 file_save.setComponentOrientation(Dictionary.getOrientation()); 139 127 140 // Layout (file menu) 128 141 file.add(file_new); … … 144 157 edit.setEnabled(false); 145 158 edit.setText(Dictionary.get("Menu.Edit")); 146 159 edit.setComponentOrientation(Dictionary.getOrientation()); 160 147 161 edit_cut = new JMenuItem(Dictionary.get("Menu.Edit_Cut")); 148 162 edit_cut.addActionListener(Gatherer.g_man); 149 163 edit_cut.setComponentOrientation(Dictionary.getOrientation()); 164 150 165 edit_copy = new JMenuItem(Dictionary.get("Menu.Edit_Copy")); 151 166 edit_copy.addActionListener(Gatherer.g_man); 167 edit_copy.setComponentOrientation(Dictionary.getOrientation()); 152 168 153 169 edit_paste = new JMenuItem(Dictionary.get("Menu.Edit_Paste")); 154 170 edit_paste.addActionListener(Gatherer.g_man); 155 171 edit_paste.setComponentOrientation(Dictionary.getOrientation()); 156 172 // Layout (edit menu) 157 173 edit.add(edit_cut); … … 163 179 help.setIcon(HELP_ICON); 164 180 help.setText(Dictionary.get("Menu.Help")); 165 181 help.setComponentOrientation(Dictionary.getOrientation()); 182 166 183 help_general = new JMenuItem(Dictionary.get("Source.General")); 167 184 help_general.addActionListener(Gatherer.g_man); 168 185 help_general.setComponentOrientation(Dictionary.getOrientation()); 186 169 187 help_download = new JMenuItem(Dictionary.get("GUI.Download"), BLANK_ICON); 170 188 help_download.addActionListener(Gatherer.g_man); 171 189 help_download.setComponentOrientation(Dictionary.getOrientation()); 190 172 191 help_gather = new JMenuItem(Dictionary.get("GUI.Gather"), BLANK_ICON); 173 192 help_gather.addActionListener(Gatherer.g_man); 174 193 help_gather.setComponentOrientation(Dictionary.getOrientation()); 194 175 195 help_enrich = new JMenuItem(Dictionary.get("GUI.Enrich"), BLANK_ICON); 176 196 help_enrich.addActionListener(Gatherer.g_man); 177 197 help_enrich.setComponentOrientation(Dictionary.getOrientation()); 198 178 199 help_design = new JMenuItem(Dictionary.get("GUI.Design"), BLANK_ICON); 179 200 help_design.addActionListener(Gatherer.g_man); 180 201 help_design.setComponentOrientation(Dictionary.getOrientation()); 202 181 203 help_create = new JMenuItem(Dictionary.get("GUI.Create"), BLANK_ICON); 182 204 help_create.addActionListener(Gatherer.g_man); 183 205 help_create.setComponentOrientation(Dictionary.getOrientation()); 206 184 207 help_format = new JMenuItem(Dictionary.get("GUI.Format"), BLANK_ICON); 185 208 help_format.addActionListener(Gatherer.g_man); 186 209 help_format.setComponentOrientation(Dictionary.getOrientation()); 210 187 211 help_about = new JMenuItem(Dictionary.get("Menu.Help_About")); 188 212 help_about.addActionListener(Gatherer.g_man); 189 213 help_about.setComponentOrientation(Dictionary.getOrientation()); 214 190 215 // Layout (help menu) 191 216 help.add(help_general); -
gli/trunk/src/org/greenstone/gatherer/gui/MetadataImportMappingPrompt.java
r12119 r18370 39 39 // Construction and configuration 40 40 JDialog dialog = new ModalDialog(Gatherer.g_man); 41 dialog.setComponentOrientation(Dictionary.getOrientation()); 41 42 dialog.setModal(true); 42 43 dialog.setSize(DIALOG_SIZE); … … 72 73 // Layout 73 74 JPanel left_pane = new JPanel(); 75 left_pane.setComponentOrientation(Dictionary.getOrientation()); 74 76 left_pane.setLayout(new GridLayout(3,1)); 75 left_pane.add(new JLabel(Dictionary.get("MIMP.Source_Element"))); 76 left_pane.add(new JLabel(Dictionary.get("MIMP.Target_Set"))); 77 left_pane.add(new JLabel(Dictionary.get("MIMP.Target_Element"))); 77 78 JLabel tmp_lable; 79 80 tmp_lable = new JLabel(Dictionary.get("MIMP.Source_Element")); 81 tmp_lable.setComponentOrientation(Dictionary.getOrientation()); 82 left_pane.add(tmp_lable); 83 84 tmp_lable = new JLabel(Dictionary.get("MIMP.Target_Set")); 85 tmp_lable.setComponentOrientation(Dictionary.getOrientation()); 86 left_pane.add(tmp_lable); 87 88 tmp_lable = new JLabel(Dictionary.get("MIMP.Target_Element")); 89 tmp_lable.setComponentOrientation(Dictionary.getOrientation()); 90 left_pane.add(tmp_lable); 78 91 79 92 JPanel right_pane = new JPanel(); 93 right_pane.setComponentOrientation(Dictionary.getOrientation()); 94 80 95 right_pane.setLayout(new GridLayout(3,1)); 81 right_pane.add(new JLabel(metadata_element_name_full)); 96 tmp_lable = new JLabel(metadata_element_name_full); 97 tmp_lable.setComponentOrientation(Dictionary.getOrientation()); 98 right_pane.add(tmp_lable); 82 99 right_pane.add(metadata_sets_combobox); 83 100 right_pane.add(metadata_elements_combobox); 84 101 85 102 JPanel button_pane = new JPanel(); 103 button_pane.setComponentOrientation(Dictionary.getOrientation()); 86 104 button_pane.setBorder(BorderFactory.createEmptyBorder(0,5,5,5)); 87 105 button_pane.setLayout(new GridLayout(1,3)); … … 91 109 92 110 JPanel content_pane = (JPanel) dialog.getContentPane(); 111 content_pane.setComponentOrientation(Dictionary.getOrientation()); 93 112 content_pane.setLayout(new BorderLayout()); 94 113 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 95 content_pane.add(left_pane, BorderLayout. WEST);114 content_pane.add(left_pane, BorderLayout.LINE_START); 96 115 content_pane.add(right_pane, BorderLayout.CENTER); 97 116 content_pane.add(button_pane, BorderLayout.SOUTH); -
gli/trunk/src/org/greenstone/gatherer/gui/MetadataSetDialog.java
r13681 r18370 43 43 super(Gatherer.g_man, true); 44 44 set_dialog = this; 45 45 this.setComponentOrientation(Dictionary.getOrientation()); 46 46 setJMenuBar(new SimpleMenuBar("selectingmetadatasets")); 47 47 setSize(SIZE); … … 56 56 } 57 57 JPanel content_pane = (JPanel) getContentPane(); 58 content_pane.setComponentOrientation(Dictionary.getOrientation()); 58 59 content_pane.setOpaque(true); 59 60 60 61 JLabel current_metadata_sets_label = new JLabel(Dictionary.get("MetadataSetDialog.Current_Sets")); 61 current_metadata_sets_label.setOpaque(true); 62 current_metadata_sets_label.setComponentOrientation(Dictionary.getOrientation()); 63 current_metadata_sets_label.setOpaque(true); 62 64 current_set_list = new JList(current_metadata_model); 65 current_set_list.setComponentOrientation(Dictionary.getOrientation()); 63 66 current_set_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 64 67 65 68 JPanel button_pane = new JPanel(); 69 button_pane.setComponentOrientation(Dictionary.getOrientation()); 66 70 add_button = new GLIButton(Dictionary.get("MetadataSetDialog.Add"), Dictionary.get("MetadataSetDialog.Add_Tooltip")); 67 71 add_button.setEnabled(true); … … 98 102 content_pane.setLayout(new BorderLayout()); 99 103 content_pane.add(current_metadata_sets_label, BorderLayout.NORTH); 100 content_pane.add(new JScrollPane(current_set_list), BorderLayout.CENTER); 104 JScrollPane scrol_tmp; 105 scrol_tmp = new JScrollPane(current_set_list); 106 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 107 content_pane.add(scrol_tmp, BorderLayout.CENTER); 101 108 content_pane.add(button_pane, BorderLayout.SOUTH); 102 109 … … 202 209 public AddMetadataSetPrompt() { 203 210 super(Gatherer.g_man, true); 211 this.setComponentOrientation(Dictionary.getOrientation()); 204 212 add_set_dialog = this; 205 213 setModal(true); … … 211 219 212 220 JPanel center_pane = new JPanel(); 221 center_pane.setComponentOrientation(Dictionary.getOrientation()); 213 222 JPanel sets_pane = new JPanel(); 223 sets_pane.setComponentOrientation(Dictionary.getOrientation()); 214 224 JLabel sets_label = new JLabel(Dictionary.get("MetadataSetDialog.Available_Sets")); 225 sets_label.setComponentOrientation(Dictionary.getOrientation()); 215 226 sets_label.setOpaque(false); 216 227 217 228 available_sets_list = new JList(getValidSetModel()); 229 available_sets_list.setComponentOrientation(Dictionary.getOrientation()); 218 230 available_sets_list.addListSelectionListener(new AvailableSetListSelectionListener()); 219 231 available_sets_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 232 220 233 JPanel elements_pane = new JPanel(); 234 elements_pane.setComponentOrientation(Dictionary.getOrientation()); 221 235 JLabel elements_label = new JLabel(Dictionary.get("MetadataSetDialog.Elements")); 222 236 elements_label.setComponentOrientation(Dictionary.getOrientation()); 237 223 238 elements_list = new JList(); 239 elements_list.setComponentOrientation(Dictionary.getOrientation()); 224 240 elements_list.setCellRenderer(new MetadataElementListCellRenderer()); 225 241 elements_list.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); … … 229 245 230 246 JPanel button_pane = new JPanel(); 247 button_pane.setComponentOrientation(Dictionary.getOrientation()); 231 248 add_button = new GLIButton(Dictionary.get("MetadataSetDialog.Add_Set"), Dictionary.get("MetadataSetDialog.Add_Set_Tooltip")); 232 249 add_button.setEnabled(false); … … 283 300 284 301 JPanel content_pane = (JPanel) getContentPane(); 302 content_pane.setComponentOrientation(Dictionary.getOrientation()); 285 303 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 286 304 content_pane.setLayout(new BorderLayout()); … … 292 310 setLocation((screen_size.width - ADD_SIZE.width) / 2, (screen_size.height - ADD_SIZE.height) / 2); 293 311 setVisible(true); 294 295 296 312 297 313 } 298 314 … … 368 384 public void actionPerformed(ActionEvent event) { 369 385 JFileChooser chooser = new JFileChooser(new File(Gatherer.getGLIMetadataDirectoryPath())); 386 chooser.setComponentOrientation(Dictionary.getOrientation()); 370 387 chooser.setFileFilter(new MetadataSet.MetadataSetFileFilter()); 371 388 chooser.setDialogTitle(Dictionary.get("MetadataSetDialog.Add_Title")); -
gli/trunk/src/org/greenstone/gatherer/gui/MetadataValueTablePane.java
r12345 r18370 65 65 { 66 66 super(); 67 67 this.setComponentOrientation(Dictionary.getOrientation()); 68 68 metadata_value_table = new MetadataValueTable(); 69 69 … … 71 71 metadata_value_table_scroll.getViewport().setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 72 72 metadata_value_table_scroll.setOpaque(true); 73 73 metadata_value_table_scroll.setComponentOrientation(Dictionary.getOrientation()); 74 74 75 JPanel metadata_value_table_pane = new JPanel(); 75 76 metadata_value_table_pane.setLayout(new BorderLayout()); 76 77 metadata_value_table_pane.add(metadata_value_table_scroll, BorderLayout.CENTER); 77 78 metadata_value_table_pane.setComponentOrientation(Dictionary.getOrientation()); 79 78 80 JLabel no_metadata_available_label = new JLabel(Dictionary.get("EnrichPane.No_Metadata")); 79 81 no_metadata_available_label.setHorizontalAlignment(JLabel.CENTER); 80 82 no_metadata_available_label.setOpaque(false); 81 83 no_metadata_available_label.setVerticalAlignment(JLabel.CENTER); 82 84 no_metadata_available_label.setComponentOrientation(Dictionary.getOrientation()); 85 83 86 JPanel no_metadata_available_pane = new JPanel(); 84 87 no_metadata_available_pane.setLayout(new BorderLayout()); 85 88 no_metadata_available_pane.add(no_metadata_available_label, BorderLayout.CENTER); 86 89 no_metadata_available_pane.setComponentOrientation(Dictionary.getOrientation()); 90 87 91 JLabel no_files_selected_label = new JLabel(Dictionary.get("EnrichPane.No_File")); 88 92 no_files_selected_label.setHorizontalAlignment(JLabel.CENTER); 89 93 no_files_selected_label.setOpaque(false); 90 94 no_files_selected_label.setVerticalAlignment(JLabel.CENTER); 91 95 no_files_selected_label.setComponentOrientation(Dictionary.getOrientation()); 96 92 97 JPanel no_files_selected_pane = new JPanel(); 93 98 no_files_selected_pane.setLayout(new BorderLayout()); 94 99 no_files_selected_pane.add(no_files_selected_label, BorderLayout.CENTER); 95 100 no_files_selected_pane.setComponentOrientation(Dictionary.getOrientation()); 101 96 102 card_layout = new CardLayout(); 97 103 … … 186 192 public MetadataValueTable() 187 193 { 194 this.setComponentOrientation(Dictionary.getOrientation()); 188 195 // Create the model for the table 189 196 metadata_value_table_model = new MetadataValueTableModel(); … … 199 206 metadata_value_text_field.addMouseListener(new MetadataValueTextFieldMouseListener()); 200 207 metadata_value_text_field.setBorder(null); 208 metadata_value_text_field.setComponentOrientation(Dictionary.getOrientation()); 201 209 202 210 // We need to listen for key presses so we can catch Enter presses … … 208 216 // We also have to ensure that the table column header hasn't gone on a severe Jenny Craig binge and has somehow lost 7/8th of its component size 209 217 JTableHeader table_header = getTableHeader(); 218 table_header.setComponentOrientation(Dictionary.getOrientation()); 219 210 220 Dimension table_header_preferred_size = table_header.getPreferredSize(); 211 221 if (table_header_preferred_size.height < MINIMUM_TABLE_HEADER_SIZE) { … … 319 329 { 320 330 JComponent component = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); 321 331 component.setComponentOrientation(Dictionary.getOrientation()); 332 322 333 int real_column = table.convertColumnIndexToModel(column); 323 334 // First column: inherited metadata icon -
gli/trunk/src/org/greenstone/gatherer/gui/MetadataValueTreePane.java
r12119 r18370 98 98 { 99 99 super(); 100 100 JScrollPane scrol_tmp; 101 this.setComponentOrientation(Dictionary.getOrientation()); 102 metadata_value_tree_label.setComponentOrientation(Dictionary.getOrientation()); 101 103 // Card containing the metadata value tree 102 104 metadata_value_tree = new JTree(); 105 metadata_value_tree.setComponentOrientation(Dictionary.getOrientation()); 103 106 metadata_value_tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); 104 107 metadata_value_tree.setModel(null); … … 107 110 108 111 JPanel metadata_value_tree_pane = new JPanel(); 112 metadata_value_tree_pane.setComponentOrientation(Dictionary.getOrientation()); 109 113 metadata_value_tree_pane.setLayout(new BorderLayout()); 110 114 metadata_value_tree_pane.add(metadata_value_tree_label, BorderLayout.NORTH); 111 metadata_value_tree_pane.add(new JScrollPane(metadata_value_tree), BorderLayout.CENTER); 115 scrol_tmp = new JScrollPane(metadata_value_tree); 116 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 117 metadata_value_tree_pane.add(scrol_tmp, BorderLayout.CENTER); 112 118 113 119 // Card containing the "extracted metadata element selected" message 114 120 extracted_metadata_element_selected_message = new JTextArea(""); 121 extracted_metadata_element_selected_message.setComponentOrientation(Dictionary.getOrientation()); 115 122 extracted_metadata_element_selected_message.setEditable(false); 116 123 extracted_metadata_element_selected_message.setLineWrap(true); … … 119 126 120 127 JPanel extracted_metadata_element_selected_pane = new JPanel(); 128 extracted_metadata_element_selected_pane.setComponentOrientation(Dictionary.getOrientation()); 121 129 extracted_metadata_element_selected_pane.setBorder(BorderFactory.createEmptyBorder(25,0,0,0)); 122 130 extracted_metadata_element_selected_pane.setLayout(new BorderLayout()); … … 129 137 inherited_metadata_selected_message.setOpaque(false); 130 138 inherited_metadata_selected_message.setWrapStyleWord(true); 139 inherited_metadata_selected_message.setComponentOrientation(Dictionary.getOrientation()); 131 140 132 141 JPanel inherited_metadata_selected_pane = new JPanel(); … … 134 143 inherited_metadata_selected_pane.setLayout(new BorderLayout()); 135 144 inherited_metadata_selected_pane.add(inherited_metadata_selected_message, BorderLayout.CENTER); 136 145 inherited_metadata_selected_pane.setComponentOrientation(Dictionary.getOrientation()); 137 146 // Card containing the "not one file only metadata selected" message 138 147 JTextArea not_one_file_only_metadata_selected_message = new JTextArea(Dictionary.get("EnrichPane.NotOneFileOnlyMetadataSelected")); … … 141 150 not_one_file_only_metadata_selected_message.setOpaque(false); 142 151 not_one_file_only_metadata_selected_message.setWrapStyleWord(true); 143 152 not_one_file_only_metadata_selected_message.setComponentOrientation(Dictionary.getOrientation()); 153 144 154 JPanel not_one_file_only_metadata_selected_pane = new JPanel(); 145 155 not_one_file_only_metadata_selected_pane.setBorder(BorderFactory.createEmptyBorder(25,0,0,0)); 146 156 not_one_file_only_metadata_selected_pane.setLayout(new BorderLayout()); 147 157 not_one_file_only_metadata_selected_pane.add(not_one_file_only_metadata_selected_message, BorderLayout.CENTER); 148 158 not_one_file_only_metadata_selected_pane.setComponentOrientation(Dictionary.getOrientation()); 159 149 160 // Card containing the "no metadata element selected" message 150 161 JLabel no_metadata_element_selected_label = new JLabel(Dictionary.get("EnrichPane.No_Metadata_Element")); … … 152 163 no_metadata_element_selected_label.setOpaque(false); 153 164 no_metadata_element_selected_label.setVerticalAlignment(JLabel.CENTER); 154 165 no_metadata_element_selected_label.setComponentOrientation(Dictionary.getOrientation()); 166 155 167 JPanel no_metadata_element_selected_pane = new JPanel(); 156 168 no_metadata_element_selected_pane.setLayout(new BorderLayout()); 157 169 no_metadata_element_selected_pane.add(no_metadata_element_selected_label, BorderLayout.CENTER); 158 170 no_metadata_element_selected_pane.setComponentOrientation(Dictionary.getOrientation()); 171 159 172 card_layout = new CardLayout(); 160 173 161 174 this.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 162 175 this.setFont(Configuration.getFont("general.font", false)); -
gli/trunk/src/org/greenstone/gatherer/gui/ModalProgressPopup.java
r9340 r18370 31 31 import javax.swing.*; 32 32 import org.greenstone.gatherer.Configuration; 33 import org.greenstone.gatherer.Dictionary; 33 34 import org.greenstone.gatherer.Gatherer; 34 35 … … 47 48 super(Gatherer.g_man, title); 48 49 this.message = message; 50 this.setComponentOrientation(Dictionary.getOrientation()); 49 51 } 50 52 … … 66 68 // Create 67 69 JProgressBar progress_bar = new JProgressBar(); 70 progress_bar.setComponentOrientation(Dictionary.getOrientation()); 68 71 progress_bar.setIndeterminate(true); 69 72 70 73 // Layout 71 74 JPanel content_pane = (JPanel) getContentPane(); 75 content_pane.setComponentOrientation(Dictionary.getOrientation()); 72 76 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 73 77 content_pane.setLayout(new BorderLayout()); 74 content_pane.add(new JLabel(message), BorderLayout.NORTH); 78 79 JLabel tmp = new JLabel(message); 80 tmp.setComponentOrientation(Dictionary.getOrientation()); 81 82 content_pane.add(tmp, BorderLayout.NORTH); 75 83 content_pane.add(progress_bar, BorderLayout.CENTER); 76 84 -
gli/trunk/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java
r18130 r18370 90 90 */ 91 91 public NewCollectionDetailsPrompt() { 92 super(Gatherer.g_man, true); 92 super(Gatherer.g_man, true); 93 93 this.cancelled = true; 94 this.setComponentOrientation(Dictionary.getOrientation()); 94 95 this.self = this; 95 96 // Setup … … 121 122 // Creation 122 123 JPanel content_pane = (JPanel) getContentPane(); 124 content_pane.setComponentOrientation(Dictionary.getOrientation()); 123 125 content_pane.setOpaque(true); 124 126 JPanel upper_pane = new JPanel(); 127 upper_pane.setComponentOrientation(Dictionary.getOrientation()); 125 128 JLabel instructions_label = new JLabel(Dictionary.get("NewCollectionPrompt.Instructions")); 126 129 instructions_label.setComponentOrientation(Dictionary.getOrientation()); 130 127 131 JPanel title_pane = new JPanel(); 132 title_pane.setComponentOrientation(Dictionary.getOrientation()); 128 133 JLabel title_label = new JLabel(Dictionary.get("CDM.General.Collection_Name")); 134 title_label.setComponentOrientation(Dictionary.getOrientation()); 129 135 title = new JTextField(); 136 title.setComponentOrientation(Dictionary.getOrientation()); 130 137 title.setPreferredSize(COMPONENT_SIZE); 131 138 title.setToolTipText(Dictionary.get("CDM.General.Collection_Name_Tooltip")); 132 139 JLabel name_label = new JLabel(Dictionary.get("NewCollectionPrompt.Collection_Name")); 133 140 name_label.setComponentOrientation(Dictionary.getOrientation()); 141 134 142 JPanel center_pane = new JPanel(); 143 center_pane.setComponentOrientation(Dictionary.getOrientation()); 135 144 JPanel description_pane = new JPanel(); 145 description_pane.setComponentOrientation(Dictionary.getOrientation()); 136 146 JLabel description_label = new JLabel(Dictionary.get("NewCollectionPrompt.Collection_Description")); 147 description_label.setComponentOrientation(Dictionary.getOrientation()); 137 148 description = new JTextArea(); 149 description.setComponentOrientation(Dictionary.getOrientation()); 138 150 description.setBackground(Configuration.getColor("coloring.editable_background", false)); 139 151 description.setForeground(Configuration.getColor("coloring.editable_foreground", false)); … … 142 154 143 155 JPanel bottom_pane = new JPanel(); 156 bottom_pane.setComponentOrientation(Dictionary.getOrientation()); 144 157 // Base Collection 145 158 JPanel base_collection_pane = new JPanel(); 146 JLabel base_collection_label = new JLabel(Dictionary.get("NewCollectionPrompt.Base_Collection")); 147 base_collection = new JComboBox(base_collection_model); 159 base_collection_pane.setComponentOrientation(Dictionary.getOrientation()); 160 161 JLabel base_collection_label = new JLabel(Dictionary.get("NewCollectionPrompt.Base_Collection")); 162 base_collection_label.setComponentOrientation(Dictionary.getOrientation()); 163 164 base_collection = new JComboBox(base_collection_model); 165 base_collection.setComponentOrientation(Dictionary.getOrientation()); 148 166 base_collection.setOpaque(false); 149 167 base_collection.setToolTipText(Dictionary.get("NewCollectionPrompt.Base_Collection_Tooltip")); 150 168 151 169 JPanel collection_scope_pane = new JPanel(); 152 personal_collection_button = new JRadioButton(Dictionary.get("NewCollectionPrompt.Collection_Scope_Personal")); 170 collection_scope_pane.setComponentOrientation(Dictionary.getOrientation()); 171 172 personal_collection_button = new JRadioButton(Dictionary.get("NewCollectionPrompt.Collection_Scope_Personal")); 153 173 personal_collection_button.setToolTipText(Dictionary.get("NewCollectionPrompt.Collection_Scope_Personal_Tooltip")); 154 174 personal_collection_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 155 175 personal_collection_button.setOpaque(false); 156 JRadioButton shared_collection_button = new JRadioButton(Dictionary.get("NewCollectionPrompt.Collection_Scope_Shared")); 176 personal_collection_button.setComponentOrientation(Dictionary.getOrientation()); 177 178 JRadioButton shared_collection_button = new JRadioButton(Dictionary.get("NewCollectionPrompt.Collection_Scope_Shared")); 157 179 shared_collection_button.setToolTipText(Dictionary.get("NewCollectionPrompt.Collection_Scope_Shared_Tooltip")); 158 180 shared_collection_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 159 181 shared_collection_button.setOpaque(false); 160 ButtonGroup collection_scope_group = new ButtonGroup(); 182 shared_collection_button.setComponentOrientation(Dictionary.getOrientation()); 183 184 ButtonGroup collection_scope_group = new ButtonGroup(); 161 185 collection_scope_group.add(personal_collection_button); 162 186 collection_scope_group.add(shared_collection_button); … … 164 188 165 189 JPanel button_pane = new JPanel(); 190 button_pane.setComponentOrientation(Dictionary.getOrientation()); 166 191 create_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 167 192 JButton cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); … … 174 199 // Layout 175 200 title_pane.setLayout(new BorderLayout(5,0)); 176 title_pane.add(title_label, BorderLayout. WEST);201 title_pane.add(title_label, BorderLayout.LINE_START); 177 202 title_pane.add(title, BorderLayout.CENTER); 178 203 … … 181 206 upper_pane.add(title_pane); 182 207 208 JScrollPane scrol_tmp; 209 183 210 description_pane.setLayout(new BorderLayout()); 184 description_pane.add(description_label, BorderLayout.NORTH); 185 description_pane.add(new JScrollPane(description), BorderLayout.CENTER); 211 description_pane.add(description_label, BorderLayout.NORTH); 212 scrol_tmp=new JScrollPane(description); 213 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 214 description_pane.add(scrol_tmp, BorderLayout.CENTER); 186 215 187 216 base_collection_pane.setLayout(new BorderLayout(5,0)); 188 base_collection_pane.add(base_collection_label, BorderLayout. WEST);217 base_collection_pane.add(base_collection_label, BorderLayout.LINE_START); 189 218 base_collection_pane.add(base_collection, BorderLayout.CENTER); 190 219 … … 342 371 if(title_final.length() == 0) { 343 372 JOptionPane jOptionPane=new JOptionPane(); 373 jOptionPane.setComponentOrientation(Dictionary.getOrientation()); 344 374 jOptionPane.setOpaque(!Utility.isMac()); 345 375 jOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE); … … 350 380 if(titleClashes(title_final, null)) { 351 381 JOptionPane jOptionPane=new JOptionPane(); 382 jOptionPane.setComponentOrientation(Dictionary.getOrientation()); 352 383 jOptionPane.setOpaque(!Utility.isMac()); 353 384 if (jOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Clash"), Dictionary.get("General.Warning"), JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION) { -
gli/trunk/src/org/greenstone/gatherer/gui/NewFolderOrFilePrompt.java
r12119 r18370 62 62 public NewFolderOrFilePrompt(CollectionTreeNode node, int type, String extension) { 63 63 super(Gatherer.g_man, true); 64 this.setComponentOrientation(Dictionary.getOrientation()); 64 65 if (type == FileManager.FILE_TYPE) { 65 66 setTitle(Dictionary.get("NewFolderOrFilePrompt.Title_File")); … … 87 88 setSize(SIZE); 88 89 JPanel content_pane = (JPanel) getContentPane(); 89 90 content_pane.setComponentOrientation(Dictionary.getOrientation()); 91 90 92 JPanel labels_pane = new JPanel(); 93 labels_pane.setComponentOrientation(Dictionary.getOrientation()); 91 94 JPanel fields_pane = new JPanel(); 95 fields_pane.setComponentOrientation(Dictionary.getOrientation()); 92 96 JPanel info_pane = new JPanel(); 97 info_pane.setComponentOrientation(Dictionary.getOrientation()); 93 98 94 99 JLabel destination_label = new JLabel(Dictionary.get("NewFolderOrFilePrompt.Destination_Name")); 95 100 destination_label.setComponentOrientation(Dictionary.getOrientation()); 101 96 102 JTextField destination_textfield = new JTextField(node.getFile().getName()); 103 destination_textfield.setComponentOrientation(Dictionary.getOrientation()); 97 104 destination_textfield.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 98 105 destination_textfield.setEditable(false); 99 106 100 107 JLabel name_label = new JLabel(); 108 name_label.setComponentOrientation(Dictionary.getOrientation());; 101 109 name_field = new JTextField(getAutomaticName()); 110 name_field.setComponentOrientation(Dictionary.getOrientation()); 102 111 if (type == FileManager.FILE_TYPE) { 103 112 name_label.setText(Dictionary.get("NewFolderOrFilePrompt.File_Name")); … … 108 117 } 109 118 JPanel button_pane = new JPanel(); 119 button_pane.setComponentOrientation(Dictionary.getOrientation()); 110 120 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 111 121 … … 126 136 127 137 info_pane.setLayout(new BorderLayout(5,0)); 128 info_pane.add(labels_pane, BorderLayout. WEST);138 info_pane.add(labels_pane, BorderLayout.LINE_START); 129 139 info_pane.add(fields_pane, BorderLayout.CENTER); 130 140 -
gli/trunk/src/org/greenstone/gatherer/gui/NonWhitespaceField.java
r5589 r18370 33 33 import javax.swing.*; 34 34 import javax.swing.text.*; 35 import org.greenstone.gatherer.Dictionary; 36 35 37 /** A JTextField that doesn't allow whitespace characters. 36 38 * @author John Thompson, Greenstone Digital Library, University of Waikato … … 42 44 public NonWhitespaceField() { 43 45 super(); 46 this.setComponentOrientation(Dictionary.getOrientation()); 44 47 } 45 48 46 49 public NonWhitespaceField(String text) { 47 50 super(text); 51 this.setComponentOrientation(Dictionary.getOrientation()); 48 52 } 49 53 50 54 protected Document createDefaultModel() { 51 return new NonWhitespaceDocument(); 55 return new NonWhitespaceDocument(); 52 56 } 53 57 -
gli/trunk/src/org/greenstone/gatherer/gui/OpenCollectionDialog.java
r16267 r18370 67 67 super(Gatherer.g_man, "", true); 68 68 setJMenuBar(new SimpleMenuBar("openingacollection")); 69 this.setComponentOrientation(Dictionary.getOrientation()); 69 70 setSize(SIZE); 70 71 setTitle(Dictionary.get("OpenCollectionDialog.Title")); … … 72 73 // Creation 73 74 JPanel content_pane = (JPanel) getContentPane(); 74 75 content_pane.setComponentOrientation(Dictionary.getOrientation()); 76 75 77 JPanel center_pane = new JPanel(); 76 78 center_pane.setComponentOrientation(Dictionary.getOrientation()); 79 77 80 JPanel collection_list_pane = new JPanel(); 81 collection_list_pane.setComponentOrientation(Dictionary.getOrientation()); 78 82 JLabel collection_list_label = new JLabel(Dictionary.get("OpenCollectionDialog.Available_Collections")); 83 collection_list_label.setComponentOrientation(Dictionary.getOrientation()); 79 84 collection_list = new JList(new CollectionListModel()); 85 collection_list.setComponentOrientation(Dictionary.getOrientation()); 86 80 87 description_pane = new JPanel(); 88 description_pane.setComponentOrientation(Dictionary.getOrientation()); 81 89 card_layout = new CardLayout(); 82 90 83 91 JPanel blank_pane = new JPanel(); 84 92 blank_pane.setComponentOrientation(Dictionary.getOrientation()); 93 85 94 JPanel description_textarea_pane = new JPanel(); 95 description_textarea_pane.setComponentOrientation(Dictionary.getOrientation()); 86 96 JLabel description_textarea_label = new JLabel(Dictionary.get("OpenCollectionDialog.Description")); 97 description_textarea_label.setComponentOrientation(Dictionary.getOrientation()); 87 98 description_textarea = new JTextArea(); 88 99 description_textarea.setComponentOrientation(Dictionary.getOrientation()); 100 89 101 JPanel button_pane = new JPanel(); 102 button_pane.setComponentOrientation(Dictionary.getOrientation()); 90 103 open_button = new GLIButton(Dictionary.get("OpenCollectionDialog.Open"), Dictionary.get("OpenCollectionDialog.Open_Tooltip")); 91 104 open_button.setEnabled(false); … … 102 115 103 116 // Layout 117 JScrollPane scrol_tmp; 118 104 119 collection_list_pane.setLayout(new BorderLayout()); 105 120 collection_list_pane.add(collection_list_label, BorderLayout.NORTH); 106 collection_list_pane.add(new JScrollPane(collection_list), BorderLayout.CENTER); 121 scrol_tmp = new JScrollPane(collection_list); 122 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 123 collection_list_pane.add(scrol_tmp, BorderLayout.CENTER); 107 124 108 125 description_textarea_pane.setLayout(new BorderLayout()); 109 126 description_textarea_pane.add(description_textarea_label, BorderLayout.NORTH); 110 description_textarea_pane.add(new JScrollPane(description_textarea), BorderLayout.CENTER); 127 scrol_tmp =new JScrollPane(description_textarea); 128 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 129 description_textarea_pane.add(scrol_tmp, BorderLayout.CENTER); 111 130 112 131 description_pane.setLayout(card_layout); … … 119 138 120 139 button_pane.setLayout(new GridLayout(1,4)); 121 button_pane.add(new JPanel()); 140 JPanel tmp =new JPanel(); 141 tmp.setComponentOrientation(Dictionary.getOrientation()); 142 button_pane.add(tmp); 122 143 button_pane.add(open_button); 123 144 button_pane.add(cancel_button); … … 348 369 } 349 370 } 350 351 371 } 352 372 -
gli/trunk/src/org/greenstone/gatherer/gui/OptionsPane.java
r16133 r18370 102 102 this.current_controls = new ArrayList(); 103 103 this.writing_documents = new Vector(); 104 104 this.setComponentOrientation(Dictionary.getOrientation()); 105 105 106 // Have to do this here, not in display, as the message log view may not have been displayed yet. 106 107 log_textarea = new JTextArea(); 108 log_textarea.setComponentOrientation(Dictionary.getOrientation()); 107 109 log_textarea.setEditable(false); 108 110 } … … 152 154 if(pane == null || current_mode >= Configuration.EXPERT_MODE) { 153 155 pane = new JPanel(); 156 pane.setComponentOrientation(Dictionary.getOrientation()); 154 157 pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 155 158 pane.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); … … 275 278 if(pane == null || current_mode >= Configuration.EXPERT_MODE) { 276 279 pane = new JPanel(); 280 pane.setComponentOrientation(Dictionary.getOrientation()); 277 281 pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 278 282 pane.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); … … 308 312 if (log_pane == null) { 309 313 log_pane = new JPanel(new BorderLayout()); 310 314 log_pane.setComponentOrientation(Dictionary.getOrientation()); 311 315 // Build a list of the log files available, ordering by last modified. Log files are like build_log.date.txt 312 316 DefaultListModel contents = new DefaultListModel(); … … 337 341 338 342 log_list = new JList(contents); 343 log_list.setComponentOrientation(Dictionary.getOrientation()); 339 344 log_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 340 345 log_list.setLayoutOrientation(JList.VERTICAL); … … 344 349 345 350 JLabel log_history_label = new JLabel(Dictionary.get("OptionsPane.LogHistory")); 346 JPanel log_history_pane = new JPanel(); 351 log_history_label.setComponentOrientation(Dictionary.getOrientation()); 352 JPanel log_history_pane = new JPanel(); 353 log_history_pane.setComponentOrientation(Dictionary.getOrientation()); 347 354 log_history_pane.setPreferredSize(new Dimension(600, 100)); 348 355 log_history_pane.setLayout(new BorderLayout()); 349 356 log_history_pane.add(log_history_label, BorderLayout.NORTH); 350 log_history_pane.add(new JScrollPane(log_list), BorderLayout.CENTER); 357 JScrollPane scrol_tmp=new JScrollPane(log_list); 358 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 359 log_history_pane.add(scrol_tmp, BorderLayout.CENTER); 351 360 352 log_pane.add(new JScrollPane(log_textarea), BorderLayout.CENTER); 361 scrol_tmp=new JScrollPane(log_textarea); 362 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 363 log_pane.add(scrol_tmp, BorderLayout.CENTER); 353 364 log_pane.add(log_history_pane, BorderLayout.SOUTH); 354 365 } -
gli/trunk/src/org/greenstone/gatherer/gui/Preferences.java
r17612 r18370 111 111 // Creation 112 112 JPanel content_pane = (JPanel) getContentPane(); 113 content_pane.setComponentOrientation(Dictionary.getOrientation()); 113 114 tab_pane = new JTabbedPane(); 115 tab_pane.setComponentOrientation(Dictionary.getOrientation()); 114 116 JPanel general_preferences = createGeneralPreferences(); 117 general_preferences.setComponentOrientation(Dictionary.getOrientation()); 115 118 tab_pane.addTab(Dictionary.get("Preferences.General"), null, general_preferences, Dictionary.get("Preferences.General_Tooltip")); 116 119 tab_pane.addTab(Dictionary.get("Preferences.Mode"), null, createModePreferences(), Dictionary.get("Preferences.Mode_Tooltip")); 117 120 // tab_pane.addTab(Dictionary.get("Preferences.Workflow"), null, createWorkflowPreferences(), Dictionary.get("Preferences.Workflow_Tooltip")); 118 121 JPanel connection_preferences = createConnectionPreferences(); 122 connection_preferences.setComponentOrientation(Dictionary.getOrientation()); 119 123 tab_pane.addTab(Dictionary.get("Preferences.Connection"), null, connection_preferences, Dictionary.get("Preferences.Connection_Tooltip")); 120 124 tab_pane.addTab(Dictionary.get("Preferences.Warnings"), null, createWarningPreferences(), Dictionary.get("Preferences.Warnings_Tooltip")); 121 125 122 126 JPanel button_pane = new JPanel(); 127 button_pane.setComponentOrientation(Dictionary.getOrientation()); 123 128 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 124 129 … … 138 143 button_pane.add(apply_button); 139 144 button_pane.add(cancel_button); 140 145 button_pane.setComponentOrientation(Dictionary.getOrientation()); 146 141 147 content_pane.setLayout(new BorderLayout()); 142 148 content_pane.add(tab_pane, BorderLayout.CENTER); 143 149 content_pane.add(button_pane, BorderLayout.SOUTH); 144 150 content_pane.setComponentOrientation(Dictionary.getOrientation()); 151 145 152 Dimension frame_size = Gatherer.g_man.getSize(); 146 153 Point frame_location = Gatherer.g_man.getLocation(); … … 171 178 private JPanel createConnectionPreferences() { 172 179 JPanel program_pane = new JPanel(); 180 program_pane.setComponentOrientation(Dictionary.getOrientation()); 173 181 program_pane.setPreferredSize(ROW_SIZE); 174 182 JLabel program_label = new JLabel(Dictionary.get("Preferences.Connection.ProgramCommand")); 175 183 program_label.setPreferredSize(LABEL_SIZE); 176 184 program_label.setComponentOrientation(Dictionary.getOrientation()); 185 177 186 program_field = new JTextField(Configuration.getPreviewCommand()); 178 187 program_field.setCaretPosition(0); 179 188 program_field.setToolTipText(Dictionary.get("Preferences.Connection.ProgramCommand_Tooltip")); 180 189 program_field.setComponentOrientation(Dictionary.getOrientation()); 190 181 191 JPanel library_path_pane = new JPanel(); 182 192 library_path_pane.setPreferredSize(ROW_SIZE); 193 library_path_pane.setComponentOrientation(Dictionary.getOrientation()); 183 194 JLabel library_path_label = new JLabel(); 184 195 library_path_label.setPreferredSize(LABEL_SIZE); 196 library_path_label.setComponentOrientation(Dictionary.getOrientation()); 185 197 String library_url_string = ""; 186 198 if (Configuration.library_url != null) { … … 189 201 library_path_field = new JTextField(library_url_string); 190 202 library_path_field.setCaretPosition(0); 203 library_path_field.setComponentOrientation(Dictionary.getOrientation()); 191 204 if (Gatherer.GS3) { 192 205 library_path_label.setText(Dictionary.get("Preferences.Connection.Library_Path_GS3")); … … 208 221 gliserver_url_label = new JLabel(Dictionary.get("Preferences.Connection.GLIServer_URL")); 209 222 gliserver_url_label.setPreferredSize(LABEL_SIZE); 223 gliserver_url_label.setComponentOrientation(Dictionary.getOrientation()); 210 224 String gliserver_url_string = ""; 211 225 if (Configuration.gliserver_url != null) { … … 213 227 } 214 228 gliserver_url_field = new JTextField(gliserver_url_string); 229 gliserver_url_field.setComponentOrientation(Dictionary.getOrientation()); 215 230 gliserver_url_field.setCaretPosition(0); 216 231 gliserver_url_field.setToolTipText(Dictionary.get("Preferences.Connection.GLIServer_URL_Tooltip")); 217 232 218 233 // Disable this field when using the applet, as it is automatically determined 219 234 gliserver_url_label.setEnabled(!Gatherer.isApplet); … … 228 243 site_pane = new JPanel(); 229 244 site_pane.setPreferredSize(ROW_SIZE); 245 site_pane.setComponentOrientation(Dictionary.getOrientation()); 230 246 site_label = new JLabel(Dictionary.get("Preferences.Connection.Site")); 231 247 site_label.setPreferredSize(LABEL_SIZE); 248 site_label.setComponentOrientation(Dictionary.getOrientation()); 232 249 // what should we do if Gatherer.servlet_config.getSites() is null? 233 250 site_combobox = new JComboBox(Gatherer.servlet_config.getSites().toArray()); 234 251 site_combobox.setOpaque(false); 235 252 site_combobox.setToolTipText(Dictionary.get("Preferences.Connection.Site_Tooltip")); 236 253 site_combobox.setComponentOrientation(Dictionary.getOrientation()); 254 237 255 servlet_pane = new JPanel(); 238 256 servlet_pane.setPreferredSize(ROW_SIZE); 257 servlet_pane.setComponentOrientation(Dictionary.getOrientation()); 258 239 259 servlet_label = new JLabel(Dictionary.get("Preferences.Connection.Servlet")); 240 260 servlet_label.setPreferredSize(LABEL_SIZE); 261 servlet_label.setComponentOrientation(Dictionary.getOrientation()); 241 262 servlet_combobox = new JComboBox(); 242 263 servlet_combobox.setOpaque(false); 264 servlet_combobox.setComponentOrientation(Dictionary.getOrientation()); 243 265 // try to locate and select the current site 244 266 String this_site = Configuration.site_name; … … 281 303 // Creation 282 304 JPanel connection_pane = new JPanel(); 305 connection_pane.setComponentOrientation(Dictionary.getOrientation()); 283 306 use_proxy_checkbox = new JCheckBox(Dictionary.get("Preferences.Connection.Use_Proxy")); 284 307 use_proxy_checkbox.setSelected(currently_enabled); 285 308 use_proxy_checkbox.setComponentOrientation(Dictionary.getOrientation()); 286 309 use_proxy_checkbox.setPreferredSize(ROW_SIZE); 287 JPanel proxy_host_pane = new JPanel(); 310 311 JPanel proxy_host_pane = new JPanel(); 312 proxy_host_pane.setComponentOrientation(Dictionary.getOrientation()); 288 313 proxy_host_pane.setPreferredSize(ROW_SIZE); 314 289 315 JLabel proxy_host_label = new JLabel(Dictionary.get("Preferences.Connection.Proxy_Host")); 316 proxy_host_label.setComponentOrientation(Dictionary.getOrientation()); 290 317 proxy_host_label.setPreferredSize(LABEL_SIZE); 291 318 … … 293 320 proxy_host_field.setEnabled(currently_enabled); 294 321 proxy_host_field.setToolTipText(Dictionary.get("Preferences.Connection.Proxy_Host_Tooltip")); 295 322 proxy_host_field.setComponentOrientation(Dictionary.getOrientation()); 323 296 324 JPanel proxy_port_pane = new JPanel(); 325 proxy_port_pane.setComponentOrientation(Dictionary.getOrientation()); 297 326 proxy_port_pane.setPreferredSize(ROW_SIZE); 327 298 328 JLabel proxy_port_label = new JLabel(Dictionary.get("Preferences.Connection.Proxy_Port")); 299 329 proxy_port_label.setPreferredSize(LABEL_SIZE); 330 proxy_port_label.setComponentOrientation(Dictionary.getOrientation()); 300 331 301 332 String port_value = Configuration.getString("general.proxy_port", true); … … 317 348 // Layout 318 349 program_pane.setLayout(new BorderLayout()); 319 program_pane.add(program_label, BorderLayout. WEST);350 program_pane.add(program_label, BorderLayout.LINE_END); 320 351 program_pane.add(program_field, BorderLayout.CENTER); 321 352 322 353 library_path_pane.setLayout(new BorderLayout()); 323 library_path_pane.add(library_path_label, BorderLayout. WEST);354 library_path_pane.add(library_path_label, BorderLayout.LINE_START); 324 355 library_path_pane.add(library_path_field, BorderLayout.CENTER); 325 356 326 357 if (Gatherer.isGsdlRemote && !Gatherer.GS3) { 327 358 gliserver_url_pane.setLayout(new BorderLayout()); 328 gliserver_url_pane.add(gliserver_url_label, BorderLayout. WEST);359 gliserver_url_pane.add(gliserver_url_label, BorderLayout.LINE_START); 329 360 gliserver_url_pane.add(gliserver_url_field, BorderLayout.CENTER); 330 361 } … … 332 363 if (Gatherer.GS3) { 333 364 site_pane.setLayout(new BorderLayout()); 334 site_pane.add(site_label, BorderLayout. WEST);365 site_pane.add(site_label, BorderLayout.LINE_START); 335 366 site_pane.add(site_combobox, BorderLayout.CENTER); 336 367 337 368 servlet_pane.setLayout(new BorderLayout()); 338 servlet_pane.add(servlet_label, BorderLayout. WEST);369 servlet_pane.add(servlet_label, BorderLayout.LINE_START); 339 370 servlet_pane.add(servlet_combobox, BorderLayout.CENTER); 340 371 } 341 372 342 373 proxy_host_pane.setLayout(new BorderLayout()); 343 proxy_host_pane.add(proxy_host_label, BorderLayout. WEST);374 proxy_host_pane.add(proxy_host_label, BorderLayout.LINE_START); 344 375 proxy_host_pane.add(proxy_host_field, BorderLayout.CENTER); 345 376 346 377 proxy_port_pane.setLayout(new BorderLayout()); 347 proxy_port_pane.add(proxy_port_label, BorderLayout. WEST);378 proxy_port_pane.add(proxy_port_label, BorderLayout.LINE_START); 348 379 proxy_port_pane.add(proxy_port_field, BorderLayout.CENTER); 349 380 … … 368 399 private JPanel createGeneralPreferences() { 369 400 JPanel general_pane = new JPanel(); 370 401 general_pane.setComponentOrientation(Dictionary.getOrientation()); 371 402 // Build the model of available languages 372 403 ArrayList dictionary_model = new ArrayList(); … … 393 424 // Users email 394 425 JPanel email_pane = new JPanel(); 395 JLabel email_label = new JLabel(Dictionary.get("Preferences.General.Email")); 426 email_pane.setComponentOrientation(Dictionary.getOrientation()); 427 428 JLabel email_label = new JLabel(Dictionary.get("Preferences.General.Email")); 429 email_label.setComponentOrientation(Dictionary.getOrientation()); 396 430 email_label.setPreferredSize(LABEL_SIZE); 397 email_field = new EmailField(Configuration.getColor("coloring.error_background", false)); 431 432 email_field = new EmailField(Configuration.getColor("coloring.error_background", false)); 398 433 email_field.setText(Configuration.getEmail()); 399 434 email_field.setToolTipText(Dictionary.get("Preferences.General.Email_Tooltip")); 400 435 email_field.setComponentOrientation(Dictionary.getOrientation()); 401 436 // Font selection 402 437 JPanel font_pane = new JPanel(); 403 JLabel font_label = new JLabel(Dictionary.get("Preferences.General.Font")); 438 font_pane.setComponentOrientation(Dictionary.getOrientation()); 439 440 JLabel font_label = new JLabel(Dictionary.get("Preferences.General.Font")); 441 font_label.setComponentOrientation(Dictionary.getOrientation()); 404 442 font_label.setPreferredSize(LABEL_SIZE); 405 font_field = new JTextField(Configuration.getString("general.font", true)); 443 444 font_field = new JTextField(Configuration.getString("general.font", true)); 406 445 font_field.setToolTipText(Dictionary.get("Preferences.General.Font_Tooltip")); 407 446 font_field.setComponentOrientation(Dictionary.getOrientation()); 447 408 448 // Extracted metadata 409 449 view_extracted_metadata_checkbox = new JCheckBox(Dictionary.get("Preferences.General.View_Extracted_Metadata")); 410 450 view_extracted_metadata_checkbox.setSelected(false); 411 if (Configuration.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC)) { 451 view_extracted_metadata_checkbox.setComponentOrientation(Dictionary.getOrientation()); 452 453 if (Configuration.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC)) { 412 454 view_extracted_metadata_checkbox.setSelected(true); 413 455 } 414 456 view_extracted_metadata_checkbox.setToolTipText(Dictionary.get("Preferences.General.View_Extracted_Metadata_Tooltip")); 415 457 view_extracted_metadata_checkbox.setComponentOrientation(Dictionary.getOrientation()); 458 416 459 // Show file sizes 417 460 show_file_size_checkbox = new JCheckBox(Dictionary.get("Preferences.General.Show_File_Size")); 418 461 show_file_size_checkbox.setSelected(false); 462 show_file_size_checkbox.setComponentOrientation(Dictionary.getOrientation()); 463 419 464 if (Configuration.get("general.show_file_size", Configuration.COLLECTION_SPECIFIC)) { 420 465 show_file_size_checkbox.setSelected(true); … … 424 469 // Language 425 470 JPanel language_pane = new JPanel(); 426 JLabel language_label = new JLabel(Dictionary.get("Preferences.General.Interface_Language")); 471 language_pane.setComponentOrientation(Dictionary.getOrientation()); 472 473 JLabel language_label = new JLabel(Dictionary.get("Preferences.General.Interface_Language")); 474 language_label.setComponentOrientation(Dictionary.getOrientation()); 427 475 language_label.setPreferredSize(LABEL_SIZE); 428 476 … … 430 478 language_combobox.setOpaque(false); 431 479 language_combobox.setToolTipText(Dictionary.get("Preferences.General.Interface_Language_Tooltip")); 432 480 language_combobox.setComponentOrientation(Dictionary.getOrientation()); 481 433 482 // Try to locate and select the current language 434 483 String language_code = Configuration.getLanguage(); … … 443 492 // Layout 444 493 email_pane.setLayout(new BorderLayout()); 445 email_pane.add(email_label, BorderLayout. WEST);494 email_pane.add(email_label, BorderLayout.LINE_START); 446 495 email_pane.add(email_field, BorderLayout.CENTER); 447 496 448 497 language_pane.setLayout(new BorderLayout()); 449 language_pane.add(language_label, BorderLayout. WEST);498 language_pane.add(language_label, BorderLayout.LINE_START); 450 499 language_pane.add(language_combobox, BorderLayout.CENTER); 451 500 452 501 font_pane.setLayout(new BorderLayout()); 453 font_pane.add(font_label, BorderLayout. WEST);502 font_pane.add(font_label, BorderLayout.LINE_START); 454 503 font_pane.add(font_field, BorderLayout.CENTER); 455 504 … … 471 520 // Create Controls 472 521 JPanel mode_panel = new JPanel(); 473 JPanel button_panel = new JPanel(); 474 ButtonGroup mode_button_group = new ButtonGroup(); 475 assistant_mode_radio_button = new JRadioButton(Dictionary.get("Preferences.Mode.Assistant")); 522 mode_panel.setComponentOrientation(Dictionary.getOrientation()); 523 524 JPanel button_panel = new JPanel(); 525 button_panel.setComponentOrientation(Dictionary.getOrientation()); 526 527 ButtonGroup mode_button_group = new ButtonGroup(); 528 529 assistant_mode_radio_button = new JRadioButton(Dictionary.get("Preferences.Mode.Assistant")); 476 530 assistant_mode_radio_button.setOpaque(false); 531 assistant_mode_radio_button.setComponentOrientation(Dictionary.getOrientation()); 477 532 mode_button_group.add(assistant_mode_radio_button); 478 expert_mode_radio_button = new JRadioButton(Dictionary.get("Preferences.Mode.Expert")); 533 534 expert_mode_radio_button = new JRadioButton(Dictionary.get("Preferences.Mode.Expert")); 479 535 expert_mode_radio_button.setOpaque(false); 536 expert_mode_radio_button.setComponentOrientation(Dictionary.getOrientation()); 480 537 mode_button_group.add(expert_mode_radio_button); 481 librarian_mode_radio_button = new JRadioButton(Dictionary.get("Preferences.Mode.Librarian")); 538 539 librarian_mode_radio_button = new JRadioButton(Dictionary.get("Preferences.Mode.Librarian")); 482 540 librarian_mode_radio_button.setOpaque(false); 541 librarian_mode_radio_button.setComponentOrientation(Dictionary.getOrientation()); 483 542 mode_button_group.add(librarian_mode_radio_button); 484 systems_mode_radio_button = new JRadioButton(Dictionary.get("Preferences.Mode.Systems")); 543 544 systems_mode_radio_button = new JRadioButton(Dictionary.get("Preferences.Mode.Systems")); 485 545 systems_mode_radio_button.setOpaque(false); 546 systems_mode_radio_button.setComponentOrientation(Dictionary.getOrientation()); 486 547 mode_button_group.add(systems_mode_radio_button); 487 mode_description_textarea = new JTextArea(); 548 549 mode_description_textarea = new JTextArea(); 550 mode_description_textarea.setComponentOrientation(Dictionary.getOrientation()); 488 551 mode_description_textarea.setEditable(false); 489 552 mode_description_textarea.setLineWrap(true); … … 535 598 { 536 599 warning_preferences_check_list = new CheckList(false); 600 warning_preferences_check_list.setComponentOrientation(Dictionary.getOrientation()); 537 601 538 602 // Read all the warnings from the general xml/config.xml file, and their values from the user config.xml file … … 552 616 553 617 JPanel warning_preferences_pane = new JPanel(); 618 warning_preferences_pane.setComponentOrientation(Dictionary.getOrientation()); 554 619 warning_preferences_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 555 620 warning_preferences_pane.setLayout(new BorderLayout()); 556 warning_preferences_pane.add(new JScrollPane(warning_preferences_check_list), BorderLayout.CENTER); 621 JScrollPane scrol_tmp = new JScrollPane(warning_preferences_check_list); 622 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 623 warning_preferences_pane.add(scrol_tmp, BorderLayout.CENTER); 557 624 return warning_preferences_pane; 558 625 } … … 571 638 // Creation 572 639 JPanel workflow_preferences_pane = new JPanel(); 573 JPanel checklist_pane = new JPanel(); 574 JLabel title_label = new JLabel(Dictionary.get("Preferences.Workflow.Title")); 640 workflow_preferences_pane.setComponentOrientation(Dictionary.getOrientation()); 641 642 JPanel checklist_pane = new JPanel(); 643 checklist_pane.setComponentOrientation(Dictionary.getOrientation()); 644 645 JLabel title_label = new JLabel(Dictionary.get("Preferences.Workflow.Title")); 646 title_label.setComponentOrientation(Dictionary.getOrientation()); 575 647 title_label.setPreferredSize(ROW_SIZE); 576 648 577 649 workflow_download = new JCheckBox(Dictionary.get("GUI.Download")+" - "+Dictionary.get("GUI.Download_Tooltip")); 650 workflow_download.setComponentOrientation(Dictionary.getOrientation()); 578 651 workflow_download.setSelected(Configuration.get("workflow.download", false)); 579 652 workflow_download.setPreferredSize(ROW_SIZE); … … 582 655 workflow_gather.setSelected(Configuration.get("workflow.gather", false)); 583 656 workflow_gather.setPreferredSize(ROW_SIZE); 584 657 workflow_gather.setComponentOrientation(Dictionary.getOrientation()); 658 585 659 workflow_enrich = new JCheckBox(Dictionary.get("GUI.Enrich")+" - "+Dictionary.get("GUI.Enrich_Tooltip")); 586 660 workflow_enrich.setSelected(Configuration.get("workflow.enrich", false)); 587 661 workflow_enrich.setPreferredSize(ROW_SIZE); 588 662 workflow_enrich.setComponentOrientation(Dictionary.getOrientation()); 663 589 664 workflow_design = new JCheckBox(Dictionary.get("GUI.Design")+" - "+Dictionary.get("GUI.Design_Tooltip")); 590 665 workflow_design.setSelected(Configuration.get("workflow.design", false)); 591 666 workflow_design.setPreferredSize(ROW_SIZE); 592 667 workflow_design.setComponentOrientation(Dictionary.getOrientation()); 668 593 669 workflow_create = new JCheckBox(Dictionary.get("GUI.Create")+" - "+Dictionary.get("GUI.Create_Tooltip")); 594 670 workflow_create.setSelected(Configuration.get("workflow.create", false)); 595 671 workflow_create.setPreferredSize(ROW_SIZE); 596 597 672 workflow_create.setComponentOrientation(Dictionary.getOrientation()); 673 598 674 workflow_format = new JCheckBox(Dictionary.get("GUI.Format")+" - "+Dictionary.get("GUI.Format_Tooltip")); 599 675 workflow_format.setSelected(Configuration.get("workflow.format", false)); 600 676 workflow_format.setPreferredSize(ROW_SIZE); 601 677 workflow_format.setComponentOrientation(Dictionary.getOrientation()); 678 602 679 JPanel predefined_pane = new JPanel(); 603 JLabel predefined_label = new JLabel(Dictionary.get("Preferences.Workflow.Predefined.Label")); 604 JComboBox predefined_combobox = new JComboBox(predefined); 680 predefined_pane.setComponentOrientation(Dictionary.getOrientation()); 681 682 JLabel predefined_label = new JLabel(Dictionary.get("Preferences.Workflow.Predefined.Label")); 683 predefined_label.setComponentOrientation(Dictionary.getOrientation()); 684 685 JComboBox predefined_combobox = new JComboBox(predefined); 605 686 predefined_combobox.setOpaque(false); 606 687 // Connection … … 630 711 631 712 predefined_pane.setLayout(new BorderLayout(5,0)); 632 predefined_pane.add(predefined_label, BorderLayout. WEST);713 predefined_pane.add(predefined_label, BorderLayout.LINE_START); 633 714 predefined_pane.add(predefined_combobox, BorderLayout.CENTER); 634 715 -
gli/trunk/src/org/greenstone/gatherer/gui/PreviewCommandDialog.java
r12119 r18370 71 71 super(Gatherer.g_man); 72 72 this.self = this; 73 73 JScrollPane scrol_tmp; 74 this.setComponentOrientation(Dictionary.getOrientation()); 74 75 // Creation 75 76 setModal(true); … … 79 80 80 81 JPanel content_pane = (JPanel) getContentPane(); 82 content_pane.setComponentOrientation(Dictionary.getOrientation()); 81 83 content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false)); 82 84 83 85 JTextArea instructions_area = new JTextArea(Dictionary.get("PreviewCommandDialog.Instructions")); 84 instructions_area.setEditable(false); 86 instructions_area.setComponentOrientation(Dictionary.getOrientation()); 87 instructions_area.setEditable(false); 85 88 instructions_area.setLineWrap(true); 86 89 instructions_area.setRows(5); … … 88 91 89 92 JPanel button_pane = new JPanel(); 93 button_pane.setComponentOrientation(Dictionary.getOrientation()); 90 94 JPanel lower_pane = new JPanel(); 95 lower_pane.setComponentOrientation(Dictionary.getOrientation()); 91 96 92 97 JPanel command_pane = new JPanel(); 98 command_pane.setComponentOrientation(Dictionary.getOrientation()); 93 99 command_field = new JTextField(); 100 command_field.setComponentOrientation(Dictionary.getOrientation()); 94 101 browse_button = new GLIButton(Dictionary.get("FileAssociationDialog.Browse")); 95 102 browse_button.setEnabled(!Utility.isMac()); … … 111 118 command_pane.setLayout(new BorderLayout()); 112 119 command_pane.add(command_field, BorderLayout.CENTER); 113 command_pane.add(browse_button, BorderLayout. EAST);120 command_pane.add(browse_button, BorderLayout.LINE_END); 114 121 115 122 lower_pane.setBorder(BorderFactory.createEmptyBorder(2,0,0,0)); … … 127 134 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 128 135 content_pane.setLayout(new BorderLayout()); 129 content_pane.add(new JScrollPane(instructions_area), BorderLayout.NORTH); 136 scrol_tmp=new JScrollPane(instructions_area); 137 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 138 content_pane.add(scrol_tmp, BorderLayout.NORTH); 130 139 content_pane.add(lower_pane, BorderLayout.CENTER); 131 140 … … 168 177 public void actionPerformed(ActionEvent event) { 169 178 JFileChooser chooser = new JFileChooser(new File(Gatherer.getGLIUserDirectoryPath())); 179 chooser.setComponentOrientation(Dictionary.getOrientation()); 170 180 GUIUtils.disableRename(chooser); 171 181 chooser.setDialogTitle(Dictionary.get("FileAssociationDialog.Browse_Title")); -
gli/trunk/src/org/greenstone/gatherer/gui/RenamePrompt.java
r12657 r18370 50 50 { 51 51 super(Gatherer.g_man, true); 52 this.setComponentOrientation(Dictionary.getOrientation()); 52 53 setTitle(Dictionary.get("RenamePrompt.Title")); 53 54 name = collection_tree_node.getFile().getName(); … … 87 88 setSize(SIZE); 88 89 JPanel content_pane = (JPanel) getContentPane(); 89 90 content_pane.setComponentOrientation(Dictionary.getOrientation()); 91 90 92 JPanel info_pane = new JPanel(); 91 93 info_pane.setComponentOrientation(Dictionary.getOrientation()); 94 92 95 JLabel name_label = new JLabel(Dictionary.get("RenamePrompt.Name")); 96 name_label.setComponentOrientation(Dictionary.getOrientation()); 93 97 name_textfield = new JTextField(name); 98 name_textfield.setComponentOrientation(Dictionary.getOrientation()); 94 99 95 100 JPanel button_pane = new JPanel(); 101 button_pane.setComponentOrientation(Dictionary.getOrientation()); 96 102 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 97 103 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); … … 105 111 // Layout 106 112 info_pane.setLayout(new BorderLayout(5,0)); 107 info_pane.add(name_label, BorderLayout. WEST);113 info_pane.add(name_label, BorderLayout.LINE_START); 108 114 info_pane.add(name_textfield, BorderLayout.CENTER); 109 115 -
gli/trunk/src/org/greenstone/gatherer/gui/SimpleMenuBar.java
r12119 r18370 15 15 public SimpleMenuBar(String page_name) { 16 16 this.page_name = page_name; 17 this.setComponentOrientation(Dictionary.getOrientation()); 17 18 JMenu help = new JMenu(); 19 help.setComponentOrientation(Dictionary.getOrientation()); 18 20 help.setIcon(JarTools.getImage("help.gif")); 19 21 help.setText(Dictionary.get("Menu.Help")); 20 22 21 23 JMenuItem help_help = new JMenuItem(Dictionary.get("Menu.Help")); 24 help_help.setComponentOrientation(Dictionary.getOrientation()); 22 25 help_help.addActionListener(this); 23 26 -
gli/trunk/src/org/greenstone/gatherer/gui/SimpleResultDialog.java
r17131 r18370 56 56 super(Gatherer.g_man, title, true); 57 57 this.self = this; 58 58 this.setComponentOrientation(Dictionary.getOrientation()); 59 59 60 setUpGUI(label, results); 60 61 } … … 74 75 75 76 JPanel content_pane = (JPanel) getContentPane(); 77 content_pane.setComponentOrientation(Dictionary.getOrientation()); 76 78 JLabel result_label = new JLabel(label); 79 result_label.setComponentOrientation(Dictionary.getOrientation()); 77 80 78 81 JPanel button_pane = new JPanel(); 82 button_pane.setComponentOrientation(Dictionary.getOrientation()); 79 83 JButton close_button = new GLIButton(Dictionary.get("General.Close")); 80 84 close_button.addActionListener(new CloseButtonListener()); 81 85 82 86 JPanel output_pane = new JPanel(); 87 output_pane.setComponentOrientation(Dictionary.getOrientation()); 83 88 JLabel output_label = new JLabel(Dictionary.get("General.Review_Output")); 84 89 output_label.setComponentOrientation(Dictionary.getOrientation()); 90 85 91 JTextArea output_textarea = new JTextArea(results); 92 output_textarea.setComponentOrientation(Dictionary.getOrientation()); 86 93 output_textarea.setCaretPosition(0); 87 94 output_textarea.setEditable(false); … … 90 97 91 98 button_pane.setLayout(new BorderLayout()); 92 button_pane.add(close_button, BorderLayout. EAST);99 button_pane.add(close_button, BorderLayout.LINE_END); 93 100 94 101 output_pane.setBorder(BorderFactory.createEmptyBorder(5,0,5,0)); -
gli/trunk/src/org/greenstone/gatherer/gui/URLField.java
r16965 r18370 6 6 import java.util.*; 7 7 import java.io.*; 8 import org.greenstone.gatherer.Dictionary; 8 9 import org.greenstone.gatherer.Gatherer; 9 10 import org.greenstone.gatherer.Configuration; … … 102 103 { 103 104 super(); 105 this.setComponentOrientation(Dictionary.getOrientation()); 104 106 setBackground(background); 105 107 setForeground(foreground); … … 129 131 this.setEditable(true); 130 132 this.getEditor().selectAll(); 131 133 this.setComponentOrientation(Dictionary.getOrientation()); 134 132 135 setBackground(background); 133 136 setForeground(foreground); -
gli/trunk/src/org/greenstone/gatherer/gui/WarningDialog.java
r18175 r18370 66 66 { 67 67 super(Gatherer.g_man, "Warning", true); 68 68 this.setComponentOrientation(Dictionary.getOrientation()); 69 69 this.showcheckbox = showcheckbox; 70 70 … … 84 84 // Creation 85 85 JPanel content_pane = (JPanel) getContentPane(); 86 content_pane.setComponentOrientation(Dictionary.getOrientation()); 86 87 JPanel text_pane = new JPanel(); 87 88 text_pane.setComponentOrientation(Dictionary.getOrientation()); 89 88 90 String gmedium_image = "gatherer_medium.gif"; 89 91 if (Configuration.fedora_info.isActive()) { … … 92 94 93 95 JLabel icon_label = new JLabel(JarTools.getImage(gmedium_image)); 96 icon_label.setComponentOrientation(Dictionary.getOrientation()); 94 97 95 98 JTextArea text_area = new JTextArea(); 99 text_area.setComponentOrientation(Dictionary.getOrientation()); 96 100 text_area.setEditable(false); 97 101 text_area.setLineWrap(true); … … 101 105 102 106 value_panel = new JPanel(); 107 value_panel.setComponentOrientation(Dictionary.getOrientation()); 103 108 JLabel value_label = new JLabel(Dictionary.get("WarningDialog.Value")); 104 109 value_label.setComponentOrientation(Dictionary.getOrientation()); 110 105 111 value_field = new JTextField(); 112 value_field.setComponentOrientation(Dictionary.getOrientation()); 106 113 JPanel bottom_pane = new JPanel(); 114 bottom_pane.setComponentOrientation(Dictionary.getOrientation()); 115 107 116 JPanel control_pane = new JPanel(); 117 control_pane.setComponentOrientation(Dictionary.getOrientation()); 108 118 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 109 119 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); … … 123 133 value_panel.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 124 134 value_panel.setLayout(new BorderLayout(5,0)); 125 value_panel.add(value_label, BorderLayout. WEST);135 value_panel.add(value_label, BorderLayout.LINE_START); 126 136 value_panel.add(value_field, BorderLayout.CENTER); 127 137 128 138 text_pane.setLayout(new BorderLayout()); 129 text_pane.add(icon_label, BorderLayout. WEST);139 text_pane.add(icon_label, BorderLayout.LINE_START); 130 140 text_pane.add(new JScrollPane(text_area), BorderLayout.CENTER); 131 141 if(affected_property != null) { … … 140 150 else { 141 151 control_pane.setLayout(new BorderLayout()); 142 control_pane.add(ok_button, BorderLayout. EAST);152 control_pane.add(ok_button, BorderLayout.LINE_END); 143 153 } 144 154 145 155 bottom_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 146 156 bottom_pane.setLayout(new BorderLayout()); 147 bottom_pane.add(control_pane, BorderLayout. EAST);157 bottom_pane.add(control_pane, BorderLayout.LINE_END); 148 158 if(showcheckbox) { 149 159 show_check = new JCheckBox(Dictionary.get("WarningDialog.Dont_Show_Again")); 160 show_check.setComponentOrientation(Dictionary.getOrientation()); 150 161 bottom_pane.add(show_check, BorderLayout.CENTER); 151 162 } -
gli/trunk/src/org/greenstone/gatherer/gui/WriteCDImagePrompt.java
r14045 r18370 118 118 public WriteCDImagePrompt() { 119 119 super(Gatherer.g_man, true); 120 this.setComponentOrientation(Dictionary.getOrientation()); 120 121 cancel_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip")); 121 122 122 123 details_textarea = new JTextArea(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 123 details_textarea.setEditable(false); 124 details_textarea.setComponentOrientation(Dictionary.getOrientation()); 125 details_textarea.setEditable(false); 124 126 125 127 details_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_Details")); 126 128 details_label.setComponentOrientation(Dictionary.getOrientation()); 129 127 130 instructions_textarea = new JTextArea(Dictionary.get("WriteCDImagePrompt.Instructions")); 131 instructions_textarea.setComponentOrientation(Dictionary.getOrientation()); 128 132 instructions_textarea.setCaretPosition(0); 129 133 instructions_textarea.setEditable(false); … … 135 139 list = new CheckList(true); 136 140 list_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_List")); 137 138 ok_button = new GLIButton(Dictionary.get("WriteCDImagePrompt.Export"), Dictionary.get("WriteCDImagePrompt.Export_Tooltip")); 139 141 list_label.setComponentOrientation(Dictionary.getOrientation()); 142 143 ok_button = new GLIButton(Dictionary.get("WriteCDImagePrompt.Export"), Dictionary.get("WriteCDImagePrompt.Export_Tooltip")); 144 140 145 title_field = new JTextField(); 146 title_field.setComponentOrientation(Dictionary.getOrientation()); 141 147 // Dictionary.setTooltip(title_field, "WriteCDImagePrompt.CD_Name_Tooltip"); 142 148 title_label = new JLabel(Dictionary.get("WriteCDImagePrompt.CD_Name")); 143 149 title_label.setComponentOrientation(Dictionary.getOrientation()); 144 150 145 151 estimated_size_field = new JTextField(); 152 estimated_size_field.setComponentOrientation(Dictionary.getOrientation()); 146 153 estimated_size_field.setEditable(false); 147 154 … … 152 159 estimated_size_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 153 160 estimated_size_label = new JLabel(Dictionary.get("WriteCDImagePrompt.Size_Label")); 154 161 estimated_size_label.setComponentOrientation(Dictionary.getOrientation()); 162 155 163 scanForCollections(); 156 list.setListData(all_collections); 164 list.setListData(all_collections); 157 165 158 166 prompt = this; … … 172 180 noinstall_button = new JRadioButton(Dictionary.get("WriteCDImagePrompt.NoInstall")); 173 181 noinstall_button.setToolTipText(Dictionary.get("WriteCDImagePrompt.NoInstall_Tooltip")); 174 182 noinstall_button.setComponentOrientation(Dictionary.getOrientation()); 175 183 176 184 install_button = new JRadioButton(Dictionary.get("WriteCDImagePrompt.Install")); 177 185 install_button.setToolTipText(Dictionary.get("WriteCDImagePrompt.Install_Tooltip")); 178 179 180 186 install_button.setComponentOrientation(Dictionary.getOrientation()); 187 181 188 } 182 189 … … 203 210 public boolean display() { 204 211 212 JScrollPane scrol_tmp; 205 213 // Radio buttons 206 ButtonGroup radio_group = new ButtonGroup(); 214 ButtonGroup radio_group = new ButtonGroup(); 207 215 radio_group.add(install_button); 208 216 install_button.setSelected(true); … … 211 219 // Top pane 212 220 JPanel instructions_pane = new JPanel(new BorderLayout()); 221 instructions_pane.setComponentOrientation(Dictionary.getOrientation()); 213 222 instructions_pane.setBorder(BorderFactory.createEmptyBorder(5,5,0,5)); 214 instructions_pane.add(new JScrollPane(instructions_textarea), BorderLayout.CENTER); 223 scrol_tmp = new JScrollPane(instructions_textarea); 224 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 225 instructions_pane.add(scrol_tmp, BorderLayout.CENTER); 215 226 216 227 title_label.setBorder(BorderFactory.createEmptyBorder(0,5,0,15)); 217 228 218 229 JPanel title_pane = new JPanel(new BorderLayout()); 219 title_pane.add(title_label, BorderLayout.WEST); 230 title_pane.setComponentOrientation(Dictionary.getOrientation()); 231 title_pane.add(title_label, BorderLayout.LINE_START); 220 232 title_pane.add(title_field, BorderLayout.CENTER); 221 233 title_pane.setBorder(BorderFactory.createEmptyBorder(5,0,5,0)); 222 234 223 235 JPanel radio_pane = new JPanel(new GridLayout(2,1)); 236 radio_pane.setComponentOrientation(Dictionary.getOrientation()); 224 237 install_button.setBackground(Configuration.getColor("coloring.collection_heading_background", true)); 225 238 noinstall_button.setBackground(Configuration.getColor("coloring.collection_heading_background", true)); 226 239 radio_pane.add(install_button); 227 radio_pane.add(noinstall_button); 228 229 240 radio_pane.add(noinstall_button); 241 230 242 JPanel options_pane = new JPanel(new BorderLayout()); 243 options_pane.setComponentOrientation(Dictionary.getOrientation()); 231 244 options_pane.add(title_pane, BorderLayout.NORTH); 232 245 options_pane.add(radio_pane, BorderLayout.CENTER); … … 235 248 // Central pane 236 249 JPanel list_pane = new JPanel(new BorderLayout()); 250 list_pane.setComponentOrientation(Dictionary.getOrientation()); 237 251 list_pane.add(list_label, BorderLayout.NORTH); 238 list_pane.add(new JScrollPane(list), BorderLayout.CENTER); 252 scrol_tmp =new JScrollPane(list); 253 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 254 list_pane.add(scrol_tmp, BorderLayout.CENTER); 239 255 list_pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0)); 240 256 241 257 JPanel details_pane = new JPanel(new BorderLayout()); 242 258 details_pane.add(details_label, BorderLayout.NORTH); 243 details_pane.add(new JScrollPane(details_textarea), BorderLayout.CENTER); 259 scrol_tmp =new JScrollPane(details_textarea); 260 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 261 details_pane.add(scrol_tmp, BorderLayout.CENTER); 244 262 details_pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); 245 263 246 264 JPanel central_pane = new JPanel(new GridLayout(2, 1)); 265 central_pane.setComponentOrientation(Dictionary.getOrientation()); 247 266 central_pane.add(list_pane); 248 267 central_pane.add(details_pane); … … 251 270 // Lower pane 252 271 JPanel estimated_size_pane = new JPanel(new BorderLayout()); 253 estimated_size_pane.add(estimated_size_label, BorderLayout.WEST); 272 estimated_size_pane.setComponentOrientation(Dictionary.getOrientation()); 273 estimated_size_pane.add(estimated_size_label, BorderLayout.LINE_START); 254 274 estimated_size_pane.add(estimated_size_field, BorderLayout.CENTER); 255 275 estimated_size_pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0)); 256 276 257 277 JPanel button_pane = new JPanel(new GridLayout(1, 2)); 278 button_pane.setComponentOrientation(Dictionary.getOrientation()); 258 279 button_pane.add(ok_button); 259 280 button_pane.add(cancel_button); 260 281 button_pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); 261 282 262 283 JPanel lower_pane = new JPanel(new BorderLayout()); 284 lower_pane.setComponentOrientation(Dictionary.getOrientation()); 263 285 lower_pane.add(estimated_size_pane, BorderLayout.NORTH); 264 286 lower_pane.add(button_pane, BorderLayout.SOUTH); … … 267 289 // Final. 268 290 JPanel content_pane = (JPanel)this.getContentPane(); 291 content_pane.setComponentOrientation(Dictionary.getOrientation()); 269 292 content_pane.setLayout(new BorderLayout()); 270 293 content_pane.add(instructions_pane, BorderLayout.NORTH); 271 294 content_pane.add(central_pane, BorderLayout.CENTER); 272 295 content_pane.add(lower_pane, BorderLayout.SOUTH); 273 296 274 297 // Center and display. 275 298 Dimension screen_size = Configuration.screen_size; … … 600 623 public ProgressDialog() { 601 624 super(Gatherer.g_man, Dictionary.get("WriteCDImagePrompt.Title"), true); 625 this.setComponentOrientation(Dictionary.getOrientation()); 602 626 setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); 603 627 setSize(size); 604 628 JPanel content_pane = (JPanel) getContentPane(); 629 content_pane.setComponentOrientation(Dictionary.getOrientation()); 605 630 JLabel progress_label = new JLabel(Dictionary.get("WriteCDImagePrompt.Progress_Label")); 606 631 progress_label.setComponentOrientation(Dictionary.getOrientation()); 632 607 633 JProgressBar progress_bar = new JProgressBar(); 634 progress_bar.setComponentOrientation(Dictionary.getOrientation()); 608 635 progress_bar.setIndeterminate(true); 609 636 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); -
gli/trunk/src/org/greenstone/gatherer/gui/metaaudit/AutofilterDialog.java
r13195 r18370 108 108 this.dialog = dialog; 109 109 this.self = this; 110 this.setComponentOrientation(Dictionary.getOrientation()); 110 111 setModal(true); 111 112 setJMenuBar(new SimpleMenuBar("reviewingmetadata")); … … 115 116 // Creation 116 117 JPanel content_pane = (JPanel) getContentPane(); 118 content_pane.setComponentOrientation(Dictionary.getOrientation()); 117 119 JPanel name_pane = new JPanel(); 120 name_pane.setComponentOrientation(Dictionary.getOrientation()); 118 121 JLabel name_label = new JLabel(Dictionary.get("Autofilter.Name")); 122 name_label.setComponentOrientation(Dictionary.getOrientation()); 119 123 JTextField name_template = new JTextField(); 124 name_template.setComponentOrientation(Dictionary.getOrientation()); 120 125 name = new JLabel(); 126 name.setComponentOrientation(Dictionary.getOrientation()); 121 127 name.setBorder(name_template.getBorder()); 122 128 control = new JTabbedPane(); 129 control.setComponentOrientation(Dictionary.getOrientation()); 123 130 JPanel value_pane = new JPanel(); 131 value_pane.setComponentOrientation(Dictionary.getOrientation()); 124 132 JPanel inner_value_pane = new JPanel(); 133 inner_value_pane.setComponentOrientation(Dictionary.getOrientation()); 125 134 JLabel value_label = new JLabel(Dictionary.get("Autofilter.eqeq")); 135 value_label.setComponentOrientation(Dictionary.getOrientation()); 126 136 value = new JComboBox(); 137 value.setComponentOrientation(Dictionary.getOrientation()); 127 138 value.setOpaque(false); 128 139 value.setEditable(false); 129 140 JPanel custom_pane = new JPanel(); 141 custom_pane.setComponentOrientation(Dictionary.getOrientation()); 130 142 131 143 JPanel first_pane = new JPanel(); 144 first_pane.setComponentOrientation(Dictionary.getOrientation()); 132 145 first_method = new JComboBox(); 146 first_method.setComponentOrientation(Dictionary.getOrientation()); 133 147 first_method.setOpaque(false); 134 148 first_value = new JComboBox(); 149 first_value.setComponentOrientation(Dictionary.getOrientation()); 135 150 first_value.setOpaque(false); 136 151 first_value.setEditable(true); … … 138 153 first_value.setSelectedItem(""); 139 154 first_case = new JCheckBox(Dictionary.get("Autofilter.Case_Sensitive")); 155 first_case.setComponentOrientation(Dictionary.getOrientation()); 140 156 JPanel operator_pane = new JPanel(); 157 operator_pane.setComponentOrientation(Dictionary.getOrientation()); 141 158 JLabel operator_label = new JLabel(Dictionary.get("Autofilter.Operator")); 142 ButtonGroup operator_group = new ButtonGroup(); 159 operator_label.setComponentOrientation(Dictionary.getOrientation()); 160 ButtonGroup operator_group = new ButtonGroup(); 143 161 and_radiobutton = new JRadioButton(Dictionary.get("Autofilter.AND")); 162 and_radiobutton.setComponentOrientation(Dictionary.getOrientation()); 144 163 and_radiobutton.setOpaque(false); 145 164 none_radiobutton = new JRadioButton(Dictionary.get("Autofilter.None")); 165 none_radiobutton.setComponentOrientation(Dictionary.getOrientation()); 146 166 none_radiobutton.setOpaque(false); 147 167 none_radiobutton.setSelected(true); 148 168 or_radiobutton = new JRadioButton(Dictionary.get("Autofilter.OR")); 169 or_radiobutton.setComponentOrientation(Dictionary.getOrientation()); 149 170 or_radiobutton.setOpaque(false); 150 171 operator_group.add(none_radiobutton); … … 153 174 154 175 JPanel second_pane = new JPanel(); 176 second_pane.setComponentOrientation(Dictionary.getOrientation()); 155 177 second_method = new JComboBox(); 178 second_method.setComponentOrientation(Dictionary.getOrientation()); 156 179 second_method.setOpaque(false); 157 180 second_method.setEnabled(false); 158 181 second_value = new JComboBox(); 182 second_value.setComponentOrientation(Dictionary.getOrientation()); 159 183 second_value.setOpaque(false); 160 184 second_value.setEditable(true); … … 163 187 second_value.setSelectedItem(""); 164 188 second_case = new JCheckBox(Dictionary.get("Autofilter.Case_Sensitive")); 189 second_case.setComponentOrientation(Dictionary.getOrientation()); 165 190 JPanel lower_pane = new JPanel(); 191 lower_pane.setComponentOrientation(Dictionary.getOrientation()); 166 192 JPanel order_pane = new JPanel(); 193 order_pane.setComponentOrientation(Dictionary.getOrientation()); 167 194 order_pane.setToolTipText(Dictionary.get("Autofilter.Order_Tooltip")); 168 195 JLabel order_label = new JLabel(Dictionary.get("Autofilter.Order")); 169 196 order_label.setComponentOrientation(Dictionary.getOrientation()); 170 197 ButtonGroup order_group = new ButtonGroup(); 171 198 ascending_radiobutton = new JRadioButton(Dictionary.get("Autofilter.Ascending")); 199 ascending_radiobutton.setComponentOrientation(Dictionary.getOrientation()); 172 200 ascending_radiobutton.setOpaque(false); 173 201 ascending_radiobutton.setSelected(true); 174 202 descending_radiobutton = new JRadioButton(Dictionary.get("Autofilter.Descending")); 203 descending_radiobutton.setComponentOrientation(Dictionary.getOrientation()); 175 204 descending_radiobutton.setOpaque(false); 176 205 order_group.add(ascending_radiobutton); … … 183 212 } 184 213 JPanel button_pane = new JPanel(); 214 button_pane.setComponentOrientation(Dictionary.getOrientation()); 185 215 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); 186 216 remove_button = new GLIButton(Dictionary.get("Autofilter.Remove"), Dictionary.get("Autofilter.Remove_Tooltip")); … … 200 230 name_pane.setBorder(BorderFactory.createEmptyBorder(0,0,5,0)); 201 231 name_pane.setLayout(new BorderLayout()); 202 name_pane.add(name_label, BorderLayout. WEST);232 name_pane.add(name_label, BorderLayout.LINE_START); 203 233 name_pane.add(name, BorderLayout.CENTER); 204 234 … … 206 236 207 237 inner_value_pane.setLayout(new BorderLayout()); 208 inner_value_pane.add(value_label, BorderLayout. WEST);238 inner_value_pane.add(value_label, BorderLayout.LINE_START); 209 239 inner_value_pane.add(value, BorderLayout.CENTER); 210 240 … … 214 244 215 245 first_pane.setLayout(new BorderLayout()); 216 first_pane.add(first_method, BorderLayout. WEST);246 first_pane.add(first_method, BorderLayout.LINE_START); 217 247 first_pane.add(first_value, BorderLayout.CENTER); 218 first_pane.add(first_case, BorderLayout. EAST);248 first_pane.add(first_case, BorderLayout.LINE_END); 219 249 220 250 operator_pane.setLayout(new GridLayout(1,4)); … … 225 255 226 256 second_pane.setLayout(new BorderLayout()); 227 second_pane.add(second_method, BorderLayout. WEST);257 second_pane.add(second_method, BorderLayout.LINE_START); 228 258 second_pane.add(second_value, BorderLayout.CENTER); 229 second_pane.add(second_case, BorderLayout. EAST);259 second_pane.add(second_case, BorderLayout.LINE_END); 230 260 231 261 order_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); -
gli/trunk/src/org/greenstone/gatherer/gui/metaaudit/MetaAuditFrame.java
r13531 r18370 102 102 { 103 103 super(Gatherer.g_man); 104 104 105 105 // Arguments 106 106 this.autofilter_dialog = new AutofilterDialog(this); 107 107 this.self = this; 108 108 this.table = new MetaAuditTable(this); 109 109 this.setComponentOrientation(Dictionary.getOrientation()); 110 110 // Creation 111 111 setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE); … … 115 115 116 116 JPanel content_pane = (JPanel) getContentPane(); 117 content_pane.setComponentOrientation(Dictionary.getOrientation()); 117 118 JPanel button_pane = new JPanel(); 118 119 button_pane.setComponentOrientation(Dictionary.getOrientation()); 120 119 121 JButton close_button = new GLIButton(Dictionary.get("MetaAudit.Close"), Dictionary.get("MetaAudit.Close_Tooltip")); 120 122 -
gli/trunk/src/org/greenstone/gatherer/gui/metaaudit/MetaAuditTable.java
r8783 r18370 43 43 import javax.swing.event.TableModelEvent; 44 44 import javax.swing.table.*; 45 import org.greenstone.gatherer.Dictionary; 45 46 import org.greenstone.gatherer.collection.CollectionTreeNode; 46 47 import org.greenstone.gatherer.metadata.MetadataAuditTableModel; … … 73 74 public MetaAuditTable(MetaAuditFrame parent_frame) { 74 75 super(); 76 this.setComponentOrientation(Dictionary.getOrientation()); 75 77 this.cell_renderer = new MetaAuditRenderer(); 76 78 this.header_renderer = new HeaderRenderer();
Note:
See TracChangeset
for help on using the changeset viewer.