- Timestamp:
- 2006-01-16T11:44:24+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/DesignPaneHeader.java
r11032 r11037 12 12 * <BR><BR> 13 13 * 14 * Copyright (C) 1999New Zealand Digital Library Project14 * Copyright (C) 2006 New Zealand Digital Library Project 15 15 * 16 16 * <BR><BR> … … 46 46 import org.greenstone.gatherer.gui.MenuBar; 47 47 48 /** creates a header pane containing the title of the screen, and a help button which links to t ehappropriate help page */48 /** creates a header pane containing the title of the screen, and a help button which links to the appropriate help page */ 49 49 public class DesignPaneHeader 50 50 extends JPanel 51 51 { 52 52 protected String help_key_name; 53 54 public DesignPaneHeader(String label_key, String help_key) {55 53 56 setLayout(new BorderLayout()); 57 JLabel header_label = new JLabel("<HTML><STRONG><FONT FACE={FONT} COLOR=Black SIZE=5>"+Dictionary.get(label_key)+"</FONT></STRONG></HTML>"); 58 54 55 public DesignPaneHeader(String label_key, String help_key) 56 { 57 JLabel title_label = new JLabel("<HTML><STRONG><FONT FACE={FONT} COLOR=Black SIZE=5>" + Dictionary.get(label_key) + "</FONT></STRONG></HTML>"); 58 59 JPanel title_pane = new JPanel(); 60 title_pane.setBorder(BorderFactory.createEmptyBorder(0,0,0,5)); 61 title_pane.setLayout(new BorderLayout()); 62 title_pane.add(title_label, BorderLayout.CENTER); 63 title_pane.add(new JSeparator(), BorderLayout.SOUTH); 64 59 65 JButton help_button = new JButton(); 60 66 Dictionary.registerBoth(help_button, "CDM.HelpButton", "CDM.HelpButton_Tooltip"); 61 67 this.help_key_name = help_key; 62 68 help_button.setIcon(MenuBar.HELP_ICON); 63 help_button.addActionListener(new ActionListener ()69 help_button.addActionListener(new ActionListener() 64 70 { 65 71 public void actionPerformed(ActionEvent event) { … … 67 73 } 68 74 }); 69 add(header_label, BorderLayout.WEST); 75 76 setLayout(new BorderLayout()); 77 add(title_pane, BorderLayout.CENTER); 70 78 add(help_button, BorderLayout.EAST); 71 72 79 } 73 74 80 }
Note:
See TracChangeset
for help on using the changeset viewer.