u did not mention which object u wanna initialize.
to initiate object u just declare the instance dependin on ur requirement.
and then u can call new to allocate memeory.
//declare at the start of class
then in actionperformed method u can call constuctor to to initialize the object.
e1 = new Employee();
ho p u got it.may be not
Originally posted by Shobana Sukumar:
the problem is i need to call a constructor which has resultset as its argument.in that case i need to call that from the actionperformed method which must also contain a resultset.but the action performed method doestnt have a resultset. so wot do do
Basically I feel passing resultset to a method is not a good design.
You can use a transfer object for solving this.
Please google for Transfer objget to get more idea
[ December 14, 2005: Message edited by: Srinivasa Raghavan ]