Results 1 to 7 of 7
- 12-11-2011, 01:47 PM #1
Member
- Join Date
- Dec 2011
- Posts
- 16
- Rep Power
- 0
- 12-11-2011, 02:47 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: show content on the same main Frame
Simply add the JComponents (such as JButtons etc.) to the already visible parent JComponent. If all JComponents are added, call revalidate() on the parent JComponent. An alternative would be a CardLayout in the parent JComponent. Selecting that particular menu item would just show another 'card' (with all the additional JButtons etc.) in the parent JComponent.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 12-11-2011, 07:17 PM #3
Member
- Join Date
- Dec 2011
- Posts
- 16
- Rep Power
- 0
Re: show content on the same main Frame
Can you explain because I can't find any understandable information.
If I have window which has in the middle label with some text and I want to change it to lets say frame with 3 texfield and few buttons. How to do this?
- 12-11-2011, 09:40 PM #4
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Re: show content on the same main Frame
- 12-11-2011, 10:05 PM #5
Member
- Join Date
- Dec 2011
- Posts
- 16
- Rep Power
- 0
Re: show content on the same main Frame
By the way, can connect cardLayout Panel with radiobutton which is in another dialog?
- 12-11-2011, 10:39 PM #6
Member
- Join Date
- Dec 2011
- Posts
- 16
- Rep Power
- 0
Re: show content on the same main Frame
but this example is for manual code writing. Is there a way using designer?
- 12-12-2011, 06:03 PM #7
Similar Threads
-
Showing the content of a file and show in a text area
By krishanu in forum New To JavaReplies: 7Last Post: 07-24-2011, 05:53 PM -
Set enable Button (in main panel) from internal frame
By Lisyandi in forum NetBeansReplies: 7Last Post: 04-03-2011, 12:35 PM -
Java slave Frame access to its owner main frame problem
By cagdaseckin in forum New To JavaReplies: 0Last Post: 12-10-2010, 10:40 AM -
[SOLVED] need help..pls.. How to show a new frame?
By ara in forum New To JavaReplies: 4Last Post: 01-31-2009, 05:29 AM -
How can I set the frame's size flexible to show it's title(variable length) in full?
By lmsook10 in forum AWT / SwingReplies: 2Last Post: 08-01-2008, 02:58 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks