Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
内容を再構築してから現在のパネルと交換する必要があるペインがありますが、それが現在のタブである場合に限ります。
あなたは単にこれを行うことができます:
final int nTabIndex = myTabbedPane.indexOfTabComponent( myPanel ); final boolean bIsVisible = myTabbedPane.isEnabledAt( nTabIndex ); if ( bIsVisible ) { // Do stuff with myPanel myPanel.repaint(); }