• Post Reply Bookmark Topic Watch Topic
  • New Topic

paint specific component

 
Anh Nguyen
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Say that I have 3 diff. JPanels . I want to draw in 1 Panel only (that mean the paint won't touch other 2 ) . How can I do that .
I tried paintComponent(Graphics g) but nothing happen . But when I tried paint(Graphics g) then the whole program is messing up .
I have also read the tutorial at sun about how to use paintComponent but it's not really helpful .
Please help . Ex code include is good

------------------
... No one can escape .......
Heavenly Evil Knight
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!