1. default field in Dialog coderanch.com |
2. How to get default menu items from JDialog? coderanch.comclass MoveListener extends MouseInputAdapter // because I'm lazy { private Component component; // the component currently being moved private int x; // the X coordinate of the last mouse press private int y; // the Y coordinate of the last mouse press @Override public void mousePressed(MouseEvent e) { component = e.getSource(); x = e.getX(); y = e.getY(); } @Override public void ... |