This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How should I check this boolean issue  RSS feed

 
Greenhorn
Posts: 16
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.
 
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?
 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!