Hi friends..
i have a little question, iam trying to develop an simple Swing based application by using Netbeans 6.0.1
i have 2 classes which extended JFrame, and 1 main class..
i have a problem when, first JFrame call another JFrame and then recall back the first JFrame..
in my main class, i just putted :
when MainJFrame calling another JFrame, i was use..
it will force
Java always to instantiate a new class (new objects instantiated)..
so the frmInsert could be instantiated multiple..
how to restrict it?, say that i want to just use setVisible method to handle it..
i want all of my JFrame classes only instantiated once time..
do i have to instantiate all of my JFrame Classes in my Main Class?..
maybe with the code :
is that good understanding?..
so how to call an object in memory (JVM) from MainJFrame (my JFrame active class)?
example i want to call a (object class which referenced by Other1Class) by click a button in MainJFrame..
Thanks in advance..