• 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

Now Text on canvas is missing

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was having a problem with the Canvas drawing itself on top of a Form leaving the Form also visible. So I clear the screen in the Canvas with

then after that I use drawString to draw text on the Canvas, but since I added the two lines above, the text no longer appears. I tried changing the setColor to another color, just to make sure the text wasn't the same color, and therefore blending in with the backgroup. But that isn't the case.
Why isn't the text showing up. I also have a drawImage and the image is showing.
Know what I am going to post the paint method.

Thanks for the help
Mark
[ January 07, 2004: Message edited by: Mark Spritzler ]
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NEVERMIND. DOH!
look at setColor, and realize that the Text will be in that color.
Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic