📄 returnmainpanel.java
字号:
package stage_project;
import java.awt.*;
import javax.swing.*;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2008</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class ReturnMainPanel extends JPanel {
public ReturnMainPanel() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
ImageIcon img = new ImageIcon("bei.gif");
JLabel jLabel1 = new JLabel();
JLabel lblName = new JLabel();
private void jbInit() throws Exception {
this.setLayout(null);
setSize(new Dimension(960, 600));
ImageIcon img = new ImageIcon("bei.gif");
jLabel1.setIcon(img);
jLabel1.setBounds(new Rectangle(1, 0, 964, 602));
lblName.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
DebarkationDialog dd = new DebarkationDialog();
String username = dd.name;
lblName.setText(username);
lblName.setBounds(new Rectangle(700, 57, 100, 25));
this.add(lblName);
this.add(jLabel1);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -