Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Problem with showStatus()

Chicken Farmer ()
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!
[This message has been edited by jason adam (edited November 06, 2001).]
look! it's a bird! it's a plane! It's .... a teeny tiny ad
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic