/** * This method is called from within the constructor to initialize the form. WARNING: Do NOT * modify this code. The content of this method is always regenerated by the Form Editor. */ private void initComponents() { TitlePanel = new javax.swing.JPanel(); NameLabel = new javax.swing.JLabel(); DataPanel = new javax.swing.JPanel(); getContentPane() .setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.Y_AXIS)); addWindowListener( new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { closeDialog(evt); } }); TitlePanel.setMaximumSize(new java.awt.Dimension(32767, 36)); NameLabel.setFont(new java.awt.Font("Verdana", Font.BOLD, 18)); NameLabel.setForeground(java.awt.Color.black); NameLabel.setText("Client"); TitlePanel.add(NameLabel); getContentPane().add(TitlePanel); getContentPane().add(DataPanel); // setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); }
/** Creates new form WaitingDialog */ public WaitingDialog( java.awt.Frame parent, boolean modal, String name, boolean drawVerticalLines, boolean itest) { super(parent, modal); this.name = name; this.itest = itest; initComponents(); NameLabel.setText(name); upperMessage = "Connecting"; rand = new Random(); this.drawVerticalLines = drawVerticalLines; initPainter(); this.setResizable(false); this.freezeMessage = false; }