I\'ve a class which extends JPanel. I overwrote protected void paintComponent(Graphics g).
JPanel
protected void paintComponent(Graphics g)
There is a variable which has to be recalculate
It resizes automatically if it's
If it doesn't work, you probably have forgotten one of these two.