It is necessary that by clicking on the button in the application window, the second tab opens with certain data.

Considering the following options for implementation:

  1. When you click on the button to create a new tab with the necessary information.
  2. When you click on the button, display the necessary information on the second tab and switch to it in the application.

But how to do this, given the fact that I am writing a program in Netbeans and the interface is made in a graphical editor?

  • And if you prepare a tab in advance, make it not visible, and when you click on a button, make it visible and go to it? Or it is necessary to create it in runtime? - Chubatiy

0