Click here to Skip to main content
15,920,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

Please can anyone tell me what is the event that i must use in java to put code when the form opens.Like in visual studio where we have the form load event.

Thanks in advance.
Posted

1 solution

You could always try to use the <a href="http://download.oracle.com/javase/1.4.2/docs/api/java/awt/event/WindowListener.html">addWindowListener</a>, that is assuming that you are using Swing's JFrame implementation.

If not then you might need to explain what framework you are using to setup your GUI.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900