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

📄 typeframe.java

📁 可以对名片进行增删改查,用户管理包括增删改查等,对名片查询时可以模糊查询
💻 JAVA
字号:
package card;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.*;
import javax.swing.JButton;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class typeFrame extends JFrame {
    JPanel contentPane;
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    public typeFrame() {
        try {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    /**
     * Component initialization.
     *
     * @throws java.lang.Exception
     */
    private void jbInit() throws Exception {
        contentPane = (JPanel) getContentPane();
        contentPane.setLayout(null);
        setSize(new Dimension(400, 388));
        setTitle("Frame Title");
        jButton1.setBounds(new Rectangle(135, 50, 118, 64));
        jButton1.setText("jButton1");
        jButton1.addActionListener(new typeFrame_jButton1_actionAdapter(this));
        jButton2.setBounds(new Rectangle(138, 203, 132, 60));
        jButton2.setText("jButton2");
        jButton2.addActionListener(new typeFrame_jButton2_actionAdapter(this));
        contentPane.add(jButton1);
        contentPane.add(jButton2);
    }

    public void jButton1_actionPerformed(ActionEvent e) {
       typeDialog td=new typeDialog();
       td.setBounds(400,400,400,400);
       td.setVisible(true);
    }

    public void jButton2_actionPerformed(ActionEvent e) {
         cardDialog cd=new cardDialog();
         cd.setBounds(400,400,550,500);
         cd.setVisible(true);
    }
}


class typeFrame_jButton2_actionAdapter implements ActionListener {
    private typeFrame adaptee;
    typeFrame_jButton2_actionAdapter(typeFrame adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButton2_actionPerformed(e);
    }
}


class typeFrame_jButton1_actionAdapter implements ActionListener {
    private typeFrame adaptee;
    typeFrame_jButton1_actionAdapter(typeFrame adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButton1_actionPerformed(e);
    }
}

⌨️ 快捷键说明

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