📄 frame1.java~9~
字号:
package chapter7.layout;
import java.awt.*;
import javax.swing.*;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
public class Frame1
extends JFrame
{
FlowLayout flowLayout1 = new FlowLayout();
XYLayout xYLayout1 = new XYLayout();
JTextPane jTextPane1 = new JTextPane();
JSpinner jSpinner1 = new JSpinner();
JSlider jSlider1 = new JSlider();
/**
*
*/
public Frame1()
{
getContentPane().setLayout(flowLayout1);
try
{
jbInit();
}
catch (Exception ex)
{
ex.printStackTrace();
}
}
public static void main(String[] args)
{
Frame1 f1 = new Frame1();
f1.setSize(250, 250);
f1.setVisible(true);
}
private void jbInit()
throws Exception
{
this.getContentPane().setLayout(xYLayout1);
jTextPane1.setText("jTextPane1");
this.getContentPane().add(jTextPane1,
new XYConstraints(132, 206, -1, -1));
this.getContentPane().add(jSpinner1, new XYConstraints(120, 149, 71, -1));
this.getContentPane().add(jSlider1, new XYConstraints(67, 68, -1, -1));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -