Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Remember to always leap before you look. But always take the time to smell the tiny ads:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic