Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
AboutDialog.java
Package: tanqiu2.rar [view]
Upload User: mgrzxhaci
Upload Date: 2009-12-20
Package Size: 18k
Code Size: 1k
Category:
Other Games
Development Platform:
Java
- package notebook;
- import java.awt.*;
- import javax.swing.*;
- import java.awt.event.*;
- public class AboutDialog extends JDialog {
- JPanel panel1 = new JPanel();
- JPanel jPanel1 = new JPanel();
- JLabel jLabel1 = new JLabel();
- JButton jButton1 = new JButton();
- public AboutDialog(Frame frame, String title, boolean modal) {
- super(frame, title, modal);
- try {
- jbInit();
- pack();
- }
- catch(Exception ex) {
- ex.printStackTrace();
- }
- }
- public AboutDialog() {
- this(null, "", false);
- }
- private void jbInit() throws Exception {
- jLabel1.setText("版本1.0");
- jButton1.setText("确 定");
- jButton1.addActionListener(new AboutDialog_jButton1_actionAdapter(this));
- getContentPane().add(panel1);
- panel1.add(jLabel1, null);
- this.getContentPane().add(jPanel1, BorderLayout.SOUTH);
- jPanel1.add(jButton1, null);
- this.setLocation(400,300);
- this.setSize(150,100);
- this.setVisible(true);
- this.setTitle("About");
- }
- void jButton1_actionPerformed(ActionEvent e) {
- this.dispose();
- }
- }
- class AboutDialog_jButton1_actionAdapter implements java.awt.event.ActionListener {
- AboutDialog adaptee;
- AboutDialog_jButton1_actionAdapter(AboutDialog adaptee) {
- this.adaptee = adaptee;
- }
- public void actionPerformed(ActionEvent e) {
- adaptee.jButton1_actionPerformed(e);
- }
- }