java left logo
java middle logo
java right logo
 

Home arrow Other API Tips arrow NetBeans arrow How do I use Matisse/GroupLayout in my window system components
 
 
Main Menu
Home
Java Tutorials
Book Reviews
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Java Network
Java Forums
Java Blog




Most Visited Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews
Top Rated Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews


Statistics
Registered Users: 4093
Java SE Tips: 614
Java ME Tips: 202
Java EE Tips: 183
Other API Tips: 779
Java Applications: 298
Java Libraries: 209
Java Games: 16
Book Reviews:
 
 
 
How do I use Matisse/GroupLayout in my window system components E-mail
User Rating: / 2
PoorBest 

When you create a new window system component (TopComponent) using the template wizard in NB 5.0 or greater, the default layout manager is BorderLayout, not GroupLayout (the new, super-easy-to-design-with layout manager in NB 5.0).

You can use GroupLayout if you want to - just right click the node for your component in the Inspector, and select Free Design from the Layout Manager submenu.

If you do this, your module will need to depend on the module that provides this layout manager. In NB 5.0 it is part of the ide6 cluster, which means it is not a part of the base NB Platform. Since many modules either only have one component in their TopComponents (a tree or a list or something), or embed GUI from some existing application, we didn't want to force every new plugin to have a dependency on the GroupLayout module whether they need it or not.

To add the dependency in NB 5.0 or greater, do not do anything! Just using the layout manager automatically adds the dependency on the library module for you. If you are making a platform application, rather than an IDE plug-in module, you will also need to ensure that at least this module is included in your application from the ide6 cluster. Cluster and module includes can be customized in the Libraries panel of the suite project's properties dialog.

GroupLayout may be moved into the platform module cluster and made the default layout manager in the future.

Source: NetBeans FAQ


 Related Tips

 
< Prev   Next >

Page 1 of 0 ( 0 comments )

You can share your information about this topic using the form below!

Please do not post your questions with this form! Thanks.


Name (required)


E-Mail (required)

Your email will not be displayed on the site - only to our administrator
Homepage(optional)



Comment Enable HTML code : Yes No



 
       
         
     
 
 
 
   
 
 
java bottom left
java bottom middle
java bottom right
RSS 0.91 FeedRSS 1.0 FeedRSS 2.0 FeedATOM FeedOPML Feed

Home - About Us - Privacy Policy
Copyright 2005 - 2008 www.java-tips.org
Java is a trademark of Sun Microsystems, Inc.