java - awt eventqueue 0 nullpointerexception error -
Well I'm getting error What does confuse me when I have another is to awt eventqueue 0 nullpointerexception error . When I removed the
Jepinl
JPanel , it works perfectly fine But it's not like this one. The first code below shows the
JPanel that it does not remove
JPanel when I click on
JButton .
implement public square buttontime ActionListener does {// timebutton make the action list for implementing a Knbokoboks public void action to click on (ActionEvent clickTime) {value object = New Price (); PriceObject.getPricepanel (); Delete (priceObject.getPricepanel ()); PriceObject.getPricepanel () re-verified () .; Add (timeObject.getTimePanel (), Border Layout. EAST); TimeObject.getTimePanel () re-verified () .; }} // This gives me 0 errors I public class Btnpriks ActionListener implements {// Klikpris a Knbobaks public void Akshnprrfed (Action event to make Akshnlilder to click on Taimbtn) {Price Price object = New Price () ; PriceObject.SelectPrice (); Delete (timeObject.getTimePanel ()); TimeObject.getTimePanel () re-verified () .; Add (priceObject.getPricepanel (), border layout. EAST); PriceObject.getPricepanel () re-verified () .; }}
Remove (priceObject.getPricepanel ());
priceObject.getPricepanel () to
null .
Comments
Post a Comment