i want to write an application where i'll fill some values in a window and
when i submit these values by clicking a button on this window it should
open second window.I don't want to use
.setVisible(boolean) method and not even a runtime object.

for applet we use applet context.
I think we can do this using URI .i am not sure how to use this
for an application.

Can u help me.