• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

container not appearing

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've written applets before, but Bill Clinton was President, and I seem to have forgotten a lot. The applet below needs to pop up a window and ask the user to fill in a JTextArea field. The problem is that the container never appears. Help! The method textbox gets called from Javascript; my thinking was that the container should appear with a prompt, let the user fill in multiple lines of text, then return when the user hits OK or Cancel.

 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That seems like a weird way to do things to me. You're expecting the applet to resize itself, apparently, when you add those components. Maybe it can't do that.

Why don't you just do things the normal way and prepare the GUI in the init() method?
 
Clayton Cramer
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to specify a prompt and some dimensions. I don't think I can do that with init, can I?
 
Clayton Cramer
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:That seems like a weird way to do things to me. You're expecting the applet to resize itself, apparently, when you add those components. Maybe it can't do that.

Why don't you just do things the normal way and prepare the GUI in the init() method?


Now I see what is happening--I didn't have the size of the applet specified in the HTML.
 
They worship nothing. They say it's because nothing is worth fighting for. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic