• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with showStatus()

 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • 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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic