private JPanel getContentPanel() { JPanel contentPanel1 = new JPanel(); connectorGroup = new ButtonGroup(); welcomeTitle = new JLabel(); jPanel1 = new JPanel(); blankSpace = new JLabel(); progressSent = new JProgressBar(); progressDescription = new JLabel(); anotherBlankSpace = new JLabel(); yetAnotherBlankSpace1 = new JLabel(); jLabel1 = new JLabel(); contentPanel1.setLayout(new java.awt.BorderLayout()); welcomeTitle.setText("Now we will pretend to send this data somewhere for approval..."); contentPanel1.add(welcomeTitle, java.awt.BorderLayout.NORTH); jPanel1.setLayout(new java.awt.GridLayout(0, 1)); jPanel1.add(blankSpace); progressSent.setStringPainted(true); jPanel1.add(progressSent); progressDescription.setFont(new java.awt.Font("MS Sans Serif", 1, 11)); progressDescription.setText("Connecting to Server..."); jPanel1.add(progressDescription); jPanel1.add(anotherBlankSpace); jPanel1.add(yetAnotherBlankSpace1); contentPanel1.add(jPanel1, java.awt.BorderLayout.CENTER); jLabel1.setText( "After the sending is completed, the Back and Finish buttons will enable below."); contentPanel1.add(jLabel1, java.awt.BorderLayout.SOUTH); return contentPanel1; }
public void setProgressValue(int i) { progressSent.setValue(i); }