Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CustomItem not working on Nokia XpressMusic smartphone

 
Vinicius Souza
Ranch Hand
Posts: 70
1
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im creating an aplication to Nokia XpressMusic smartphone. Ive created a CustomItem descendant called CommandButtom. Its worked perfectly on the emulator but not in the real thing.
To simplify my application, I created a class called Navigator that store all forms (2 forms now) and have methods like next(), previous() etc and its set automatically the Display to the corresponding Form. I dont know why, but since Im using this Navigator Class, the problem occurs. My CommandButtom is not correctly painted and display only a white rectangle.
Bellow my CommandButtom class to you guys see what Im doing wrong:

Please, I need to know what is wrong.
 
Walter Gabrielsen Iii
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you use the "setClip" method of Graphics class?

Do you first set the color before drawing each shape in the paint methods?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic