1. Is it possible to have 2 JPanels in a Border layout at the same location? stackoverflow.comI'm writing a game which uses a border layout with a JPanel using BorderLayout.CENTER. What I'd like to be able to do is sometimes hide this panel and replace ... |
2. getting mouse location without a listener stackoverflow.comIn some situations I need to place a JFrame right where the mouse cursor is located. Do I really need a mouse listener to track mouse move events, or I can ... |
3. Find the location/Position of JFrame in the window stackoverflow.comI am trying to find the Starting location/position of the JFrame in order to map the mouse cursor from the JFrame window to desktop. Is there anyway to find the ... |
4. Frame.getLocation() slow to update - need realtime position coderanch.comI have a component that I want to move when someone moves a parent AWT frame. I want the component to seemlessly follow the frame, as if they were one. However, getting the location of the frame is not seemless, it's jerky. Adding a ComponentListener with a componentMoved also has this same jerky I moved, second later, I moved again. I ... |