|
|
|
@ -87,14 +87,15 @@ public class ColorPicker extends JDialog implements ActionListener {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void updateLocation() { |
|
|
|
|
mousePos = MouseInfo.getPointerInfo().getLocation(); |
|
|
|
|
updateCoordinate(); |
|
|
|
|
setLocation(setCoordinateX, setCoordinateY); |
|
|
|
|
updateMousePos(); |
|
|
|
|
updateCoordinate(); |
|
|
|
|
colorPickerPanel.setMagnifierLocation(setCoordinateX, |
|
|
|
|
setCoordinateY); |
|
|
|
|
|
|
|
|
|
if (MouseInfo.getPointerInfo() != null) { |
|
|
|
|
mousePos = MouseInfo.getPointerInfo().getLocation(); |
|
|
|
|
updateCoordinate(); |
|
|
|
|
setLocation(setCoordinateX, setCoordinateY); |
|
|
|
|
updateMousePos(); |
|
|
|
|
updateCoordinate(); |
|
|
|
|
colorPickerPanel.setMagnifierLocation(setCoordinateX, |
|
|
|
|
setCoordinateY); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void updateCoordinate() { |
|
|
|
|