netbeans platform TopComponent 重新组合显示
netbeans 平台 窗口 重新组合
在netbeans的自己的netbeans平台应用程序的基础上【文件-新建项目-netbeans模块-netbeans平台应用程序】
参见:http://platform.netbeans.org/tutorials/nbm-10-top-apis.html
Part 3: Window System API,(主要是后面几分钟)
(即:http://bcove.me/vwnu6r0a)
简单步骤:【比较简略-也希望对大家有帮助】
1.右键-新建-窗口-【选择任一个窗口类型】(为了显示效果,肯定要多创建几个窗口。)
2.运行程序。
3.拖拽窗口,让窗口显示你要的效果。
4.关闭程序。
5.进入IDE(netbeans工具),选择【窗口-文件】的方式查看主项目(非模块),展开【build-testuserdir-config-Windows2Local-Modes】,看到文件夹anonymousMode_1(包含文件*TopComponent.wstcref)和文件anonymousMode_1.wsmode。
6.复制【文件夹anonymousMode_1(包含文件*TopComponent.wstcref)和文件anonymousMode_1.wsmode】到【重要文件-XML层-此层-Windows2-Modes】,结果为【重要文件-XML层-此层-Windows2-Modes-文件夹anonymousMode_1】和【重要文件-XML层-此层-Windows2-Modes-anonymousMode_1.wsmode】。
7.修改【文件夹anonymousMode_1和anonymousMode_1.wsmode】的名字,修改layer.xml中anonymousMode_1的名字。(最好改成一样的。如:改为banner)。
8.删除调layer.xml中原来的*.TopComponent相关的信息(类似<folder name="editor">
<file name="ViewCTopComponent.wstcref" url="ViewCTopComponentWstcref.xml"/>
</folder>)。
9.打开改名后的anonymousMode_1.wsmode(重要文件-XML层-此层-Windows2-Modes-banner.wsmode)。
10.修改【<kind type="editor" />】为【<kind type="view" />】,和(【<empty-behavior permanent="false"/>】为【<empty-behavior permanent="true"/>】--此项貌似可以不用修改,但是原来的*.wsmode文件是true)。
引用
Cobble.Ge 合肥 公司 20120522
分享到:
相关推荐
The Definitive Guide to NetBeans Platform 7
The Definitive Guide to NetBeans Platform 源代码
NetBeans Platform for Beginners是2014年8月底才出版的书籍,与最新版的netbeans 8同步,目前还没有中文版及全书的电子版,只能找到样章。样章中,手把手地详解如何使用netbeans来开发应用及module,涉及到的概念...
《Rich Client Programming: Plugging into the NetBeans Platform》电子书
介绍Netbeans富客户端开发的一本书,纯英文的,非常好,很难找到
最近学习netbeans,得到些资料,与大家共享。
NetBeans.Platform.6.9.Developers.Guide
NetBeans开发权威指南 NetBeans Platform Developer's Guide
最近研究netbeans开发,得到些资料,与大家共享下。
NetBeans Platform 6.9 Developers Guide,java富客户端权威指南代码。。。配套的案例,有助于理解。。。。。。
netbeans platform开发方面最新的一本不错的书。 感谢他们: Lead Editor: Jim Freeman Technical Reviewers: Jaroslav Tulach, Geertjan Wielenga Editorial Board: Clay Andres, Steve Anglin, Mark Beckner, Ewan...
The Definitive Guide to NetBeans Platform 7 源代码
The Definitive Guide to NetBeans™ Platform is a thorough and definitive introduction to the NetBeans Platform, covering all its major APIs in detail, with relevant code examples used throughout....
NetBeans Selection Management Tutorial I—Using a TopComponent's Lookup
■CHAPTER 16 From Eclipse RCP to the NetBeans Platform . . . . . . . . . . . . . . . . . . 279 ■CHAPTER 17 Tips and Tricks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
NetBeans官方网站最新Java开发权威指南书籍。All of this is free for you!
netbeans富客户端编程,swing、netbeans平台开发必备。。另附案例相关代码下载https://download.csdn.net/download/kagurawill/12452854
Programm Converts DataBase on MySQL Server to XML format. Platform NetBeans.