@@ -0,0 +1,1605 @@
+package test;%0A%0Aimport javax.swing.*; %0Aimport java.awt.*;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0Aimport java.awt.event.KeyEvent;%0A %0Apublic class ErrorWindow extends JPanel implements ActionListener%0A%7B%0A    protected JButton button;%0A    protected static boolean isDone;%0A    protected JLabel label;%0A %0A    public ErrorWindow(String message)%0A    %7B%0A        label = new JLabel(%22Warning! %22 + message);%0A        %0A        button = new JButton(%22Back%22);%0A        button.setMnemonic(KeyEvent.VK_D);%0A        button.addActionListener(this);%0A        %0A        setLayout(new BorderLayout());%0A        add(label, BorderLayout.NORTH);%0A        add(button, BorderLayout.SOUTH);%0A        %0A        isDone = false;%0A    %7D%0A    %0A    public void actionPerformed(ActionEvent e)%0A    %7B%0A        isDone = true;%0A    %7D%0A %0A    public static void createAndShowGUI(String message)%0A    %7B%0A        JFrame frame = new JFrame(%22Cage Panel%22);%0A        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A %0A        ErrorWindow newContentPane = new ErrorWindow(message);%0A        newContentPane.setOpaque(true);%0A        frame.setContentPane(newContentPane);%0A %0A        %0A        frame.setVisible(true);%0A        frame.pack();%0A        frame.setLocationRelativeTo(null); %0A%0A        while (isDone == false)%0A        %7B%0A            try%0A            %7B%0A                Thread.sleep(100);%0A            %7D%0A            catch (InterruptedException e)%0A            %7B%0A                %0A            %7D%0A        %7D%0A        frame.setVisible(false);%0A        frame.dispose();           %0A    %7D%0A %0A    public static void main(String%5B%5D args)%0A    %7B%0A     %0A    %7D%0A%7D%0A

Create ErrorWindow.java