my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes JTabbedPane Refresh issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTabbedPane Refresh issue" Watch "JTabbedPane Refresh issue" New topic

JTabbedPane Refresh issue

Raks Jain

Joined: Jun 22, 2012
Posts: 1

Hi all.
I am trying to implement JTabbedPane. In the following code I have presented a case very similar to what I want to implement. I have created a tab by adding a JPanel to the JTabbedPane. I have added a JButton and JScrollPane to the JPanel. On click of the JButton I want to add a new JPanel having some JRadioButtons to the JScrollPane. But these are not shown even after refreshing the JScrollPane or main JPanel. Please help. The code is given below:

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
I agree. Here's the link:
subject: JTabbedPane Refresh issue
It's not a secret anymore!