Exemplo n.º 1
0
 // <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);
   }
 }
Exemplo n.º 2
0
 private Icon getOpenerIcon(Opener o) {
   if (o.getProperties().get("icon") != null) {
     return ControlSupport.getImageIcon(o.getProperties().get("icon") + "");
   }
   return null;
 }