Changeset 5749 for trunk


Ignore:
Timestamp:
2003-10-29T12:13:53+13:00 (20 years ago)
Author:
jmt12
Message:

Added the destination folder to the prompt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/NewFolderPrompt.java

    r5593 r5749  
    1717    private JTextField name_field;
    1818    private String name;
    19     static final private Dimension LABEL_SIZE = new Dimension(100,25);
    20     static final private Dimension SIZE = new Dimension(300,100);
     19    static final private Dimension LABEL_SIZE = new Dimension(150,25);
     20    static final private Dimension SIZE = new Dimension(350,115);
    2121
    2222    public NewFolderPrompt(FileNode node) {
     
    3838    setSize(SIZE);
    3939    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   
    4049    JPanel name_pane = new JPanel();
    4150    JLabel name_label = new JLabel();
     
    5665
    5766    // 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));
    5872    name_pane.setLayout(new BorderLayout());
    5973    name_pane.add(name_label, BorderLayout.WEST);
    6074    name_pane.add(name_field, BorderLayout.CENTER);
    6175
     76    button_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
    6277    button_pane.setLayout(new GridLayout(1,2,0,5));
    6378    button_pane.add(ok_button);
     
    6681    content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    6782    content_pane.setLayout(new BorderLayout());
     83    content_pane.add(destination_pane, BorderLayout.NORTH);
    6884    content_pane.add(name_pane, BorderLayout.CENTER);
    6985    content_pane.add(button_pane, BorderLayout.SOUTH);
Note: See TracChangeset for help on using the changeset viewer.