I'm looking for the event that loads when i start up my application.
in a java applet it was init(), but what is it in a java swing application?|||java swing having jtimer class
you can use it.|||You may already know that "public static void main()" is the method which launches a java application. If you really need something to be loaded, you can include that in a
static
{
}
block of your swing application code, so that it will be called at the class loading time. Hope this helps.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment