Re: help editing the Netbeans generated code: jPanel.add();

Wade Chandler <[email protected]> Wed, 23 Jul 2008 23:57:58 -0700 (PDT)
Newsgroups gmane.comp.java.netbeans.user-interface
Message-ID <[email protected]>


palmisano wrote:
> 
> Okay, next question about changing Netbeans Generated code... I want to
> change the parameter in bold.  How do I do that?  Is is a property or
> custom code...??
> 
> connectWestPanelLayout.setVerticalGroup(
>            
> connectWestPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
>             .addGroup(connectWestPanelLayout.createSequentialGroup()
>                 .addContainerGap()
>                 .addComponent(connectionPanel,
> javax.swing.GroupLayout.PREFERRED_SIZE,
> javax.swing.GroupLayout.DEFAULT_SIZE,
> javax.swing.GroupLayout.PREFERRED_SIZE)
>                 .addContainerGap(184, Short.MAX_VALUE))
> 

Note the comment above this forum in nabble about what it is this forum is
for. It isn't to support the NB UI editor. It is for a discussion of
usability issues with the NetBeans users interface itself. nbusers is the
one you want.

It certainly isn't a property. The layout isn't treated like other
JavaBeans, and besides setVerticalGroup none of the method calls are
properties. I don't think you can customize this code either, but I'll check
it when I have some more time. I think the only way to address it is to get
it right in the UI editor. If you can't, and you don't think the UI editor
can do what you need to do, and you feel you must, or you were wanting to
use MigLayout then you may have to do it by hand and not use the form/UI
editor at all. However, I haven't met a UI which I couldn't create in the UI
editor using combinations of the provided layouts and possibly a little
custom code.

-- 
View this message in context: http://www.nabble.com/help-editing-the-Netbeans-generated-code%3A--jPanel.add%28%29--tp18614838p18626351.html
Sent from the Netbeans - UI mailing list archive at Nabble.com.