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) { super(frame, title, modal); try { jbInit(); pack(); } catch(Exception ex) { ex.printStackTrace(); } } public GameOverDialog() { this(null, "", false); } private void jbInit() throws Exception { panel1.setLayout(borderLayout1); jLabel1.setText("You Win"); getContentPane().add(panel1); panel1.add(jLabel1, BorderLayout.CENTER); } }