• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CustomItem not working on Nokia XpressMusic smartphone

 
Ranch Hand
Posts: 86
1
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Everybody! Do the Funky Monkey! Like this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic