netbeans 中JTabbedPanel的使用
http://java.sun.com/developer/onlineTraining/tools/netbeans_part1/#importing
So far, you have created a project and aJFrame
class calledSamplesJFrame
. Next, you'll build on theJFrame
component and add other components.
- Click on Tabbed Pane in the Palette, then click on the blank square in the design form. This creates a
JTabbedPane
. Notice that all the components you've created are listed in the Inspector window.
- Click on Panel in the Palette, then click inside the
JTabbedPane
in the editor (you may need to resize theJTabbedPane
so it is larger. AJPanel
is created. Note that a new tabbed pane has been added toJTabbedPane
.
- Add another
JPanel
to theJTabbedPane
in the Design Editor. Another tab appears. You can add as many tabs as you like, but this tutorial covers only two.
上面的意思就是首先在JFrame中添加一个JTabbedPane
,然后在点击右键,添加Panel即可。而不是继续添加JTabbedPane
。
最后使用"编辑文本"来编辑每个tab中上面显示的名称。
分享到:
相关推荐
NetBeans.NetBeans中添加背景图片附源码。
在Netbeans中使用Struts2.0+Spring2.5+Hibernate框
如何使用NetBeans编译Java程序.
NetBeans+IDE+使用说明和示例教程.pdf
NetBeans6.0中使用WebServices
Netbeans环境下使用GTK+. Netbeans环境下使用GTK+.
51CTO下载-NetBeans+IDE+使用说明和示例教程.docx
NetBeans是新近流行的一款堪与Eclipse媲美的IDE,有Sun的支持。下面是NetBeans使用教程入门篇。
在NetBeans6.0中使用WebService.入门知识。
Apache-NetBeans 21安装包
NetBeans是当前市场上最为流行的、源代码开放且免费的集成开发环境。... 本书内容深入浅出,实例丰富,可帮助读者快速入门,适合希望使用NetBeans进行开发的初、中、高级读者,可作为必备的开发工具书使用。
第五篇给出了如何在NetBeans中进行C/C++程序的开发方法。 NetBeans是当前市场上最为流行的、源代码开放且免费的集成开发环境。NetBeans不仅可以作为Java开发工具,还可以使用它开发标准的Java程序、Web应用程序、...
修改netbeans中自动生成的代码
NetBeans中JSF应用开发
在实际开发中教您NetBeans的使用图解
NetBeans中搭建C开发环境
NULL 博文链接:https://chenjihua.iteye.com/blog/251986
在netbeans中提供struts2的支持
NetBeans中连接MySQL数据库.pdf
NetBeans使用手册.pdf,有兴趣的朋可以参考一下,很有用的。