I have created 8 tabs in a tabbed panel using Java Swing. The problem is when I enter data in any tab and click the save button. After clicking it leaves the present tab/panel and goes to the first tab.
I have to retain on the same tab after clicking the save b开发者_运维问答utton.
Please help me on this.
I got the answer, just forgot to comment the getFrame().dispose()
method.
Thanks for your concern.
精彩评论