Results 1 to 5 of 5
Thread: add a panel to jdesktoppane
- 08-07-2010, 03:13 PM #1
Member
- Join Date
- Jul 2010
- Posts
- 7
- Rep Power
- 0
-
shaay: You may wish to respond to replies made in your previous thread. This can help motivate folks to help you again.
As to your current problem: what have you tried so far, and what isn't working -- where's the hang up? Also, have you gone through the Swing tutorials on how to use JDesktopPanes and JInternalFrames?
- 08-07-2010, 03:52 PM #3
Member
- Join Date
- Jul 2010
- Posts
- 7
- Rep Power
- 0
srry 4 not replying last post.....
i tried to add one of the panel to the jdesktoppane...when the jradiobutton is selected....
this is the code i tried in jradiobutton action event....
if(jradiobutton1.isSelected){
JPanel jp=new JPanel1()
jp.setVisible(true);
jDesktopPane1.add(jp);
}
-
Please read the tutorial as you need to have a JInternalFrame that holds your JPanel added to the JDesktopPane. The tutorial will show you what you need to know.
How to Use Internal Frames (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
- 08-08-2010, 04:10 PM #5
Member
- Join Date
- Jul 2010
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
JDesktopPane Design
By t500yo in forum AWT / SwingReplies: 5Last Post: 08-03-2010, 03:19 PM -
JDesktoppane?
By skatefreak in forum New To JavaReplies: 2Last Post: 01-31-2009, 05:32 PM -
How to clear JDesktopPane
By hendrix79 in forum New To JavaReplies: 12Last Post: 12-10-2008, 11:25 PM -
JDesktopPane demo
By Java Tip in forum javax.swingReplies: 0Last Post: 06-26-2008, 07:43 PM -
How to add SystemTray to JDesktopPane
By elisabethkron@yahoo.co.uk in forum Advanced JavaReplies: 0Last Post: 04-07-2008, 08:37 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks