post your comment   print   send to a friend
Rate:  50% | Views: 648
Question categories:  Java

My Applet computes its own window size. Can I resize it in the browser?

No, you cannot resize an applet's "view window" within an HTML page.

However, a simple computation can be written in JavaScript. If you have a complex computation, then it is in a separate class from your applet sub-class.

You can write a faceless applet (1x1 pixels) that uses the complex class to calculate the rectangle, and then use JavaScript to draw the pa/frame which loads the UI applet. Then, you can pass the computed data via a shared static data class used by both applets.

Customer Feedback
Rate:  50% | Views: 648 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Business Web Hosting | Email Hosting    Back to serch results
Browse the Base
Knowledge Base
Web Design
  Do It Yourself
    Java
Messages
 

Blogging at Aplus.Net

Don't forget to check out our blog ! Keep up to date at Aplus.Net.

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. How do I access Servlets or CGI programs from Java?
 
2. How do I communicate between my applets in the same browser?
 
3. How do I force the browser to reload my Java classes without exiting Navigator?
 
4. Why does my java console show an applet is pruned?
 
5. Why do I get a JavaScript error using a String returned from a Java applet to index an array?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest