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 is an event and what are the models available for event handling?
What is the difference between AWT & Swing?
21 Answers BeBo Technologies, Deshaw, TCS,
what do u mean by GUI framework
What are swing components in java?
What is the difference between swing and applet?
What are swings?
can we create a object in static block class A { static { A a=new A(); } }
What is pane in swing?
Why does JComponent have add() and remove() methods but Component does not?
What is the base class for all swing components?
What is swing control in java?
What is actionlistener in java swing?