Ok I\'m getting this error awt eventqueue 0 nullpointerexception error. When I try to remove a JPanel.
awt eventqueue 0 nullpointerexception error
JPanel
Whats confusing me is when I remove ano
remove(priceObject.getPricepanel());
If you are getting a NullPointerException only when removing this panel, priceObject.getPricepanel() must be returning null.
NullPointerException
priceObject.getPricepanel()
null