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

    r10556 r11031  
    4141import org.greenstone.gatherer.util.StaticStrings;
    4242import org.greenstone.gatherer.util.Utility;
     43import org.greenstone.gatherer.gui.DesignPaneHeader;
    4344import org.w3c.dom.*;
    4445
     
    123124
    124125        // Creation
    125         JPanel header_panel = new JPanel();
    126 
    127         JLabel title_label = new JLabel();
    128         title_label.setHorizontalAlignment(JLabel.CENTER);
    129         title_label.setOpaque(true);
    130         Dictionary.registerText(title_label, "CDM.SuperCollectionManager.Title");
    131 
    132         JTextArea instructions = new JTextArea();
    133         instructions.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    134         instructions.setCaretPosition(0);
    135         instructions.setEditable(false);
    136         instructions.setLineWrap(true);
    137         instructions.setRows(6);
    138         instructions.setWrapStyleWord(true);
    139         Dictionary.registerText(instructions, "CDM.SuperCollectionManager.Instructions");
     126        JPanel header_panel = new DesignPaneHeader("CDM.GUI.SuperCollection", "xcollectionsearching");
    140127
    141128        collection_checklist = new CheckList(false);
    142129        buildModel();
    143130        collection_checklist.setListData(collection_checklist_model);
    144 
    145         // Layout
    146         header_panel.setBorder(BorderFactory.createEmptyBorder(0,0,5,0));
    147         header_panel.setLayout(new BorderLayout());
    148         header_panel.add(title_label, BorderLayout.NORTH);
    149         header_panel.add(new JScrollPane(instructions), BorderLayout.CENTER);
    150131
    151132        setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
Note: See TracChangeset for help on using the changeset viewer.