• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Problem with showStatus()

 
Chicken Farmer ()
Posts: 1932
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For one of my classes, we had to create a simple multiplication applet (straight out of Deitel & Deitel). For the applet, the status bar is to display a multiplication question, and then the user types in their answer in the field. Personally, I never use showStatus(), and I actually wrote the applet up using a JLabel to write out the question instead, but I figured I should do it both ways just in case teach gets picky.
Anyways, when the applet starts, it quickly flashes the question in the status bar, but then shows "applet started", and you can't see the question. You basically have to keep guessing until you get lucky and get the answer right.
I've tried to call the getQuestion() method (which puts the question in the status bar) in both init() and start(), but the behavior persists in both. How can I show the quetsion after "applet started"? Hints to where to start looking would be preferable to direct code
Here's part of my code that is relevant to the problem:

Thanks in advance!
Jason
[This message has been edited by jason adam (edited November 06, 2001).]
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic