PaintComponent(Graphics) method
807569Jul 11 2006 — edited Jul 11 2006Hi,
I use Java and Netbeans 5 in order to develop an application.
So, in a JFrame i create a customed JPanel, in the class of this customed JPanel a have the paintComponent method which is not called automatically! I can't understand the reason!
<code>
public void paintComponent(java.awt.Graphics g){
super.paintComponent(g);
this.g = g; // downcast to Graphics2D
}
</code>
Please help.
Thank you.