8144488: Compilation fails on Jake for regtest javax/swing/JMenu/8067346/bug8067346.java
Reviewed-by: alexsch, serb
This commit is contained in:
parent
8d70fa8891
commit
ef1f126b92
@ -27,7 +27,6 @@
|
||||
@requires (os.family == "windows")
|
||||
@run main bug8067346
|
||||
*/
|
||||
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
|
||||
import java.awt.Insets;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JMenu;
|
||||
@ -56,9 +55,17 @@ public class bug8067346 {
|
||||
bug8067346 test = new bug8067346();
|
||||
try {
|
||||
// set windows look and feel
|
||||
UIManager.setLookAndFeel(new WindowsLookAndFeel());
|
||||
String lnf =
|
||||
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
|
||||
UIManager.setLookAndFeel(lnf);
|
||||
} catch (UnsupportedLookAndFeelException e) {
|
||||
runTest = false;
|
||||
} catch (ClassNotFoundException e) {
|
||||
runTest = false;
|
||||
} catch (InstantiationException e) {
|
||||
runTest = false;
|
||||
} catch (IllegalAccessException e) {
|
||||
runTest = false;
|
||||
}
|
||||
if(runTest) {
|
||||
test.createUI();
|
||||
|
Loading…
Reference in New Issue
Block a user