« Return to Thread: Closing a form from another one

Re: Closing a form from another one

by Jeffrey H. Coffield :: Rate this Message:

Reply to Author | View in Thread



AlexanderPD wrote:

> thank you for the answer :D
>
>
>
> i don't think i can do that :(
>
> my classes starts with:
>
>
>
> public class a extends javax.swing.JFrame
>
> and
>
> public class b extends javax.swing.JFrame
>
> (netbeans gui builder auto-generate that), so they both extends JFrame :(
>
>
> .
>
>
That doesn't prevent you from adding a new method with a parameter or
adding a method to b that will store a reference to a that can then be
called to set setVisble to false.

There may be a better way to do this, and if someone else has an idea,
I'd also like to know.

Jeff Coffield

Jeff

 « Return to Thread: Closing a form from another one