- Timestamp:
- 2008-12-26T14:35:15+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/branches/rtl-gli/src/org/greenstone/gatherer/gui/LockFileDialog.java
r12119 r18297 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
Note:
See TracChangeset
for help on using the changeset viewer.