I am using JTabbedPane with JPanel to display JTable on one tab and text, drop down menu and jbutton on another tab.
The first time it works fine, but if I hide or switch the screen to another application and return to my application, it will display the data correctly, but with a serious problem with changing tabs in JTabbedPane. Now the tabs screen turns blue and does not display data. (I hope that there is data, but they do not repaint or update the full window).
Now with the blue screen, I am doing the same procedure and tab changes in JTabbedPane, it shows the correct data.
I used redrawing, but it doesn't work.
Help needed to properly update a window or tab.
source
share