import jexer.event.TMouseEvent;
import jexer.event.TResizeEvent;
import jexer.session.SessionInfo;
-import jexer.session.AWTSessionInfo;
+import jexer.session.SwingSessionInfo;
import static jexer.TCommand.*;
import static jexer.TKeypress.*;
/**
- * This class reads keystrokes and mouse events from an AWT Frame.
+ * This class reads keystrokes and mouse events from an Swing JFrame.
*/
-public final class AWTTerminal implements ComponentListener, KeyListener,
+public final class SwingTerminal implements ComponentListener, KeyListener,
MouseListener, MouseMotionListener,
MouseWheelListener, WindowListener {
/**
* The backend Screen.
*/
- private AWTScreen screen;
+ private SwingScreen screen;
/**
* The session information.
*/
- private AWTSessionInfo sessionInfo;
+ private SwingSessionInfo sessionInfo;
/**
* Getter for sessionInfo.
*
* @param listener the object this backend needs to wake up when new
* input comes in
- * @param screen the top-level AWT frame
+ * @param screen the top-level Swing frame
*/
- public AWTTerminal(final Object listener, final AWTScreen screen) {
+ public SwingTerminal(final Object listener, final SwingScreen screen) {
this.listener = listener;
this.screen = screen;
mouse1 = false;
}
/**
- * Pass AWT keystrokes into the event queue.
+ * Pass Swing keystrokes into the event queue.
*
* @param key keystroke received
*/
}
/**
- * Pass AWT keystrokes into the event queue.
+ * Pass Swing keystrokes into the event queue.
*
* @param key keystroke received
*/
}
/**
- * Pass AWT keystrokes into the event queue.
+ * Pass Swing keystrokes into the event queue.
*
* @param key keystroke received
*/
shift = key.isShiftDown();
/*
- System.err.printf("AWT Key: %s\n", key);
+ System.err.printf("Swing Key: %s\n", key);
System.err.printf(" isKey: %s\n", isKey);
System.err.printf(" alt: %s\n", alt);
System.err.printf(" ctrl: %s\n", ctrl);