I have a newbie question I hope someone can help me with. I'm writing an application that (among other things) will draw a shape on a JPanel based on a selection from a JComboBox. My code compiles but I get the following error message when I try to run the application. (The application window displays but most of the fields and buttons do not.)
Exception occurred during event dispatching:
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
I'm attaching most of the relevant code (the application is still a work in progress but the code to display some of the various shapes is in place).
Any help is much appreciated!