source: trunk/gli/src/org/greenstone/gatherer/gui/SimpleMenuBar.java@ 13531

Last change on this file since 13531 was 12119, checked in by kjdon, 18 years ago

Changed text handling to use Dictionary.get rather than Dictionary.setText or Dictionary.registerBoth etc. also removed mnemonics cos they suck for other languages

  • Property svn:keywords set to Author Date Id Revision
File size: 771 bytes
Line 
1package org.greenstone.gatherer.gui;
2
3import java.awt.*;
4import java.awt.event.*;
5import javax.swing.*;
6import org.greenstone.gatherer.Dictionary;
7import org.greenstone.gatherer.util.JarTools;
8
9public class SimpleMenuBar
10 extends JMenuBar
11 implements ActionListener {
12
13 private String page_name;
14
15 public SimpleMenuBar(String page_name) {
16 this.page_name = page_name;
17 JMenu help = new JMenu();
18 help.setIcon(JarTools.getImage("help.gif"));
19 help.setText(Dictionary.get("Menu.Help"));
20
21 JMenuItem help_help = new JMenuItem(Dictionary.get("Menu.Help"));
22 help_help.addActionListener(this);
23
24 help.add(help_help);
25
26 add(Box.createHorizontalGlue());
27 add(help);
28 }
29
30 public void actionPerformed(ActionEvent event) {
31 HelpFrame.setView(page_name);
32 }
33}
Note: See TracBrowser for help on using the repository browser.