This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Marcus Rag
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic