@Override
protected void openInput(DeviceManager devMan) {
AccessController.doPrivileged(new PrivilegedAction<Void>() {
public Void run() {
SwingPcTextScreen systemScreen = getTextScreenManager().getSystemScreen();
final JComponent screen = systemScreen.getScreenComponent();
initializeKeyboard(systemScreen.getKeyboardDevice());
addPointerDevice(systemScreen.getPointerDevice());
frame = new JFrame("Console");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.addWindowListener(new WindowAdapter() {
public void windowClosed(WindowEvent e) {
closeAll();