Beispiel #1
0
    private void addAction(Action act) {

      if (m_appuser.hasPermission((String) act.getValue(AppUserView.ACTION_TASKNAME))) {
        // add the action
        Component c = taskGroup.add(act);
        c.setFocusable(false);
        // c.setRequestFocusEnabled(false);

        taskGroup.setVisible(true);

        if (m_actionfirst == null) {
          m_actionfirst = act;
        }
      }
    }
 @Override
 public Component add(Component comp) {
   comp.setFocusable(false);
   return super.add(comp);
 }