Bookmark Topic Watch Topic
  • New Topic

errors with one panel to another panel

 
Bhanuteja Shrida Yenduri
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All,

I have the problem with swithching from one application to another.There are two applications like X and Y. When I first select X , it works fine without any errors.When I switch from X to Y , it was giving the error as Null pointer Exception.it won't get the screen.Both X and Y Bussiness code was written in the same java file.But the controller and view are different.and also the Java file was mentioned as Singleton. How to change this object.



FmDialog.getInstance(context).show(); //actual code.

for this only one screen is working fine. When I switch it i'll gives the nullpointer exception.can't able to get the data.

additional code.

FmDialog fmdlg=FmDialog.getInstance();
JPanel mainPanel = new JPanel();
fmdlg.createMainPanel(mainPanel);

another exception with this additional code as "java.lang.IllegalArgumentException: wrong parent for CardLayout"


Anybody could you help me regarding this.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closed duplicate.
 
    Bookmark Topic Watch Topic
  • New Topic