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/SubcollectionManager.java

    r10345 r11031  
    3737import org.greenstone.gatherer.Dictionary;
    3838import org.greenstone.gatherer.Gatherer;
     39import org.greenstone.gatherer.gui.DesignPaneHeader;
    3940import org.greenstone.gatherer.gui.GLIButton;
    4041import org.greenstone.gatherer.gui.NonWhitespaceField;
     
    167168    private JPanel border_pane;
    168169    private JTabbedPane tabbed_pane;
    169     private JTextArea instructions_area;
    170170    private JTextField flags_field;
    171171    private JTextField match_field;
     
    177177    public SubcollectionControl() {
    178178        // Create
    179         JPanel header_pane = new JPanel();
    180         instructions_area = new JTextArea();
    181         instructions_area.setEditable(false);
    182         instructions_area.setLineWrap(true);
    183         instructions_area.setRows(6);
    184         instructions_area.setWrapStyleWord(true);
    185         Dictionary.registerText(instructions_area, "CDM.SubcollectionManager.Instructions");
     179        JPanel header_pane = new DesignPaneHeader("CDM.GUI.Subcollections", "partitionindexes");
    186180
    187181        border_pane = new JPanel();
     
    288282        name_field.getDocument().addDocumentListener(cl);
    289283        subcollection_list.addListSelectionListener(new SubCollectionListListener());
    290 
    291         // Layout
    292         instructions_area.setBorder(BorderFactory.createEmptyBorder(2,5,2,5));
    293 
    294         header_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    295         header_pane.setLayout(new BorderLayout());
    296         header_pane.add(title, BorderLayout.NORTH);
    297         header_pane.add(new JScrollPane(instructions_area), BorderLayout.CENTER);
    298284
    299285        inclusive_pane.setLayout(new GridLayout());
Note: See TracChangeset for help on using the changeset viewer.