Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Event Handling in java

View previous topic View next topic Go down

GMT + 3 Hours Event Handling in java

Post by Diya Sun May 29, 2011 4:45 pm

plz give me the answers of the following questions

1- in the event handling code you use that event generator and handler both lies in the same class,thats why you are passing the this parameter to the handler class, my question is that if both (generator and handler)lies in different classes than what we will pass as an argument.
2. is there only one public class in each java program????
Diya
Diya
Monstars
Monstars

Taurus Goat
Posts : 364
Join date : 2011-02-08
Age : 33
Notworthy

Character sheet
Experience:
Event Handling in java Left_bar_bleue10/500Event Handling in java Empty_bar_bleue  (10/500)

Back to top Go down

GMT + 3 Hours Re: Event Handling in java

Post by Vuhelper Sun May 29, 2011 4:46 pm

1) We will pass object of the class handling the event.



2) You can have multiple classes in one file , but only one of these can be public.
avatar
Vuhelper
Deep Bench
Deep Bench

Posts : 97
Join date : 2011-05-29

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum