|
|
|
@ -13,6 +13,7 @@ import javax.swing.BorderFactory;
|
|
|
|
|
import javax.swing.ImageIcon; |
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.JPopupMenu; |
|
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
|
import java.awt.AWTException; |
|
|
|
|
import java.awt.AlphaComposite; |
|
|
|
@ -75,7 +76,7 @@ public abstract class AbstractGuideScene extends JPanel implements GuideScene {
|
|
|
|
|
if (component instanceof JComponent) { |
|
|
|
|
JComponent jComponent = (JComponent) component; |
|
|
|
|
image = ScreenImage.createImage(jComponent); |
|
|
|
|
highlightList.add(getTargetComponentWithImage(image, rectangle, true)); |
|
|
|
|
highlightList.add(getTargetComponentWithImage(image, rectangle, !(component.getParent() instanceof JPopupMenu))); |
|
|
|
|
} else if (component instanceof Window) { |
|
|
|
|
image = ScreenImage.createImage(component); |
|
|
|
|
highlightList.add(getTargetComponentWithImage(image, rectangle, false)); |
|
|
|
|