@@ -0,0 +1,752 @@
+package org.hanuna.gitalk.swing_ui;%0A%0Aimport org.jetbrains.annotations.NotNull;%0A%0Aimport javax.swing.*;%0Aimport java.awt.*;%0A%0A/**%0A * @author erokhins%0A */%0Apublic class ErrorFrame extends JFrame %7B%0A%0A    public ErrorFrame(@NotNull String message) throws HeadlessException %7B%0A        super(%22fatal error%22);%0A        prepare(message);%0A        setVisible(true);%0A    %7D%0A%0A    private void prepare(@NotNull String message) %7B%0A        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);%0A        JLabel label = new JLabel(message);%0A        setContentPane(label);%0A        pack();%0A        setModalExclusionType(Dialog.ModalExclusionType.NO_EXCLUDE);%0A        setMinimumSize(new Dimension(200, 50));%0A        pack();%0A%0A        UI_Utilities.setCenterLocation(this);%0A    %7D%0A%0A%7D%0A

add ErrorFrame