rangebeanframe.java~4~
来自「java bean 编程程序」· JAVA~4~ 代码 · 共 39 行
JAVA~4~
39 行
package chapter8;
import java.awt.*;
import javax.swing.*;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
public class RangeBeanFrame
extends JFrame
{
FlowLayout flowLayout1 = new FlowLayout();
RangeBean rangeBean = new RangeBean();
public RangeBeanFrame()
{
try
{
jbInit();
}
catch (Exception exception)
{
exception.printStackTrace();
}
}
private void jbInit()
throws Exception
{
getContentPane().setLayout(flowLayout1); rangeBean.setFromBgColor(Color.
yellow); rangeBean.setToBgColor(UIManager.getColor("info"));
getContentPane().add(rangeBean);
}
public static void main(String[] args)
{
RangeBeanFrame rangebeanframe = new RangeBeanFrame();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?