package GPClient; import java.awt.*; import javax.swing.*; /** *

Title:

*

Description:

*

Copyright: Copyright (c) 2000

*

Company:

* @author not attributable * @version 1.0 */ public class GameOverDialog extends JDialog { JPanel panel1 = new JPanel(); BorderLayout borderLayout1 = new BorderLayout(); JLabel jLabel1 = new JLabel(); public GameOverDialog(Frame frame, String title, boolean modal, String text) { super(frame, title, modal); try { jLabel1.setText(text); jbInit(); pack(); } catch(Exception ex) { ex.printStackTrace(); } } public GameOverDialog() { this(null, "", false, "Game Over"); } private void jbInit() throws Exception { panel1.setLayout(borderLayout1); getContentPane().add(panel1); panel1.add(jLabel1, BorderLayout.CENTER); } }