Visual Editor for Window System Layout

Issue 198318 indicates work is being done on a much needed Visual Editor for Window System Layout. The bane of many developers' lives revolves around figuring out how to correctly position & size the windows in their NetBeans Platform application. You need to run the app in development mode, move the windows where you want them, then copy the generated mode files into your module, and register them in your layer.

An early version of the Visual Editor for Window System Layout is already available, though it is not the final version. However, it does the basics of what I'd expect, simply automating the procedure above. Here you see it, constructed by doing a hg clone of NetBeans main, with the two diffs from the issue above integrated: 

The above is available when you click the "Redefine..." button below:

You can then move existing modes around, as well as create new ones, which can then be positioned via drag-and-drop in the window system:

Immediately you're done with the above, you'll see your new modes available in the "Window Position" drop-down and when the wizard completes you'll have newly created modes in your module, registered in your layer:

Again, note that this is an early version and that it will not be supported. I.e., if you put it together and start using it, you're on your own, and you'll not be able to report bugs against it. However, for the desperate, it's something, though, again, not much, since it is not an official solution. If you need something like it, something actually supported, go to the issue above and state your needs.


This is very interesting. Please could let us know when you expect the final version to be released.

Posted by mburu on June 09, 2011 at 02:19 PM PDT #

Great news, looking forward for this feature in 7.1. Manage to get it running from the source and it's quite helpful.

Posted by Sorin S on June 13, 2011 at 03:41 PM PDT #

Ha. It is a bug with these nice feature. When I tried to create upper and buttom editor,after starting application these modes are switched: - upperEditor at position of butttom, and butomEditor is on upper position.
What a shame.
Useless feature with such bugy implementation.

Posted by Ivan Pupkin on April 11, 2012 at 10:18 PM PDT #

So... why don't you rename them..?

Posted by Geertjan on April 12, 2012 at 03:44 PM PDT #

I Searched And Read Searched And Read I Took A Week Off and Came Back I Finally I Understand Modes Sometimes You Need To Rest.. It Will Come To You..
Geertjan I Have A Very Complex Application I Don't Think I Will Finish It For 2 years..
I Started By Making Diagram Linking Everything Getting Down To The Littlest Of Details.
I Ended Up With 72 Modules 41 Of Which Are GUI..
I am trying to Create Perspectives Like In Eclipse and Rapid-i Miner
Product Editor Perspective
When Clicked Will Open 8 Windows In The Work Space.
Product Presentation Perspective
When Clicked Will Close All Window and Open 3 Window In The Work Space.

Question Is How Do I Achieve This??

Posted by guest on April 22, 2012 at 10:33 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« July 2016