• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

calling function

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hii..
i want to know how can i call a function of a different class using actionlistener event ....and how can i switch between different functions on the selection of a radiobutton..

plse help..

amrit
 
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

amrit sharma wrote:hii..
i want to know how can i call a function of a different class using actionlistener event ....and how can i switch between different functions on the selection of a radiobutton..

plse help..

amrit



Well, you're not providing enough information here to understand what you really want. Additionally, it seems you're asking two separate questions. It would be best to ask each question in its own Topic.

If the method is static (a class method), you can just prefix the method name with the class name. If the method is an instance method, you need a reference to the object instance. How you get that depends on the details of your application.

Perhaps you could provide some more details and show what you've tried and what result you're getting?

As for the radio button, have a look at the tutorials provided by Sun. Using Google, I just searched for Java Radio Button Tutorial and the very first hit is a tutorial provided by Sun. Give it a try.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic