14 years, 11 months ago
Highlights
Community contributions featuredThis might help you: public void mouseClicked(MouseEvent e) { PointerInfo a = MouseInfo.getPointerInfo(); Point point = new Point(a.getLocation()); SwingUtilities.convertPointFr…
14 years, 11 months ago
20 years, 1 month ago
All I'm doing is drawing some boxes onto a Canvas that can be dragged with the mouse. Since it flickers when i move them I wanted to use double buffering. Here's part of th…
20 years, 2 months ago
Bit of an odd question, but is there a way to estimate the number of pixels that'll be needed to draw an outline of a circle with a given radius? for a = 1 to 360 step ? x = sin…
20 years, 4 months ago
I'm having some trouble figuring this one out. I'll try to describe the scenerio first. Imagine two laser canons. Canon_A fires a laser in direction 'D' with a velocity of…
20 years, 5 months ago
Latest Activity
See all in DiscussionsThis might help you: public void mouseClicked(MouseEvent e) { PointerInfo a = MouseInfo.getPointerInfo(); Point point = new Point(a.getLocation()); SwingUtilities.convertPointFromScreen(point, e.getCo
14 years, 11 months ago
Not tested, but I think this'll work. It does assume that only 1 sphere(P) is moving and the rest are …
20 years, 1 month ago
Set up port-forwarding on your router. Anything incoming to your IP over the specified port will be forwarded to the …
20 years, 2 months ago