There is a Frame - the first window

There is a Dialog - the second window

After pressing the Button on the Frame, you need a smooth transition to Dialog.

Implemented it like this:

dialog.show(); this.hide(); 

Attach the Swing documentation in Russian (not just listing all methods or JavaDocs if there is no tutorial) or tell me how best to make the transition from one window to another.

  • one
    What does a smooth transition mean? A dialogue is usually a modal window, that is, as long as it is open, it overlaps other windows. - Mikhail Vaysman
  • @Mikhail Vaysman is there a window guide or guide? - Marat Zimnurov
  • Yes. there is a guide. I recommend using the official guide - Mikhail Vaysman
  • @MikhailVaysman wrote in the answer below what was required. Thanks for the guide, I saw him) - Marat Zimnurov
  • @SeniorPomidor is not in English, the matter is in providing information, for example, in the answer I attached below I gave a link to, so to speak, a tutorial on Swing and a demonstration of its capabilities. The tutorial from Oracle shows only the methods, how they work and do not explain the nuances that need to be explained in Russian. - Marat Zimnurov

1 answer 1

People love minus themes lately, there is no way to say that

 this.hide(); 

outdated and just write:

 dispose(); 

Anyone who will have problems here in this guide, everything is in detail “programmer’s library, Ivan Portyankin, swing-effective user interfaces”

  • minus because you ask questions that are not understandable - Mikhail Vaysman
  • @MikhailVaysman Well, see for yourself, I wrote that if you use this.hide (); changing windows looks very scary, it is not smooth if you use dispose (); window change will be smooth, not square. How to explain it differently? - Marat Zimnurov
  • where did you write it? In the matter of this is not. - Mikhail Vaysman
  • @MikhailVaysman are you serious? - Marat Zimnurov
  • I even specifically asked you a clarifying question. To which you did not respond. - Mikhail Vaysman