[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
Adding and Removing Components to/from a jPanel  XML
Forum Index » Java Programming
Author Message
dw.calvert

Newbie

Joined: 07/22/2010 02:58:39
Messages: 1
Offline

Hello,

I am searching for a way to have a jButton create a remove and create some jComboBoxes, jLabels, and jButtons. I don't know how I could do this. I have some screenshots from NetBeans IDE to help illustrate my problem.

I want the Add Shift button in here...


To do this...


And obviously I would like the remove buttons to remove a shift when clicked.

Well, thanks for any help. I think this is pretty advanced if it's possible. I'm pretty sure I could manage doing this a slightly different way, but it would not look as pretty and I would have to limit the amount of shifts possible. I would otherwise approach this by doing this:


It just isn't as professional. I would do it by just making the components visible and not visible with the button clicks. And changing the attributes of the components is easy. But I would also be limited to however many shifts I placed originally on the jPanel.

Duncan Calvert
dw.calvert@gmail.com

Please, if it's not too much trouble, give me an e-mail when you respond.
 
Forum Index » Java Programming
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2011 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle