Exemplo n.º 1
0
 public void updateUI() {
   if (getUI() == null || !(getUI() instanceof WebMenuBarUI)) {
     try {
       setUI((WebMenuBarUI) ReflectUtils.createInstance(WebLookAndFeel.menuBarUI));
     } catch (Throwable e) {
       e.printStackTrace();
       setUI(new WebMenuBarUI());
     }
   } else {
     setUI(getUI());
   }
 }
Exemplo n.º 2
0
 @Override
 public void updateUI() {
   if (getUI() == null || !(getUI() instanceof WebComboBoxUI)) {
     try {
       setUI((WebComboBoxUI) ReflectUtils.createInstance(WebLookAndFeel.comboBoxUI));
     } catch (final Throwable e) {
       Log.error(this, e);
       setUI(new WebComboBoxUI());
     }
   } else {
     setUI(getUI());
   }
 }
Exemplo n.º 3
0
  @Override
  public void updateUI() {
    // Update table header UI
    if (getTableHeader() != null) {
      getTableHeader().updateUI();
    }

    // Update table scroll view and UI
    configureEnclosingScrollPaneUI();

    // Update table UI
    if (getUI() == null || !(getUI() instanceof WebTableUI)) {
      try {
        setUI((WebTableUI) ReflectUtils.createInstance(WebLookAndFeel.tableUI));
      } catch (final Throwable e) {
        Log.error(this, e);
        setUI(new WebTableUI());
      }
    } else {
      setUI(getUI());
    }
  }