Ignore:
Timestamp:
2006-01-13T14:28:56+13:00 (18 years ago)
Author:
kjdon
Message:

removed instructions, changed title to be the same string as in the contents, and use a new class DesignPaneHeader to create teh header which has title and help button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r10610 r11031  
    3939import org.greenstone.gatherer.Dictionary;
    4040import org.greenstone.gatherer.Gatherer;
     41import org.greenstone.gatherer.gui.DesignPaneHeader;
    4142import org.greenstone.gatherer.gui.EmailField;
    4243import org.greenstone.gatherer.gui.GLIButton;
     
    7273    // Creation
    7374    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");
    7677    tree = new DesignTree();
    7778    view = controls;
     
    8384    tree_pane.setLayout(new BorderLayout());
    8485    tree_pane.setPreferredSize(TREE_SIZE);
    85     tree_pane.add(title, BorderLayout.NORTH);
     86    //tree_pane.add(title, BorderLayout.NORTH);
    8687    tree_pane.add(new JScrollPane(tree), BorderLayout.CENTER);
    8788
     
    170171    private JLabel name_label;
    171172    private JLabel small_icon_label;
    172     private JLabel title_label;
    173173    /** The text field used to edit the file name of the collections icon. */
    174174    private JTextField icon_textfield;
     
    179179    /** A text area used to modify the collection description. */
    180180    private JTextArea description_textarea;
    181     private JTextArea instructions_textarea;
    182181    /** Constructor. */
    183182    public GeneralControl() {
     
    187186
    188187        // 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");
    201189
    202190        JPanel all_details_panel = new JPanel();
     
    276264
    277265        // 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 
    283266        fields_panel.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
    284267        fields_panel.setLayout(new BorderLayout(5,2));
     
    340323        all_details_panel.add(description_panel, BorderLayout.CENTER);
    341324
    342         setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
     325        setBorder(BorderFactory.createEmptyBorder(0,5,5,5));
    343326        setLayout(new BorderLayout());
    344         add(instruction_panel, BorderLayout.NORTH);
     327        add(header_panel, BorderLayout.NORTH);
    345328        add(all_details_panel, BorderLayout.CENTER);
    346329    }
Note: See TracChangeset for help on using the changeset viewer.