// <editor-fold defaultstate="collapsed" desc=" helper methods "> private void loadTabs() { loadOpeners(); removeAll(); if (openers.size() > 0) { for (Opener o : openers) { super.addTab(o.getCaption(), getOpenerIcon(o), new LoadingPanel()); } setSelectedIndex(0); } }
private Icon getOpenerIcon(Opener o) { if (o.getProperties().get("icon") != null) { return ControlSupport.getImageIcon(o.getProperties().get("icon") + ""); } return null; }