|
|
@ -115,13 +115,9 @@ public class TitleInsetImagePane extends JPanel implements UIObserver { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void mouseExited(MouseEvent e) { |
|
|
|
public void mouseExited(MouseEvent e) { |
|
|
|
super.mouseExited(e); |
|
|
|
super.mouseExited(e); |
|
|
|
int x = e.getX(); |
|
|
|
imagePreviewOverlayPane.setVisible(false); |
|
|
|
int y = e.getY(); |
|
|
|
imageDeleteButton.setVisible(false); |
|
|
|
if (x <= 0 || getWidth() <= x || y <= 0 || y >= getHeight()) { |
|
|
|
imageDeleteButton.setEnabled(false); |
|
|
|
imagePreviewOverlayPane.setVisible(false); |
|
|
|
|
|
|
|
imageDeleteButton.setVisible(false); |
|
|
|
|
|
|
|
imageDeleteButton.setEnabled(false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|