View Single Post
  #2 (permalink)  
Old 11-22-2009, 07:56 AM
camickr camickr is online now
Senior Member
 
Join Date: Jul 2009
Posts: 292
Rep Power: 1
camickr is on a distinguished road
Default
First of all custom painting is done by extending a JPanel (or JComponent), not a JTextPane.

If you want different color circles, then you need to pass in the Color as a parameter when you create the custom JPanel.
Reply With Quote