📄 zq_tupian.java
字号:
package ZQ;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author not attributable * @version 1.0 */import com.zdsoft.gui.*;import com.zdsoft.datacenter.ASDatacenter;import com.zdsoft.datastore.ASDatastore;import javax.swing.*;import java.awt.*;import java.awt.event.*;import ZQ.*;import java.applet.*;import java.net.*;import java.io.*;import LJB.*;public class ZQ_tupian extends ASDialog{ JPanel jPanel1 = new JPanel(); JPanel jPanel2 = new JPanel(); BorderLayout borderLayout2 = new BorderLayout(); LJB_show l; Icon ic = new ImageIcon("美女.gif"); JPanel jPanel3 = new JPanel(); FlowLayout flowLayout1 = new FlowLayout(); JButton jButton1 = new JButton(); JButton jButton2 = new JButton(); JLabel jLabel1 = new JLabel(); int i; //long e; public ZQ_tupian(LJB_show l) { this.l = l; try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { this.setSize(new Dimension(283, 497)); jLabel1.setIcon(ic); jPanel2.setLayout(flowLayout1); this.getContentPane().setLayout(borderLayout2); jButton1.setFont(new java.awt.Font("Serif", 0, 12)); jButton1.setForeground(Color.magenta); jButton1.setText("取消"); jButton1.addActionListener(new ZQ_tupian_jButton1_actionAdapter(this)); jButton2.setFont(new java.awt.Font("Serif", 0, 12)); jButton2.setForeground(Color.magenta); jButton2.setText("确定"); jButton2.addActionListener(new ZQ_tupian_jButton2_actionAdapter(this)); this.getContentPane().add(jPanel1, BorderLayout.CENTER); jPanel1.add(jLabel1, null); this.getContentPane().add(jPanel2, BorderLayout.SOUTH); jPanel2.add(jButton2, null); jPanel2.add(jButton1, null); this.getContentPane().add(jPanel3, BorderLayout.NORTH); this.setWindowCenter();} void jButton2_actionPerformed(ActionEvent e) { } void jButton1_actionPerformed(ActionEvent e) { this.dispose(); }// public static void main(String args[]){// JFrame jframe = new JFrame("JFrame演示窗口");// jframe.addWindowListener(new WindowAdapter(){// public void windowClosing(WindowEvent e){// System.exit(0);}});// jframe.setSize(800,600);// JLabel jlabel = new JLabel("图形",new ImageIcon("meinv.gif"),//JLabel.CENTER);// jlabel.setVerticalTextPosition(JLabel.TOP);// jlabel.setHorizontalTextPosition(JLabel.CENTER);// jframe.getContentPane().add(jlabel,BorderLayout.CENTER);// jframe.pack();// jframe.setVisible(true);// }}class ZQ_tupian_jButton2_actionAdapter implements java.awt.event.ActionListener { ZQ_tupian adaptee; ZQ_tupian_jButton2_actionAdapter(ZQ_tupian adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton2_actionPerformed(e); }}class ZQ_tupian_jButton1_actionAdapter implements java.awt.event.ActionListener { ZQ_tupian adaptee; ZQ_tupian_jButton1_actionAdapter(ZQ_tupian adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton1_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -