Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem when initializing Label text or button text

 
kais kaisb
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm creating an application that generate two random numbers and a random operator (+ - / *) and 4 suggestions. The suggestions are in 4 buttons (3 random numbers and the correct answer)
My problem is :
when the generated number have two characters the label text will be two points as you can see in attached pictures





here is a part of my code i start with create labels


then i set the label text to random numbers and operator



please give me hint im new in Lwuit
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!