📄 salutonframe2.java
字号:
import javax.swing.*;
import java.awt.*;
public class SalutonFrame2 extends JFrame {
public SalutonFrame2() {
super();
setSize(350, 100);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel salutonLabel = new JLabel("Saluton mondo!");
FlowLayout flo = new FlowLayout();
setLayout(flo);
add(salutonLabel);
setVisible(true);
}
public static void main(String[] arguments) {
SalutonFrame2 sal = new SalutonFrame2();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -