Java Code Examples for javax.swing.JComboBox.requestFocus()

The following are Jave code examples for showing how to use requestFocus() of the javax.swing.JComboBox class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: incubator-netbeans   File: TypeChooserPanelImpl.java   Source Code and License Vote up 4 votes
private void managePlatform(final JComboBox platformCombo) {
    NbPlatformCustomizer.showCustomizer();
    platformCombo.setModel(new PlatformComponentFactory.NbPlatformListModel()); // refresh

    platformCombo.requestFocus();
}
 
Example 2
Project: incubator-netbeans   File: BasicInfoVisualPanel.java   Source Code and License Vote up 4 votes
private void managePlatform(final JComboBox platformCombo) {
    NbPlatformCustomizer.showCustomizer();
    platformCombo.setModel(new PlatformComponentFactory.NbPlatformListModel()); // refresh
    platformCombo.requestFocus();
    updateAndCheck();
}