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 Swing / AWT / SWT and the fly likes Multiple jFrame Netbeans App -> calling methods in one jFrame from another 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 » Swing / AWT / SWT
Bookmark "Multiple jFrame Netbeans App -> calling methods in one jFrame from another" Watch "Multiple jFrame Netbeans App -> calling methods in one jFrame from another" New topic
Author

Multiple jFrame Netbeans App -> calling methods in one jFrame from another

Marcus Rag
Greenhorn

Joined: Dec 23, 2009
Posts: 6
Hello,

I have created a netbeans Java application with 2 jFrames (mainScreen, newCallout). In mainScreen, as a subcomponent, I have created another jFrame called searchScreen. The reason I have this as a subcomponent, is because it only allows one instance of searchScreen to run. mainScreen also has a button to open the searchScreen along with the actionPerformed method to open it. That works fine.

My problems is now that I want to access the actionPerformed method in mainScreen to open searchScreen from newCallout. The method is public, but it does not want to find it.

I know I have done this before, but I haven't done any programming in a while...

Thanks in advance
Marcus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple jFrame Netbeans App -> calling methods in one jFrame from another
 
Similar Threads
How to create close buttons
Flow Logic in Swing
Java Tetris
JFrame extending a class
writing ActionEvent to jButton