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

📄 aboutwindow.java

📁 CMU图象模块的上层浏览软件,可和CMU模块直接通信
💻 JAVA
字号:
import java.awt.event.*;
import javax.swing.*;

public class AboutWindow {
	JFrame about_f;
	JPanel about_p;
	JDialog about_d;

	AboutWindow() {
		about_f = new JFrame();
		about_p = new JPanel();

		JTextArea about_t =
			new JTextArea("This is the CMUcam2 GUI v1.0.5\n\nThis program was designed to help you test features of the CMUcam2.\nIt is also compatible with the CMUcam1, but not highly supported.\n\nWritten by Anthony Rowe, Fall 2003\n\nSpecial Thanks to Adam Goode for fixing things up.");

		JButton about_b = new JButton("Ok");
		about_b.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				about_d.setVisible(false);
			}
		});
		about_d = new JDialog(about_f, "About CMUcamGUI");
		about_p.add("Center", about_t);
		about_p.add("South", about_b);
		about_d.getContentPane().add(about_p);
		//about_d.getContentPane().setBounds(50, 50, 510, 230);
		about_d.pack();
		about_d.hide();

	}

}

⌨️ 快捷键说明

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