 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Anton Guest
|
Posted: Tue Mar 29, 2005 12:17 am Post subject: Create an MDI as an applet |
|
|
Hi.
I need to create a simple applet to manage diferents contents, so I want
to do as an applet. I have read something and the way is using
JDesktopPane, etc.. but once I have created my applet using the Jbuilder
wizard I CANt FIND this components (JDesktopPane, JInternalFrame), etc..
Any help will be welcome.
Thanks
|
|
| Back to top |
|
 |
Paul Nichols (TeamB) Guest
|
Posted: Thu Mar 31, 2005 2:25 pm Post subject: Re: Create an MDI as an applet |
|
|
"Anton" <trumaxformax1 (AT) yahoo (DOT) es> wrote
| Quote: | Hi.
I need to create a simple applet to manage diferents contents, so I want
to do as an applet. I have read something and the way is using
JDesktopPane, etc.. but once I have created my applet using the Jbuilder
wizard I CANt FIND this components (JDesktopPane, JInternalFrame), etc..
Any help will be welcome.
Thanks
|
There is no visible Bean for JDesktopPane. However, here is a trick.
Create a JFrame as usual. Drop a Panel on the JFrame (setting null of course
to drop the Panel on the Frame). Then, change the Type in your code from
jPanel1 (or whatever it is called) from JPanel jPanel1 to JDesktopPane
jPanel1. Make it say BorderLayout.CENTER for alignment (especially if you
using a JMenuBar and StatusBar).
Now you will have a JDesktopPane instead of a JPanel, and you can use this
and view this from the Designer.
|
|
| Back to top |
|
 |
Anton Guest
|
Posted: Sat Apr 02, 2005 12:36 pm Post subject: Re: Create an MDI as an applet |
|
|
Paul Nichols (TeamB) escribió:
| Quote: | "Anton" <trumaxformax1 (AT) yahoo (DOT) es> wrote in message
news:42489ebd (AT) newsgroups (DOT) borland.com...
Hi.
I need to create a simple applet to manage diferents contents, so I want
to do as an applet. I have read something and the way is using
JDesktopPane, etc.. but once I have created my applet using the Jbuilder
wizard I CANt FIND this components (JDesktopPane, JInternalFrame), etc..
Any help will be welcome.
Thanks
There is no visible Bean for JDesktopPane. However, here is a trick.
Create a JFrame as usual. Drop a Panel on the JFrame (setting null of course
to drop the Panel on the Frame). Then, change the Type in your code from
jPanel1 (or whatever it is called) from JPanel jPanel1 to JDesktopPane
jPanel1. Make it say BorderLayout.CENTER for alignment (especially if you
using a JMenuBar and StatusBar).
Now you will have a JDesktopPane instead of a JPanel, and you can use this
and view this from the Designer.
Great |
Thanks a lot.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|