Panel in the Frame,手动居中
来源:互联网 发布:微信会员积分系统源码 编辑:程序博客网 时间:2024/05/10 17:22
import java.awt.*;public class TestCenterPanel {public static void main(String[] args) {new SelfFrame("FrameWithPanel", 50,50,400,400);}}class SelfFrame extends Frame{private Panel pn;SelfFrame(String str, int x, int y, int width, int height){super(str);super.setBackground(Color.blue);super.setVisible(true);super.setBounds(x, y, width, height);super.setLayout(null);pn = new Panel(null);pn.setBackground(Color.yellow);pn.setBounds((width-width/2)/2, (height-height/2)/2, width/2, height/2);super.add(pn);}}
0 0
- Panel in the Frame,手动居中
- 窗体居中 Frame center in java
- 在frame使用panel
- Frame与Panel
- Frame和Panel
- Frame与Panel
- frame和panel
- Elastic Ball in the Frame(水题)
- extjs panel 居中
- ExtJS 4.0 panel居中
- hide the task bar and input panel in Windows Mobile
- checkbox in the panel control under control of one page
- How to restore the deleted panel in Ubuntu
- div panel frame 高度 宽度
- Java中Frame&Panel实例
- Java Frame Panel JFrame JPanel
- Frame窗口居中
- Flex 4.7 之 Panel 居中
- 2.2 层次闭包性质 练习 2.17 2.20
- 生产订单修改记录的跟踪方法!
- 大数据平台用于生成数据跑批脚本的脚本(version2.0)
- 自定义发票
- 使用地图API,获取经纬度并传到服务器
- Panel in the Frame,手动居中
- mysql 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin
- ExpandableListView的简单使用
- 设计模式之外观模式(C++实现)
- Spark MLlib实现的中文文本分类–Naive Bayes
- mongodb如何记录慢查询
- 手机屏幕投到Windows系统
- c#.net连接mongodb入门(一)
- 父表与子表