I think it is because JPanel extends JComponent which has useful Swing methods and features.
JFrame extends Frame which doesn't.
Type: Posts; User: Norm
I think it is because JPanel extends JComponent which has useful Swing methods and features.
JFrame extends Frame which doesn't.
You should move this code outside of the paint method so you only have to load the image one time.
URL bg = fdmgcalc.class.getResource("bg.png");
Image bgpic =...