Explain the below Statement
if(ae.getSource()==b1)
Answers were Sorted based on User's Feedback
Answer / nilam
getSource() method will return the component which is triggered, so basically this statement means if condition will be true if triggered component is b1(button b1).
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nilam
getSource() method will return triggered component, so basically this statement means this condition will be true if triggered component is b1(b1 can be any component like button).
Is This Answer Correct ? | 0 Yes | 0 No |
What are tab pans?
In what context should the value of swing components be updated directly?
What are the benefits if Swing over AWT?
Which types of components are used in designing swing based gui?
What is swing control in java?
I want to change the appearance of Frame in Runtime, what class can be used to do this?
What is an event handler in swing?
What is the function of lightweight components used in swing?
What is swing framework in java?
Is swing an api?
What is the difference between AWT & Swing?
21 Answers BeBo Technologies, Deshaw, TCS,
how to give transparency to JComboBox,JList and JTable