Beispiel #1
0
  public TestPanel3() {

    super();

    contentPanel = getContentPanel();
    ImageIcon icon = getImageIcon();

    titlePanel = new javax.swing.JPanel();
    textLabel = new javax.swing.JLabel();
    iconLabel = new javax.swing.JLabel();
    separator = new javax.swing.JSeparator();

    setLayout(new java.awt.BorderLayout());

    titlePanel.setLayout(new java.awt.BorderLayout());
    titlePanel.setBackground(Color.gray);

    textLabel.setBackground(Color.gray);
    textLabel.setFont(new Font("MS Sans Serif", Font.BOLD, 14));
    textLabel.setText("Pretending To Connect To Server");
    textLabel.setBorder(new EmptyBorder(new Insets(10, 10, 10, 10)));
    textLabel.setOpaque(true);

    iconLabel.setBackground(Color.gray);
    if (icon != null) iconLabel.setIcon(icon);

    titlePanel.add(textLabel, BorderLayout.CENTER);
    titlePanel.add(iconLabel, BorderLayout.EAST);
    titlePanel.add(separator, BorderLayout.SOUTH);

    add(titlePanel, BorderLayout.NORTH);
    JPanel secondaryPanel = new JPanel();
    secondaryPanel.add(contentPanel, BorderLayout.NORTH);
    add(secondaryPanel, BorderLayout.WEST);
  }
Beispiel #2
0
  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;
  }
Beispiel #3
0
 public void setProgressText(String s) {
   progressDescription.setText(s);
 }