This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jApplet Problem!!! " Watch "jApplet Problem!!! " New topic
Author

jApplet Problem!!!

sam patel
Ranch Hand

Joined: Jun 13, 2002
Posts: 103
Hi,
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: 15299
    
    6

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: jApplet Problem!!!
 
Similar Threads
How to add a Panel to my applet?
Does FlowLayout honor the preferred size of a JPanel?
setSize() for Panel has no effect
Problem laying out panels in an Applet
Need to dynamically add checkBoxes in a GUI