Search in sources :

Example 1 with AppletSecurity

use of sun.applet.AppletSecurity in project jdk8u_jdk by JetBrains.

the class TableTest method main.

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");
    }
}
Also used : AppletSecurity(sun.applet.AppletSecurity) TableCellEditor(javax.swing.table.TableCellEditor)

Aggregations

TableCellEditor (javax.swing.table.TableCellEditor)1 AppletSecurity (sun.applet.AppletSecurity)1