⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 octopusaboutframe.java

📁 数据仓库工具
💻 JAVA
字号:
package org.webdocwf.util.loader.wizard;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;


public class OctopusAboutFrame extends JInternalFrame{

private JDesktopPane desktop;

  public OctopusAboutFrame(JDesktopPane desktop) {
    super("About Octopus ...",false,true,false );
    this.desktop=desktop;

    setFrameIcon( new ImageIcon(getClass().getClassLoader().getResource("org/webdocwf/util/loader/"+
        "wizard/images/Enhydra16.gif")));

    JEditorPane aboutPane=new JEditorPane();
    JPanel main=new JPanel();
    JPanel buttonPanel=new JPanel();
    main.setLayout(new BoxLayout(main,BoxLayout.Y_AXIS));

    JButton button = new JButton("Close About ...");
    button.setSize(new Dimension(100, 100));
    button.setVisible(true);
    buttonPanel.add(button,BorderLayout.CENTER);
    button.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        dispose();
      }

    });

    try {
      aboutPane.setPage((getClass().getResource("HelpPages/About.html")));
      aboutPane.setEditable(false);
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
    aboutPane.setVisible(true);
    main.add(aboutPane);
    main.add(buttonPanel);

    Container contentPane=getContentPane();
    contentPane.add(main,BorderLayout.CENTER);
    setBounds(1, 1, 430, 500);
  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -