if (_selected >= 0) { updatePanel(_selected); }
updatePanel(viewTabbedPane.getSelectedIndex());
    public ContentPanel() {        initComponents();        viewTabbedPane.getModel().addChangeListener(new ChangeListener() {            public void stateChanged(ChangeEvent e) {                updateData(_selected);                if (_selected >= 0) {                    updatePanel(_selected);                }            }        });        for (int i=0; i<_editorClasses.length; i++) {            try {                Object editor = Class.forName(_editorClasses[i]).newInstance();                if (editor instanceof ByteArrayEditor && editor instanceof Component) {                    _editors.add(editor);                } else {                    System.err.println(_editorClasses[i] + " must implement ByteArrayEditor as well as java.awt.Component");                }            } catch (Exception e) {                System.err.println("Error instantiating " + _editorClasses[i] + " : " + e);            }        }    }