Say i wanted to draw my own button using java primitives. What's the best method to override. I extended the JButton class and tried bot paint() and paintComponent() but none of them are working. Is there another way of doing this? I just want to draw my button as i like it. Please help. Thanks. Cheers..
posted 10 years ago
Overriding paintComponent should work. It the method being called at all? This section of the Java Tutorial is helpful reading.