public void actionPerformed(ActionEvent evt) { Object obj = evt.getSource(); if (obj instanceof JMenuItem) { // put the focus on the noneditable combo. combo1.requestFocus(); } }
private void updateEnabledItems() { if (myRbExisting.isSelected()) { myExistingListsCombo.setEnabled(true); UIUtil.setEnabled(myNewListPanel, false, true); myExistingListsCombo.requestFocus(); } else { myExistingListsCombo.setEnabled(false); UIUtil.setEnabled(myNewListPanel, true, true); myNewListPanel.requestFocus(); } if (myProject != null) { myNewListPanel.nameChangedImpl(myProject, null); } }
public void activate() { sel.requestFocus(); }
public void requestFocus() { myThreadsCombo.requestFocus(); }