Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setBackground().. and Cusor()

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok can you change the color of the CROSSHAIR_CUSOR?

and in this code, the setBackground method isnt working...




here is the JFrame()...





thanks,

Justin
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About the background color.
The parent is responsible for repainting the background but as you are overriding paintComponent, the backgound won't be repainted. You've got to call super.paintComponent(g).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic