libraryinfoaction.java

来自「a system for management of library,this 」· Java 代码 · 共 30 行

JAVA
30
字号
package net.sfte.htlibrary.ui.action;

import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import net.sfte.htlibrary.ui.LibraryInfoDialog;

/**
 * This class is the action listener of libraryInfo menuItem. It shows a dialog
 * to display the library infomation, and User can modify or custom their's
 * system.
 * 
 * @author wenwen
 */
public class LibraryInfoAction implements ActionListener {
	public LibraryInfoAction(Component parent) {
		this.parent = parent;
	}

	public void actionPerformed(ActionEvent e) {
		if (dialog == null)
			dialog = new LibraryInfoDialog();
		dialog.showDialog(parent);
	}

	private Component parent = null;

	LibraryInfoDialog dialog = null;
}

⌨️ 快捷键说明

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