- 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/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
Note:
See TracChangeset
for help on using the changeset viewer.