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

📄 minmizeframe.java

📁 提醒簿采用java语言和xml数据库结合开发.通过读写xml文件动态写入读取备忘录.,通过线程机制及时提醒您.提供多种提醒方式.操作方便,使用简单.是个很不错的提醒簿. 运行平台: Windows
💻 JAVA
字号:
package main_frame;

import java.awt.*;

import javax.swing.*;
import java.awt.BorderLayout;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * <p>Title:勿忘软件,lzquan </p>
 *
 * <p>Description:勿忘软件 </p>
 *
 * <p>Copyright: 泉水依然 Copyright (c) 2007-03-20</p>
 *
 * <p>Company: 泉水依然</p>
 *
 * @author :权哥,湖南农业大学科学技术师范学院04计算机教育班.
 *
 * QQ:25241418
 */
public class minmizeFrame extends JFrame {
    JButton jButton1 = new JButton();
    XYLayout xYLayout1 = new XYLayout();
    JButton jButton2 = new JButton();
    mainFrame mf = null;
    JLabel jLabel1 = new JLabel();

    public minmizeFrame() {
        try {
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        getContentPane().setLayout(xYLayout1);
        this.getContentPane().setBackground(new Color(236, 233, 255));
        this.setUndecorated(true);
        jButton1.setText("还原");
        jButton1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                jButton1_actionPerformed(e);
            }
        });
        jButton2.setText("退出");
        jButton2.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                jButton2_actionPerformed(e);
            }
        });
        xYLayout1.setWidth(200);
        xYLayout1.setHeight(28);
        jLabel1.setText("勿忘提醒簿");
        this.getContentPane().add(jButton1, new XYConstraints(0, 1, 60, 27));
        this.getContentPane().add(jButton2, new XYConstraints(61, 1, -1, 27));
        this.getContentPane().add(jLabel1, new XYConstraints(119, 1, 81, 25));
        jLabel1.setIcon(new ImageIcon("images/ICON.jpg"));
        this.setTitle("勿忘提醒簿");
    }
    /**
     * 获取主窗体.
     * @param mainFrame Object
     */
    public void setMainFrame(Object mainFrame){
        this.mf =(mainFrame) mainFrame;
    }

    public void jButton2_actionPerformed(ActionEvent e) {
        System.exit(0);
    }


    public void jButton1_actionPerformed(ActionEvent e) {
        this.mf.setVisible(true);
        this.mf.setLocation(300, 200);
        this.mf.setSize(500, 400);
        Thread notForget = new Thread(this.mf,"Not_Forget");
        notForget.start();
        this.dispose();
    }

    public static void main(String[] args) {
        minmizeFrame minmizeframe = new minmizeFrame();
        minmizeframe.setSize(200, 30);
        minmizeframe.setLocation(824, 700);
        minmizeframe.setVisible(true);
    }
}

⌨️ 快捷键说明

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