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 |
Why swings are used in java?
I want to change the appearance of Frame in Runtime, what class can be used to do this?
how to give transparency for JComboBox,JListBox and JTable
Name the borders provided by Swing?
what are the steps required in creating an empty table drop?
what is difference between checked and unchecked exception plz explain examples ?
Hello Everyone.. I m trying to develop a java swing application where i can display a doc file Jeditorpane or Jtextpane.
What is the what is the difference between invokeandwait() and invokelater()? ?
What are swing components in java?
What are the advantages of java swing over angular?
How to create image slideshow in java swing?
Which method is used for setting security in applets?