文件名称:JLAYEREDPANEDEMO
- 所属分类:
- JSP源码/Java
- 资源属性:
- 上传时间:
- 2014-04-15
- 文件大小:
- 17kb
- 下载次数:
- 0次
- 提 供 者:
- lia***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Java实现分层框体,实现思路是:先创建一个JLayeredPane 类的实例,然后逐个地在这个对象的不同层上添加不同颜色的JLabel 对象。在不同层上添加JLabel 对象的方法如下:
layeredPane.add(label, new Integer(i)) //将label 添加到layeredPane 的第i 层。
本例将很简要地介绍它的用法,并演示其实际的效果。如上截图所示的即为运行效果。
这个实例中用到了Jfr a me 窗体框架中的用于放置JDesktopPane 对象的层,使用Jfr a me 窗体框架中的另外一个特殊的层,专门用于放置JLayeredPane 对象。-Java tiered fr a me to realize ideas: first create an instance of the class JLayeredPane then added one by one JLabel objects of different colors in different layers of the object. Add JLabel objects on different layers as follows: layeredPane.add (label, new Integer (i)) //add the label to layeredPane i-layer. In this case would be a brief introduction to its use, and demonstrate its practical effect. As shown in the screenshot is the operating results. This example uses the Jfr a me form the fr a mework for placing JDesktopPane object layer, using the fr a mework of another Jfr a me form a special layer, designed to be placed JLayeredPane objects.
layeredPane.add(label, new Integer(i)) //将label 添加到layeredPane 的第i 层。
本例将很简要地介绍它的用法,并演示其实际的效果。如上截图所示的即为运行效果。
这个实例中用到了Jfr a me 窗体框架中的用于放置JDesktopPane 对象的层,使用Jfr a me 窗体框架中的另外一个特殊的层,专门用于放置JLayeredPane 对象。-Java tiered fr a me to realize ideas: first create an instance of the class JLayeredPane then added one by one JLabel objects of different colors in different layers of the object. Add JLabel objects on different layers as follows: layeredPane.add (label, new Integer (i)) //add the label to layeredPane i-layer. In this case would be a brief introduction to its use, and demonstrate its practical effect. As shown in the screenshot is the operating results. This example uses the Jfr a me form the fr a mework for placing JDesktopPane object layer, using the fr a mework of another Jfr a me form a special layer, designed to be placed JLayeredPane objects.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
(没有文件,原文件不完全或已损坏或有密码)