Hi all. If I want to create my own component (MyButton for example), I have to extend JButton class. I want to create round button for example. Which method I must override in class JButton: paint(Graphics g) or paintComponent(Graphics g)? Thanks in advance.
SCJP 1.4 <br />SCBCD 1.3<br />SCWCD 1.4
posted 12 years ago
overide the methd: paintComponent(Graphics g) and set the border to null setBorder(null)