Java问题 急啊

来源:百度知道 编辑:UC知道 时间:2024/05/02 21:01:28
{
gridBagLayout1 = new GridBagLayout();
jLabel1 = new JLabel();
jLabel2 = new JLabel();
jLabel3 = new JLabel();
jTextField1 = new JTextField();
jPasswordField1 = new JPasswordField();
jButton2 = new JButton();
jButton3 = new JButton();
message = "abcd";
}
public void init()
{
try
{
jbInit();
}
catch(Exception ex)
{
ex.printStackTrace();
}
}
private void jbInit()
throws Exception
{
getContentPane().setLayout(gridBagLayout1);
jLabel1.setText("\u7528 \u6237 \u767B \u5F55");
jButton2.addActionListener(new LoginApplet_jButton2_actionAdapter(this));
jButton3.addActionListener(new LoginApplet_jButton3_actionAdapter(this));
getContentPane().add(jLabel1, new GridBagConstraints(0, 0, 2, 1, 0.29999999999999999D, 0.0D, 10, 0, new Insets(3, 0,

0, 0), 0, 16));
jLabel2.setText("

网页里嵌套的一个GUI面板,上面是一些设置格式与颜色的属性以及事件响应。有输信息的text框,还有输密码的。另外就是一些按键。

楼上的错了,这个是Java application而不是网页里的
jLabel2.setText("\u7528\u6237\u540D\uFF1A");
就是设置label的值,("\u7528\u6237\u540D\uFF1A")是unicode码,具体可以搜索native2ascii,了解相关知识
程序的内容大概是相当于一个登录界面