📄 infoframe.java~2~
字号:
package ct;import javax.swing.*;import java.awt.*;import com.borland.jbcl.layout.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class infoFrame extends JFrame { JLabel jLabel1 = new JLabel(); XYLayout xYLayout1 = new XYLayout(); JLabel jLabel2 = new JLabel(); public infoFrame(String name,Color scolor) { try { jbInit(); jLabel2.setText(name); jLabel2.setForeground(scolor); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { jLabel1.setFont(new java.awt.Font("Dialog", 0, 16)); jLabel1.setText("玩家昵称:"); this.getContentPane().setLayout(xYLayout1); jLabel2.setFont(new java.awt.Font("Dialog", 0, 16)); jLabel2.setText(""); this.getContentPane().add(jLabel1, new XYConstraints(20, 45, 70, 30)); this.getContentPane().add(jLabel2, new XYConstraints(66, 89, 150, 30)); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -