Event Handling in java
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1 • Share
Event Handling in java
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????
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- Monstars
-
Posts : 364
Join date : 2011-02-08
Age : 33
Character sheet
Experience:
(10/500)
Re: Event Handling in java
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.
2) You can have multiple classes in one file , but only one of these can be public.
Vuhelper- Deep Bench
- Posts : 97
Join date : 2011-05-29
Similar topics
» KeyPress Event Handlers in java
» Register event generator in java
» Java Tutorials For Beginners (From Basic to Advanced Level) Read more: Java Tutorial
» What is difference b/w java Buzzwords and java Keywords?
» what is difference b/w Java and Java Script?
» Register event generator in java
» Java Tutorials For Beginners (From Basic to Advanced Level) Read more: Java Tutorial
» What is difference b/w java Buzzwords and java Keywords?
» what is difference b/w Java and Java Script?
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Today at 2:01 pm by ali001
» Goorevi App
Thu Nov 21, 2024 6:50 pm by ali001
» AMERICA EARNS! - Gift Card App
Mon Nov 18, 2024 11:07 am by ali001
» Kanba - Manage your Tasks
Thu Nov 14, 2024 12:21 pm by ali001
» Hemangiom'App
Tue Nov 05, 2024 11:25 am by ali001
» MindfulMe - Mental Health App
Mon Nov 04, 2024 10:50 am by ali001
» Learn Candlestick Patterns
Tue Oct 15, 2024 5:51 am by ali001
» Woh Pagal Si Episode 52 to 62 - Top Pakistani Drama
Sat Sep 21, 2024 6:26 pm by Mir Emmad Ali Khan Domki
» Nearu - share your socials
Sat Sep 21, 2024 1:12 pm by ali001