File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes jApplet Problem!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jApplet Problem!!! " Watch "jApplet Problem!!! " New topic

jApplet Problem!!!

sam patel
Ranch Hand

Joined: Jun 13, 2002
Posts: 103
I created JApplet with CardLayout....
I have about 7 Panels...
In Panel#1 i am using 6 of the panels...
and then in Panel#2 I am creating something else...
My Problem is the width and height of the applet is 325, 200...
I need to keep this size because my panel1 is just a login screen...
When i display the Panel#2 i want to change the size of the applet to 825,588...
But it displays the Panel#2 in 325,200..
How can i make the size of the Panel#2 to 825,588...
Any help will be greatly appreciated...
Thanks in advance.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

My suggestion is this:
instead of using a JPanel in the applet for the Login, use a JDialog. This keeps it off of your JAppet container.
The problem with what you are trying to do is the size of the Applet is specified in the HTML. I don't think this can be changed via the Applet.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: jApplet Problem!!!