Changeset 5749
- Timestamp:
- 2003-10-29T12:13:53+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/NewFolderPrompt.java
r5593 r5749 17 17 private JTextField name_field; 18 18 private String name; 19 static final private Dimension LABEL_SIZE = new Dimension(1 00,25);20 static final private Dimension SIZE = new Dimension(3 00,100);19 static final private Dimension LABEL_SIZE = new Dimension(150,25); 20 static final private Dimension SIZE = new Dimension(350,115); 21 21 22 22 public NewFolderPrompt(FileNode node) { … … 38 38 setSize(SIZE); 39 39 JPanel content_pane = (JPanel) getContentPane(); 40 41 JPanel destination_pane = new JPanel(); 42 JLabel destination_label = new JLabel(); 43 destination_label.setPreferredSize(LABEL_SIZE); 44 Dictionary.setText(destination_label, "NewFolderPrompt.Destination_Name"); 45 JTextField destination_textfield = new JTextField(node.getFile().getName()); 46 destination_textfield.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false)); 47 destination_textfield.setEditable(false); 48 40 49 JPanel name_pane = new JPanel(); 41 50 JLabel name_label = new JLabel(); … … 56 65 57 66 // Layout 67 destination_pane.setLayout(new BorderLayout()); 68 destination_pane.add(destination_label, BorderLayout.WEST); 69 destination_pane.add(destination_textfield, BorderLayout.CENTER); 70 71 name_pane.setBorder(BorderFactory.createEmptyBorder(2,0,0,0)); 58 72 name_pane.setLayout(new BorderLayout()); 59 73 name_pane.add(name_label, BorderLayout.WEST); 60 74 name_pane.add(name_field, BorderLayout.CENTER); 61 75 76 button_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 62 77 button_pane.setLayout(new GridLayout(1,2,0,5)); 63 78 button_pane.add(ok_button); … … 66 81 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 67 82 content_pane.setLayout(new BorderLayout()); 83 content_pane.add(destination_pane, BorderLayout.NORTH); 68 84 content_pane.add(name_pane, BorderLayout.CENTER); 69 85 content_pane.add(button_pane, BorderLayout.SOUTH);
Note:
See TracChangeset
for help on using the changeset viewer.