java忘记密码源码_frame1.java~2~ 源代码在线查看 - 可以告诉你怎么输入密码的程序 资源下载 虫虫电子下载站...

package mima;import java.awt.*;import java.awt.event.*;import javax.swing.*;import com.borland.jbcl.layout.*;/** * Title: * Description: * Copyright: Copyright (c) 2004 * Company: * @author not attributable * @version 1.0 */public class Frame1 extends JFrame { JPanel contentPane; XYLayout xYLayout1 = new XYLayout(); JLabel jLabel1 = new JLabel(); JLabel jLabel2 = new JLabel(); JPasswordField jP1 = new JPasswordField(); JPasswordField jP2 = new JPasswordField(); JButton jButton1 = new JButton(); JButton jButton2 = new JButton(); JButton jButton3 = new JButton(); JButton jButton4 = new JButton(); //Construct the frame public Frame1() { enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { contentPane = (JPanel) this.getContentPane(); jLabel1.setText("请输入您的密码:"); contentPane.setLayout(xYLayout1); this.setSize(new Dimension(400, 300)); this.setTitle("Frame Title"); contentPane.setToolTipText(""); jLabel2.setText("请再次输入密码:"); jButton1.setText("确定"); jButton2.setText("重输"); jButton3.setText("jButton3"); jButton4.setText("jButton4"); jP1.setText(""); jP2.setText(""); contentPane.add(jLabel1, new XYConstraints(35, 15, -1, -1)); contentPane.add(jLabel2, new XYConstraints(36, 69, -1, -1)); contentPane.add(jP1, new XYConstraints(133, 10, 112, -1)); contentPane.add(jP2, new XYConstraints(133, 70, 113, -1)); contentPane.add(jButton1, new XYConstraints(293, 12, -1, -1)); contentPane.add(jButton2, new XYConstraints(296, 66, -1, -1)); contentPane.add(jButton3, new XYConstraints(72, 159, -1, -1)); contentPane.add(jButton4, new XYConstraints(251, 161, -1, -1)); } //Overridden so we can exit when window is closed protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } }}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值