< prev index next >

test/jdk/javax/swing/UIDefaults/6795356/TableTest.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 22,49 **** */ /* * @test * @bug 6795356 ! * @summary Checks that SwingLazyValue class correclty works * @author Alexander Potochkin - * @modules java.desktop/sun.applet * @run main/othervm TableTest */ - import sun.applet.AppletSecurity; - import javax.swing.*; import javax.swing.table.TableCellEditor; import java.awt.*; public class TableTest { public static void main(String[] args) throws Exception { KeyboardFocusManager.getCurrentKeyboardFocusManager(); ! System.setSecurityManager(new AppletSecurity()); JTable table = new JTable(); TableCellEditor de = table.getDefaultEditor(Double.class); if (de == null) { throw new RuntimeException("Table default editor is null"); --- 22,46 ---- */ /* * @test * @bug 6795356 ! * @summary Checks that SwingLazyValue class correctly works * @author Alexander Potochkin * @run main/othervm TableTest */ import javax.swing.*; import javax.swing.table.TableCellEditor; import java.awt.*; public class TableTest { public static void main(String[] args) throws Exception { KeyboardFocusManager.getCurrentKeyboardFocusManager(); ! System.setSecurityManager(new SecurityManager()); JTable table = new JTable(); TableCellEditor de = table.getDefaultEditor(Double.class); if (de == null) { throw new RuntimeException("Table default editor is null");
< prev index next >