public static void main(String[] args) { boolean waitForMain = false; try { if (args.length > 0) { if (args[0].equals("-waitForMain")) { waitForMain = true; } else { System.out.println("Usage ClientApp [-waitForMain]"); System.exit(1); } } ClientApp wsapp = new ClientApp(); // Added the "waitForMain" flag to disable/enable the workaround below if (waitForMain) { // Geronimo client terminates JVM process when Main completes (not sure why) // even though client GUI is still active. For now, force Main to remain alive // until GUI is closed. while (wsapp.isVisible()) Thread.sleep(5000); } } catch (Exception e) { System.err.println("Caught an unexpected exception!"); e.printStackTrace(); } }
/** * This method initializes jPanel * * @return JPanel */ private JPanel getJPanel() { if (jPanel == null) { jPanel = new JPanel(); jPanel.setLayout(null); jPanel.add(getJButton(), getJButton().getName()); jPanel.add(getJTextField(), null); jPanel.add(getJLabel1(), null); jPanel.add(getJLabel2(), null); jPanel.add(getJTextField1(), null); jPanel.setBounds(11, 83, 287, 53); jPanel.setBackground(new java.awt.Color(245, 245, 245)); jPanel.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel; }
jPanel10 = new JPanel(); jPanel10.setLayout(null); jPanel10.add(getJLabel10(), null); jPanel10.add(getJLabel11(), null); jPanel10.add(getJLabel12(), null); jPanel10.add(getJLabel13(), null); jPanel10.add(getJLabel14(), null); jPanel10.add(getJLabel15(), null); jPanel10.add(getJLabel16(), null); jPanel10.add(getJLabel17(), null); jPanel10.add(getJLabel18(), null); jPanel10.add(getJLabel19(), null); jPanel10.add(getJLabel20(), null); jPanel10.add(getJLabel21(), null); jPanel10.add(getJLabel22(), null); jPanel10.add(getJLabel23(), null); jPanel10.add(getJLabel24(), null); jPanel10.add(getJLabel25(), null); jPanel10.add(getJLabel26(), null); jPanel10.add(getJProgressBar(), null); jPanel10.add(getJButton10(), null); jPanel10.setBounds(9, 106, 347, 153); jPanel10.setBackground(new java.awt.Color(245, 245, 245));
/** * This method initializes jPanel4 * * @return JPanel */ private JPanel getJPanel4() { if (jPanel4 == null) { jPanel4 = new JPanel(); jPanel4.setLayout(null); jPanel4.add(getJButton4(), null); jPanel4.add(getJLabel5(), null); jPanel4.add(getJLabel6(), null); jPanel4.add(getJTextField3(), null); jPanel4.add(getJTextField4(), null); jPanel4.setBounds(11, 271, 287, 53); jPanel4.setBackground(new java.awt.Color(245, 245, 245)); jPanel4.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel4; } /**
/** * This method initializes jPanel5 * * @return JPanel */ private JPanel getJPanel5() { if (jPanel5 == null) { jPanel5 = new JPanel(); jPanel5.setLayout(null); jPanel5.add(getJButton5(), null); jPanel5.add(getJLabel7(), null); jPanel5.add(getJTextField5(), null); jPanel5.setBounds(11, 329, 287, 38); jPanel5.setBackground(new java.awt.Color(245, 245, 245)); jPanel5.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel5; } /**
/** * This method initializes jPanel2 * * @return JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { jPanel2 = new JPanel(); jPanel2.setLayout(null); jPanel2.add(getJButton2(), getJButton2().getName()); jPanel2.add(getJLabel4(), null); jPanel2.add(getJTextField2(), null); jPanel2.setBounds(11, 185, 287, 38); jPanel2.setBackground(new java.awt.Color(245, 245, 245)); jPanel2.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel2; } /**
/** * This method initializes jPanel7 * * @return JPanel */ private JPanel getJPanel7() { if (jPanel7 == null) { jPanel7 = new JPanel(); jPanel7.setLayout(null); jPanel7.add(getJButton7(), null); jPanel7.setBounds(11, 417, 287, 38); jPanel7.setBackground(new java.awt.Color(245, 245, 245)); jPanel7.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel7; } /**
/** * This method initializes jPanel1 * * @return JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { jPanel1 = new JPanel(); jPanel1.setLayout(null); jPanel1.add(getJButton1(), getJButton1().getName()); jPanel1.setBounds(11, 142, 287, 38); jPanel1.setBackground(new java.awt.Color(245, 245, 245)); jPanel1.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel1; } /**
/** * This method initializes jPanel6 * * @return JPanel */ private JPanel getJPanel6() { if (jPanel6 == null) { jPanel6 = new JPanel(); jPanel6.setLayout(null); jPanel6.add(getJButton6(), null); jPanel6.setBounds(11, 373, 287, 38); jPanel6.setBackground(new java.awt.Color(245, 245, 245)); jPanel6.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel6; } /**
/** * This method initializes jPanel3 * * @return JPanel */ private JPanel getJPanel3() { if (jPanel3 == null) { jPanel3 = new JPanel(); jPanel3.setLayout(null); jPanel3.add(getJButton3(), null); jPanel3.setBounds(11, 228, 287, 38); jPanel3.setBackground(new java.awt.Color(245, 245, 245)); jPanel3.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel3; } /**
/** * This method initializes jPanel4 * * @return JPanel */ private JPanel getJPanel4() { if (jPanel4 == null) { jPanel4 = new JPanel(); jPanel4.setLayout(null); jPanel4.add(getJButton4(), null); jPanel4.add(getJLabel5(), null); jPanel4.add(getJLabel6(), null); jPanel4.add(getJTextField3(), null); jPanel4.add(getJTextField4(), null); jPanel4.setBounds(11, 271, 287, 53); jPanel4.setBackground(new java.awt.Color(245, 245, 245)); jPanel4.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel4; } /**
/** * This method initializes jPanel5 * * @return JPanel */ private JPanel getJPanel5() { if (jPanel5 == null) { jPanel5 = new JPanel(); jPanel5.setLayout(null); jPanel5.add(getJButton5(), null); jPanel5.add(getJLabel7(), null); jPanel5.add(getJTextField5(), null); jPanel5.setBounds(11, 329, 287, 38); jPanel5.setBackground(new java.awt.Color(245, 245, 245)); jPanel5.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel5; } /**
/** * This method initializes jPanel2 * * @return JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { jPanel2 = new JPanel(); jPanel2.setLayout(null); jPanel2.add(getJButton2(), getJButton2().getName()); jPanel2.add(getJLabel4(), null); jPanel2.add(getJTextField2(), null); jPanel2.setBounds(11, 185, 287, 38); jPanel2.setBackground(new java.awt.Color(245, 245, 245)); jPanel2.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel2; } /**
/** * This method initializes jPanel7 * * @return JPanel */ private JPanel getJPanel7() { if (jPanel7 == null) { jPanel7 = new JPanel(); jPanel7.setLayout(null); jPanel7.add(getJButton7(), null); jPanel7.setBounds(11, 417, 287, 38); jPanel7.setBackground(new java.awt.Color(245, 245, 245)); jPanel7.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel7; } /**
/** * This method initializes jPanel1 * * @return JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { jPanel1 = new JPanel(); jPanel1.setLayout(null); jPanel1.add(getJButton1(), getJButton1().getName()); jPanel1.setBounds(11, 142, 287, 38); jPanel1.setBackground(new java.awt.Color(245, 245, 245)); jPanel1.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel1; } /**
/** * This method initializes jPanel6 * * @return JPanel */ private JPanel getJPanel6() { if (jPanel6 == null) { jPanel6 = new JPanel(); jPanel6.setLayout(null); jPanel6.add(getJButton6(), null); jPanel6.setBounds(11, 373, 287, 38); jPanel6.setBackground(new java.awt.Color(245, 245, 245)); jPanel6.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel6; } /**
/** * This method initializes jPanel3 * * @return JPanel */ private JPanel getJPanel3() { if (jPanel3 == null) { jPanel3 = new JPanel(); jPanel3.setLayout(null); jPanel3.add(getJButton3(), null); jPanel3.setBounds(11, 228, 287, 38); jPanel3.setBackground(new java.awt.Color(245, 245, 245)); jPanel3.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel3; } /**
jPanel10 = new JPanel(); jPanel10.setLayout(null); jPanel10.add(getJLabel10(), null); jPanel10.add(getJLabel11(), null); jPanel10.add(getJLabel12(), null); jPanel10.add(getJLabel13(), null); jPanel10.add(getJLabel14(), null); jPanel10.add(getJLabel15(), null); jPanel10.add(getJLabel16(), null); jPanel10.add(getJLabel17(), null); jPanel10.add(getJLabel18(), null); jPanel10.add(getJLabel19(), null); jPanel10.add(getJLabel20(), null); jPanel10.add(getJLabel21(), null); jPanel10.add(getJLabel22(), null); jPanel10.add(getJLabel23(), null); jPanel10.add(getJLabel24(), null); jPanel10.add(getJLabel25(), null); jPanel10.add(getJLabel26(), null); jPanel10.add(getJProgressBar(), null); jPanel10.add(getJButton10(), null); jPanel10.setBounds(9, 106, 347, 153); jPanel10.setBackground(new java.awt.Color(245, 245, 245));
/** * This method initializes jPanel * * @return JPanel */ private JPanel getJPanel() { if (jPanel == null) { jPanel = new JPanel(); jPanel.setLayout(null); jPanel.add(getJButton(), getJButton().getName()); jPanel.add(getJTextField(), null); jPanel.add(getJLabel1(), null); jPanel.add(getJLabel2(), null); jPanel.add(getJTextField1(), null); jPanel.setBounds(11, 83, 287, 53); jPanel.setBackground(new java.awt.Color(245, 245, 245)); jPanel.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel; }
/** * This method initializes jPanel4 * * @return JPanel */ private JPanel getJPanel4() { if (jPanel4 == null) { jPanel4 = new JPanel(); jPanel4.setLayout(null); jPanel4.add(getJButton4(), null); jPanel4.add(getJLabel5(), null); jPanel4.add(getJLabel6(), null); jPanel4.add(getJTextField3(), null); jPanel4.add(getJTextField4(), null); jPanel4.setBounds(11, 271, 287, 53); jPanel4.setBackground(new java.awt.Color(245, 245, 245)); jPanel4.setBorder( BorderFactory.createEtchedBorder( EtchedBorder.LOWERED)); } return jPanel4; } /**