Last change
on this file since 5590 was 5571, checked in by mdewsnip, 21 years ago |
More small updates and tooltips added.
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
859 bytes
|
Line | |
---|
1 | package org.greenstone.gatherer.gui;
|
---|
2 |
|
---|
3 | import java.awt.*;
|
---|
4 | import java.awt.event.*;
|
---|
5 | import javax.swing.*;
|
---|
6 | import org.greenstone.gatherer.Dictionary;
|
---|
7 | import org.greenstone.gatherer.Gatherer;
|
---|
8 | import org.greenstone.gatherer.util.Utility;
|
---|
9 |
|
---|
10 | public class SimpleMenuBar
|
---|
11 | extends JMenuBar
|
---|
12 | implements ActionListener {
|
---|
13 |
|
---|
14 | private String page_name;
|
---|
15 |
|
---|
16 | public SimpleMenuBar(String page_name) {
|
---|
17 | this.page_name = page_name;
|
---|
18 | JMenu help = new JMenu();
|
---|
19 | help.setIcon(Utility.HELP_ICON);
|
---|
20 | Dictionary.setText(help, "Menu.Help");
|
---|
21 |
|
---|
22 | JMenuItem help_help = new JMenuItem();
|
---|
23 | help_help.addActionListener(this);
|
---|
24 | Dictionary.setText(help_help, "Menu.Help");
|
---|
25 |
|
---|
26 | help.add(help_help);
|
---|
27 |
|
---|
28 | add(Box.createHorizontalGlue());
|
---|
29 | add(help);
|
---|
30 | }
|
---|
31 |
|
---|
32 | public void actionPerformed(ActionEvent event) {
|
---|
33 | Gatherer.g_man.help.setView(page_name);
|
---|
34 | }
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.