能不能用C编写出窗口阿?就想用java编写出一个简单的登录窗口

来源:百度知道 编辑:UC知道 时间:2024/06/17 19:17:51
各位大侠指点一下阿

用c都能写出操作系统,小小一个窗口,难道不能解决吗?

以前写的JAVA的登陆界面,是你要的吗?

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.*;

public class DengLuJieMian extends Frame implements ActionListener
{
JLabel JLUserName=new JLabel("用户名");
JLabel JLPaw=new JLabel("密 码");
JTextField JTUserName=new JTextField();
JPasswordField JPsw=new JPasswordField();
JButton JB1=new JButton("登陆");
JButton JB2=new JButton("取消");
JLabel JL1=new JLabel("身 份");
JComboBox JC=new JComboBox();

public DengLuJieMian()
{
this.setTitle("学生信息管理系统");
this.setLayout(null);
JLUserName.setBounds(100,40,100,20);
this.add(JLUserName);
JTUserName.setBounds(200,40,80,20);
this.add(JTUserName);
JLPaw.setBounds(100,100,60,20);
this.add(JLPaw);
JPsw.setB