?? flowlayoutexample.java.polystyle.backup
字號(hào):
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class FlowLayoutExample{
public static void main (String args[]) {
JFrame frame_flow = new JFrame ("FlowLayout示例");
Container contentPane = frame_flow.getContentPane();
contentPane.setLayout(new FlowLayout());
contentPane.add(new JButton("one"));
contentPane.add(new JButton("two"));
contentPane.add(new JButton("three"));
contentPane.add(new JButton("four"));
contentPane.add(new JButton("five"));
frame_flow.pack();
frame_flow.show();
frame_flow.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e) {
System.exit(0);}});}}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -