|
|
@ -3,7 +3,6 @@ package com.fr.design.mainframe.alphafine.question; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.alphafine.AlphaFineHelper; |
|
|
|
import com.fr.design.mainframe.alphafine.AlphaFineHelper; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
import java.awt.event.MouseAdapter; |
|
|
@ -11,7 +10,6 @@ import java.awt.event.MouseEvent; |
|
|
|
import java.awt.event.MouseMotionAdapter; |
|
|
|
import java.awt.event.MouseMotionAdapter; |
|
|
|
import java.awt.event.WindowAdapter; |
|
|
|
import java.awt.event.WindowAdapter; |
|
|
|
import java.awt.event.WindowEvent; |
|
|
|
import java.awt.event.WindowEvent; |
|
|
|
import java.awt.event.WindowFocusListener; |
|
|
|
|
|
|
|
import javax.swing.JWindow; |
|
|
|
import javax.swing.JWindow; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -53,41 +51,11 @@ public class QuestionWindow extends JWindow { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void windowActivated(WindowEvent e) { |
|
|
|
public void windowActivated(WindowEvent e) { |
|
|
|
QuestionWindow.getInstance().setVisible(true); |
|
|
|
QuestionWindow.getInstance().setVisible(true); |
|
|
|
FineLoggerFactory.getLogger().error("=====> active"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void windowDeactivated(WindowEvent e) { |
|
|
|
public void windowDeactivated(WindowEvent e) { |
|
|
|
QuestionWindow.getInstance().setVisible(false); |
|
|
|
QuestionWindow.getInstance().setVisible(false); |
|
|
|
FineLoggerFactory.getLogger().error("=====> Deactivate"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void windowOpened(WindowEvent e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error("=====> open"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void windowGainedFocus(WindowEvent e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error("===== get focus"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void windowStateChanged(WindowEvent e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error("new: {}", e.getNewState()); |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error("old: {}", e.getOldState()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DesignerContext.getDesignerFrame().addWindowFocusListener(new WindowFocusListener() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void windowGainedFocus(WindowEvent e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error("get focus"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void windowLostFocus(WindowEvent e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error("lost focus"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
questionPane.setToolTipText(Toolkit.i18nText("Fine-Design_Report_AlphaFine_Learn_More_About")); |
|
|
|
questionPane.setToolTipText(Toolkit.i18nText("Fine-Design_Report_AlphaFine_Learn_More_About")); |
|
|
|