Thread
:
how to paint a circle or rectangle in a specify tab of the jtabbedpane ?
View Single Post
#
2
(
permalink
)
11-22-2009, 07:56 AM
camickr
Senior Member
Join Date: Jul 2009
Posts: 292
Rep Power:
1
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.
camickr
View Public Profile
Send a private message to camickr
Find all posts by camickr