/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/* @test
@bug 4199622
@summary RFE: JComboBox shouldn't send ActionEvents for keyboard navigation
@author Vladislav Karnaukhov
@run main bug4199622
*/
super();
try {
} catch (UnsupportedLookAndFeelException e) {
throw new RuntimeException("Test failed", e);
}
for (int i = 0; i < nElems; i++) {
}
cb.addActionListener(this);
pack();
}
throw new RuntimeException("Test failed. actionPerformed generated");
}
}
static void doTest() {
try {
} catch (AWTException e) {
throw new RuntimeException("Can't create robot. Test failed", e);
}
}
throw new RuntimeException("Can't get the toolkit. Test failed");
}
doActualTest();
try {
public void run() {
cb.setEditable(true);
}
});
} catch (InterruptedException e) {
throw new RuntimeException("Test failed", e);
} catch (InvocationTargetException e) {
throw new RuntimeException("Test failed", e);
}
doActualTest();
}
static void doActualTest() {
doTestUpDown();
doTestUpDown();
}
static void doTestHomeEnd() {
try {
public void run() {
}
});
} catch (InterruptedException e) {
throw new RuntimeException("Test failed", e);
} catch (InvocationTargetException e) {
throw new RuntimeException("Test failed", e);
}
}
static void doTestUpDown() {
try {
public void run() {
}
});
} catch (InterruptedException e) {
throw new RuntimeException("Test failed", e);
} catch (InvocationTargetException e) {
throw new RuntimeException("Test failed", e);
}
for (int i = 0; i < nElems; i++) {
}
for (int i = 0; i < nElems; i++) {
}
}
static void doTestPgUpDown() {
try {
public void run() {
}
});
} catch (InterruptedException e) {
throw new RuntimeException("Test failed", e);
} catch (InvocationTargetException e) {
throw new RuntimeException("Test failed", e);
}
}
}
}
try {
public void run() {
test.setVisible(true);
}
});
} catch (InterruptedException e) {
throw new RuntimeException("Test failed", e);
} catch (InvocationTargetException e) {
throw new RuntimeException("Test failed", e);
}
doTest();
try {
public void run() {
test.setVisible(true);
}
});
} catch (InterruptedException e) {
throw new RuntimeException("Test failed", e);
} catch (InvocationTargetException e) {
throw new RuntimeException("Test failed", e);
}
doTest();
}
}
}