Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPanel Problem with JInternalFrame ?

 
Jan Michael Soan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone;
I have problem with viewing a JPanel with a JInternalFrame, my intention is to click a menuitem which is named item10, then view a JPanel object which should be displayed in a JInternalFrame but after trying the codes below I recieve a null pointer execption.
x's : I declared : static Login pass;
Problem Codes :
item10.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent h)
{
pass = new Login();
JInternalFrame f1 = new JInternalFrame("Login . . .", true,true,true,true);
f1.add(pass);
x1.add(f1);
}
});
Hope Someone would reply, thanks !
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do not cross post. Continue the conversation here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic