- Timestamp:
- 2006-01-13T14:28:56+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java
r10610 r11031 39 39 import org.greenstone.gatherer.Dictionary; 40 40 import org.greenstone.gatherer.Gatherer; 41 import org.greenstone.gatherer.gui.DesignPaneHeader; 41 42 import org.greenstone.gatherer.gui.EmailField; 42 43 import org.greenstone.gatherer.gui.GLIButton; … … 72 73 // Creation 73 74 JPanel tree_pane = new JPanel(); 74 JLabel title = new JLabel();75 Dictionary.registerText(title, "CDM.GUI.Design_Topics");75 //JLabel title = new JLabel(); 76 //Dictionary.registerText(title, "CDM.GUI.Design_Topics"); 76 77 tree = new DesignTree(); 77 78 view = controls; … … 83 84 tree_pane.setLayout(new BorderLayout()); 84 85 tree_pane.setPreferredSize(TREE_SIZE); 85 tree_pane.add(title, BorderLayout.NORTH);86 //tree_pane.add(title, BorderLayout.NORTH); 86 87 tree_pane.add(new JScrollPane(tree), BorderLayout.CENTER); 87 88 … … 170 171 private JLabel name_label; 171 172 private JLabel small_icon_label; 172 private JLabel title_label;173 173 /** The text field used to edit the file name of the collections icon. */ 174 174 private JTextField icon_textfield; … … 179 179 /** A text area used to modify the collection description. */ 180 180 private JTextArea description_textarea; 181 private JTextArea instructions_textarea;182 181 /** Constructor. */ 183 182 public GeneralControl() { … … 187 186 188 187 // Creation 189 JPanel instruction_panel = new JPanel(); 190 title_label = new JLabel(); 191 title_label.setHorizontalAlignment(JLabel.CENTER); 192 Dictionary.registerText(title_label, "CDM.General.Title"); 193 194 instructions_textarea = new JTextArea(); 195 instructions_textarea.setCaretPosition(0); 196 instructions_textarea.setEditable(false); 197 instructions_textarea.setLineWrap(true); 198 instructions_textarea.setRows(6); 199 instructions_textarea.setWrapStyleWord(true); 200 Dictionary.registerText(instructions_textarea, "CDM.General.Instructions"); 188 JPanel header_panel = new DesignPaneHeader("CDM.GUI.General", "generalsettings"); 201 189 202 190 JPanel all_details_panel = new JPanel(); … … 276 264 277 265 // Layout 278 instruction_panel.setBorder(BorderFactory.createEmptyBorder(0,0,5,0));279 instruction_panel.setLayout(new BorderLayout());280 instruction_panel.add(title_label, BorderLayout.NORTH);281 instruction_panel.add(new JScrollPane(instructions_textarea), BorderLayout.CENTER);282 283 266 fields_panel.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 284 267 fields_panel.setLayout(new BorderLayout(5,2)); … … 340 323 all_details_panel.add(description_panel, BorderLayout.CENTER); 341 324 342 setBorder(BorderFactory.createEmptyBorder( 5,5,5,5));325 setBorder(BorderFactory.createEmptyBorder(0,5,5,5)); 343 326 setLayout(new BorderLayout()); 344 add( instruction_panel, BorderLayout.NORTH);327 add(header_panel, BorderLayout.NORTH); 345 328 add(all_details_panel, BorderLayout.CENTER); 346 329 }
Note:
See TracChangeset
for help on using the changeset viewer.