📄 helloframe.java~5~
字号:
package com.borland.samples.welcome;
import javax.swing.*;
import java.awt.FlowLayout;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class Helloframe
extends JFrame {
public Helloframe() {
init();
}
void init(){
FlowLayout fl = new FlowLayout();
JLabel j = new JLabel("hello word");
JTextField jtf = new JTextField(" ");
this.getContentPane().setLayout(fl);
this.add(j);
this.add(jtf);
this.setSize(100,100);
this.show(true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -