Once a JPanel
has been instantiated and added to a visible JFrame
, how do I add a new JComponent
to it and update the display to show said new JComponent
?
Original Question:
How to add
JComponent
toJPanel
afterJPanel
has been added to aJFrame
. I think I may have to extendJPanel
and possibly overridepaintComponent()
.