• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can we change the display size of an applet in a browser?  RSS feed

 
Guru Gulab Khatri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello every one,
I have created an applet which is reading the contents from a file.
The contents are modified every minute and the applet shows the modified contents every time it is modified. But if the contents are going more than the size of the applet then the applet is not able to show it in the browser as the applets size is not increased even if i use the applets resize() method.
I want to know if there is any way in which i can do the dynamic updates and the applet also resizes according the content size to show the full contents.
Thanks in advance.
 
Timo Hahn
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
two suggestions:
1. you don't have to resize you appelt window, you can use a scrollpane. So you get a scrollbar when the data won't fit the windwo size.
2. if you have to resize the applet window check out "Tip 80: Resize applets within browser frames" on JavaWorld
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!