|
|
|
@ -7,6 +7,7 @@ import com.fr.design.gui.ilable.UILabel;
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.utils.ColorUtils; |
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.env.detect.base.DetectorUtil; |
|
|
|
|
import com.fr.env.detect.bean.DetectorResult; |
|
|
|
@ -14,7 +15,6 @@ import com.fr.env.detect.bean.ExceptionSolution;
|
|
|
|
|
import com.fr.env.detect.bean.ExceptionTips; |
|
|
|
|
import com.fr.env.detect.bean.Message; |
|
|
|
|
import com.fr.exit.DesignerExiter; |
|
|
|
|
import com.fr.general.FRFont; |
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.JDialog; |
|
|
|
@ -39,13 +39,17 @@ import java.util.List;
|
|
|
|
|
* created by Harrison on 2022/05/29 |
|
|
|
|
**/ |
|
|
|
|
public class DetectorErrorDialog extends JDialog implements ActionListener { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static final float FONT_BOLD_HEIGHT = 16f; |
|
|
|
|
private UIButton okButton; |
|
|
|
|
private UIButton restartButton; |
|
|
|
|
|
|
|
|
|
public DetectorErrorDialog(Frame parent, List<DetectorResult> results) { |
|
|
|
|
|
|
|
|
|
super(parent, true); |
|
|
|
|
|
|
|
|
|
// 可能是还没初始化 UI 的时候出现的问题,初始化一下 UI
|
|
|
|
|
DesignUtils.initLookAndFeel(); |
|
|
|
|
|
|
|
|
|
JPanel northPane = FRGUIPaneFactory.createBorderLayout_L_Pane(); |
|
|
|
|
JPanel headerPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
@ -57,8 +61,9 @@ public class DetectorErrorDialog extends JDialog implements ActionListener {
|
|
|
|
|
JPanel messagePane = FRGUIPaneFactory.createVerticalFlowLayout_S_Pane(true); |
|
|
|
|
{ |
|
|
|
|
UILabel boldHeader = new UILabel(Toolkit.i18nText("Fine-Design_Error_Start_Apology_Message")); |
|
|
|
|
Font font = FRFont.getInstance(boldHeader.getFont().getFontName(), Font.PLAIN, 16); |
|
|
|
|
boldHeader.setFont(font); |
|
|
|
|
Font font = boldHeader.getFont(); |
|
|
|
|
Font boldFont = font.deriveFont(FONT_BOLD_HEIGHT); |
|
|
|
|
boldHeader.setFont(boldFont); |
|
|
|
|
messagePane.add(boldHeader); |
|
|
|
|
|
|
|
|
|
UILabel description = new UILabel(Toolkit.i18nText("Fine-Design_Send_Report_To_Us")); |
|
|
|
|