- Timestamp:
- 2009-01-12T13:04:29+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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"));
Note:
See TracChangeset
for help on using the changeset viewer.