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