new Point(1, 1), "invisible");
protected static class Java2Surface extends AWTSurface {
-
+
public Java2Surface(Box root, boolean framed) { super(root, framed); }
protected void _setMinimized(boolean b) {
}
}
- protected static class Java14Surface extends Java2Surface implements WindowStateListener {
+ protected static class Java14Surface extends Java2Surface implements WindowStateListener, MouseWheelListener {
public Java14Surface(Box root, boolean framed) {
super(root, true);
// JDK1.4 doesn't like java.lang.Window's...
if (!framed) ((Frame)window).setUndecorated(true);
window.addWindowStateListener(this);
+ window.addMouseWheelListener(this);
window.setVisible(true);
}
Maximized(false);
}
}
+
+ public void mouseWheelMoved(MouseWheelEvent m) {
+ // TODO: Uncomment this once Scroll is implemented in the core
+ //if(m.getScrollType() == MouseWheelEvent.WHEEL_UNIT_SCROLL) { Scroll(m.getUnitsToScroll()); }
+ }
}
protected static class Java2PixelBuffer extends AWTPixelBuffer {