01: package org.webdocwf.util.loader.wizard;
02:
03: import java.awt.*;
04: import java.awt.event.*;
05: import javax.swing.*;
06:
07: public class OctopusAboutFrame extends JInternalFrame {
08:
09: private JDesktopPane desktop;
10:
11: public OctopusAboutFrame(JDesktopPane desktop) {
12: super ("About Together Data Transformer ...", false, true, false);
13: this .desktop = desktop;
14:
15: setFrameIcon(new ImageIcon(getClass().getClassLoader()
16: .getResource(
17: "org/webdocwf/util/loader/"
18: + "wizard/images/Enhydra16.gif")));
19:
20: JEditorPane aboutPane = new JEditorPane();
21: JPanel main = new JPanel();
22: JPanel buttonPanel = new JPanel();
23: main.setLayout(new BoxLayout(main, BoxLayout.Y_AXIS));
24:
25: JButton button = new JButton("Close About ...");
26: button.setSize(new Dimension(100, 100));
27: button.setVisible(true);
28: buttonPanel.add(button, BorderLayout.CENTER);
29: button.addActionListener(new ActionListener() {
30: public void actionPerformed(ActionEvent e) {
31: dispose();
32: }
33:
34: });
35:
36: try {
37: aboutPane.setPage((getClass()
38: .getResource("HelpPages/About.html")));
39: aboutPane.setEditable(false);
40: } catch (Exception ex) {
41: ex.printStackTrace();
42: }
43: aboutPane.setVisible(true);
44: main.add(aboutPane);
45: main.add(buttonPanel);
46:
47: Container contentPane = getContentPane();
48: contentPane.add(main, BorderLayout.CENTER);
49: setBounds(1, 1, 450, 655);
50: setLocation(350, 150);
51: }
52:
53: }
|