This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How should I check this boolean issue  RSS feed

 
Munto Bunes
Greenhorn
Posts: 14
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application a problem comes up with checking a Boolean here is the situation:
-  A class that uses the Boolean that needs to run another piece of code if it comes out true but the class is instantiated once and could possibly need a code rewrite to call easily call methods to that class. If necessary ill take that route
-  Attempted to turn it into some sort of while check/loop until the class finishes all the code necessary. The while loop seems to stop graphics even with graphics repaints/updates in the waiting loop which I assumes fails because the repaints possibly goes into another thread that cannot run with the while loop in the main thread taking up to much.
- My last option is to use a Change Listeners but I'm unsure if it will work with a Boolean.

Could a change listener work with a Boolean, or should I just work on another method? Thanks.
 
Cor Zwart
Greenhorn
Posts: 4
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, maybe you can show some code?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!