_selected = viewTabbedPane.getSelectedIndex();
            public void stateChanged(ChangeEvent e) {                updateData(_selected);                _selected = viewTabbedPane.getSelectedIndex();                if (_selected >= 0) {                    updatePanel(_selected);                }            }