private MessageDialog()
    {
        super();
        
        setModal(true);
        
        JPanel contentPane = new JPanel();
        setContentPane(contentPane);
        
        BoxLayout boxLayout = new BoxLayout(contentPane, BoxLayout.Y_AXIS);
        
        contentPane.setLayout(boxLayout);
        
        contentPane.setBorder(DefaultUIProvider.getDefaultEmptyEtchedEmptyBorder());

        messageLabel = new JLabel("");
        messageLabel.setBorder(DefaultUIProvider.getDefaultEmptyBorder());
        messageLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT);
        contentPane.add(messageLabel);
        
        contentPane.add(Box.createVerticalStrut(30));
        
        JButton okButton = new JButton("Ага");
        okButton.setAlignmentX(JButton.CENTER_ALIGNMENT);
        okButton.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                MessageDialog.this.dispose();
            }
        });
        contentPane.add(okButton);
    }