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

📄 help.java

📁 图书馆的图书管理系统! 图书查询
💻 JAVA
字号:


import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import com.swtdesigner.SwingResourceManager;

public class Help extends JFrame {

	/**
	 * Launch the application
	 * 
	 * @param args
	 */
	public static void main(String args[]) {
		try {
			Help frame = new Help();
			frame.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the frame
	 */
	public Help() {
		super("帮助");
		setIconImage(SwingResourceManager.getImage(Help.class, "book.jpg"));
		getContentPane().setLayout(null);
		setResizable(false);
		setBounds(150, 150, 724, 468);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		final JButton button_2 = new JButton();
		button_2.setText("确定");
		button_2.setBounds(619, 403, 99, 23);
		getContentPane().add(button_2);
		final JButton button = new JButton();
		button.setText("使用说明");
		button.setBounds(30, 30, 99, 23);
		getContentPane().add(button);

		final JButton button_1 = new JButton();
		button_1.setText("技术支持");
		button_1.setBounds(30, 80, 99, 23);
		getContentPane().add(button_1);
		
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				try {
					Process process = Runtime.getRuntime().exec("cmd.exe /c start http://guyulong.ik8.com");
				} catch (IOException e) {
					// TODO 自动生成 catch 块
					e.printStackTrace();
				} 

			}
		});

		final JLabel label = new JLabel();
		label.setIcon(SwingResourceManager.getIcon(Help.class, "help.JPG"));
		label.setText("New JLabel");
		label.setBounds(0, 0, 718, 436);
		getContentPane().add(label);
		button_1.setFont(new Font("华文行楷", Font.PLAIN, 16));
		button_2.setFont(new Font("隶书", Font.PLAIN, 18));
		button.setFont(new Font("华文行楷", Font.PLAIN, 16));

		button_2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				dispose();
			}
		});
		//
	}

}

⌨️ 快捷键说明

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