hello friends,
i've 2 forms 1) Home1 and 2)NewAccountForm
in Home1 when a button clicked i perform
NewAccountForm newAcc= new NewAccountForm ();
newAcc.setVisible(true);
this.setVisible(false);
i.e. make invisible current(Home1) form and visible NewAccountForm , no problem here.
BUT
in NewAccountForm after a button clicked when i try to make invisible current(NewAccountForm)form and visible Home1 form by;
Home1 home1 = new Home1();
home1.setVisible(true);
this.setVisible(false);
error comes is
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not yet implemented
at Home1.<init>(Home1.java:32)
at NewAccountForm.button2ActionPerformed(NewAccountForm.java:419)
at NewAccountForm.access$800(NewAccountForm.java:23)
at NewAccountForm$9.actionPerformed(NewAccountForm.java:156)
at java.awt.Button.processActionEvent(Button.java:392)
at java.awt.Button.processEvent(Button.java:360)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
what is the reason? can anybody explain the reason and give solution?