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

📄 aboutaction.java~5~

📁 简单的硬盘配置界面
💻 JAVA~5~
字号:
package informationsystem.gui;

import java.awt.event.*;
import java.awt.*;
import informationsystem.gui.MainWindow;

public class AboutAction
    implements ActionListener {
  private MainWindow window;

  public AboutAction(MainWindow window) {
    this.window = window;
  }

  /**
   * Invoked when an action occurs.
   *
   * @param e ActionEvent
   * @todo Implement this java.awt.event.ActionListener method
   */
  public void actionPerformed(ActionEvent e) {
    AboutDialog dlg = new AboutDialog(this);
   Dimension dlgSize = dlg.getPreferredSize();
   Dimension frmSize = this.window.getSize();
   Point loc = this.window.getLocation();
   dlg.setLocation( 132 + loc.x,
                    122 + loc.y);
   dlg.setModal(true);
   dlg.pack();
   dlg.show();

  }
}

⌨️ 快捷键说明

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