This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes JPanel Problem with JInternalFrame ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JPanel Problem with JInternalFrame ?" Watch "JPanel Problem with JInternalFrame ?" New topic

JPanel Problem with JInternalFrame ?

Jan Michael Soan
Ranch Hand

Joined: Feb 08, 2003
Posts: 36
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);
Hope Someone would reply, thanks !
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Please do not cross post. Continue the conversation here.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: JPanel Problem with JInternalFrame ?
Similar Threads
JPanel Problem with JInternaelFrame ?
Creating a login screen
InterActing InternalFrames in SWING - MDI Application
Not able to minimize JInternalFrame