내 질문은 : JComboBox에서 "경계선"을 선택할 때 JTabbedPane 내에서 유지되는 탭이 앞에 오도록 만드는 방법은 무엇입니까? 지역 또는 기타 탭과 마찬가지로JTabbedPane 내에서 Tab 키를 앞으로 가져 오겠습니까?
private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {
String selectedItem = jComboBox1.getSelectedItem().toString();
if(selectedItem != null)
{
//if perimeter option selected, show the tab for it
if(selectedItem.equals("Perimeter"))
{
//bring the permeter tab to the front, all contained within a tabbedPane
}
if(selectedItem.equals("Area"))
{
//bring the area tab to the front, all contained within a tabbedPane
}
}
}