aspose file tools*
The moose likes Beginning Java and the fly likes how to call a public method from another form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to call a public method from another form" Watch "how to call a public method from another form" New topic
Author

how to call a public method from another form

D. Formenton
Ranch Hand

Joined: Mar 20, 2008
Posts: 47
Dear Sir,

I have a main form "MainMenu" form and another modal form "People" (started from MainMenu).

The question is:

It is possible (and how!) to call a public method of MainMenu from People form?

thank you

Domenico
Reinaldo de Carvalho
Greenhorn

Joined: Dec 06, 2008
Posts: 11
yes. when you to create the second form, pass to it the "MainMenu" and keep this reference.


Reinaldo de Carvalho
Bahia - Brazil
D. Formenton
Ranch Hand

Joined: Mar 20, 2008
Posts: 47
thank you and good new year!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to call a public method from another form
 
Similar Threads
Event Manager Compile Problem
My desgn model and Form concerns - Help please
where and who should create site-global stuff like navigatonal menu?
Calling methods 'up the chain'
Calling method from another class