How do I remove Button Groups from a gui (gui builder)

View: New views
3 Messages — Rating Filter:   Alert me  

How do I remove Button Groups from a gui (gui builder)

by Samarions :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




When I first started building my gui, I played around a bit and I didn't understand how the Button Group-component worked. This resulted in some trash generated code that I now have in my code.

Now I don't know how to delete these ButtonGroups. I can't make safe delete for some reason, although I'm not using them at all.

I'm also wondering if there's a possibility to give the components in the code better names than jLabel1 etc.. In the generated code you're not able to go into the code blocks and put normal //-comments so I'd like to have something more explaining.

I'm just learning how the gui builder works and I think it's fantastic. It's only these code-issues that I have all the time.

Parent Message unknown Re: How do I remove Button Groups from a gui (gui builder)

by Wade Chandler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Delete them from the UI editor not the code editor. See the navigator window where you can remove them under other components. You can easily change variable names as well. Just right click on a component in either view...UI editor or the Navigator window, or click once on a name in the navigator window and click again but not too fast; double click adds the default event handler.

I suggest generally playing around with the UI editor. It is pretty similar to almost all UI editors. Also, most features one expects in an IDE are available in the editor. The help menu has a few secrets for the text editor and some other features in the keyboard shortcuts file (none for the form editor there however).

Just a heads up, please notice the notes above the forums before posting. This list is not for general support or help topics. Use nbusers for that. This list is for actually changing the user interface of the IDE or base Platform. nbdev is for the actual development of the project, not those built with it, and dev@... is for using the NetBeans rich client platform, and thus is similar to nbusers except for using the RCP versus the other IDE features.

Wade

 ==================
Wade Chandler, CCE
Software Engineer and Developer, Certified Forensic Computer Examiner, NetBeans Dream Team Member, and NetBeans Board Member
http://www.certified-computer-examiner.com
http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
http://www.netbeans.org



----- Original Message ----

> From: Samarions <cl4mwern@...>
> To: nbui@...
> Sent: Wednesday, October 8, 2008 9:07:07 AM
> Subject: [nbui] How do I remove Button Groups from a gui (gui builder)
>
>
>
> :working:
>
> When I first started building my gui, I played around a bit and I didn't
> understand how the Button Group-component worked. This resulted in some
> trash generated code that I now have in my code.
>
> Now I don't know how to delete these ButtonGroups. I can't make safe delete
> for some reason, although I'm not using them at all.
>
> I'm also wondering if there's a possibility to give the components in the
> code better names than jLabel1 etc.. In the generated code you're not able
> to go into the code blocks and put normal //-comments so I'd like to have
> something more explaining.
>
> I'm just learning how the gui builder works and I think it's fantastic. It's
> only these code-issues that I have all the time.
> --
> View this message in context:
> http://www.nabble.com/How-do-I-remove-Button-Groups-from-a-gui-%28gui-builder%29-tp19878277p19878277.html
> Sent from the Netbeans - UI mailing list archive at Nabble.com.


Re: How do I remove Button Groups from a gui (gui builder)

by Samarions :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh, sorry about that, posting in the wrong forum.

Thanks for the answer though. I know what you mean about the navigator window, and I've tried it before but I can't change any components listed there. Or wait, I can rename them, but I can't remove them. It still says that I'm using the button groups though the only time they're mentione in the code is when I set them.



Wade Chandler wrote:
Delete them from the UI editor not the code editor. See the navigator window where you can remove them under other components. You can easily change variable names as well. Just right click on a component in either view...UI editor or the Navigator window, or click once on a name in the navigator window and click again but not too fast; double click adds the default event handler.

I suggest generally playing around with the UI editor. It is pretty similar to almost all UI editors. Also, most features one expects in an IDE are available in the editor. The help menu has a few secrets for the text editor and some other features in the keyboard shortcuts file (none for the form editor there however).

Just a heads up, please notice the notes above the forums before posting. This list is not for general support or help topics. Use nbusers for that. This list is for actually changing the user interface of the IDE or base Platform. nbdev is for the actual development of the project, not those built with it, and dev@openide.netbeans.org is for using the NetBeans rich client platform, and thus is similar to nbusers except for using the RCP versus the other IDE features.

Wade

 ==================
Wade Chandler, CCE
Software Engineer and Developer, Certified Forensic Computer Examiner, NetBeans Dream Team Member, and NetBeans Board Member
http://www.certified-computer-examiner.com
http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
http://www.netbeans.org



----- Original Message ----
> From: Samarions <cl4mwern@cling.gu.se>
> To: nbui@netbeans.org
> Sent: Wednesday, October 8, 2008 9:07:07 AM
> Subject: [nbui] How do I remove Button Groups from a gui (gui builder)
>
>
>
> :working:
>
> When I first started building my gui, I played around a bit and I didn't
> understand how the Button Group-component worked. This resulted in some
> trash generated code that I now have in my code.
>
> Now I don't know how to delete these ButtonGroups. I can't make safe delete
> for some reason, although I'm not using them at all.
>
> I'm also wondering if there's a possibility to give the components in the
> code better names than jLabel1 etc.. In the generated code you're not able
> to go into the code blocks and put normal //-comments so I'd like to have
> something more explaining.
>
> I'm just learning how the gui builder works and I think it's fantastic. It's
> only these code-issues that I have all the time.
> --
> View this message in context:
> http://www.nabble.com/How-do-I-remove-Button-Groups-from-a-gui-%28gui-builder%29-tp19878277p19878277.html
> Sent from the Netbeans - UI mailing list archive at Nabble.com.