/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package eu.ggnet.saft.sample.support;
import javax.swing.JProgressBar;
/**
*
* @author oliver.guenther
*/
public class MainPanel extends javax.swing.JPanel {
/**
* Creates new form MainPanel
*/
public MainPanel() {
initComponents();
}
public JProgressBar getProgressBar() {
return ProgressBar;
}
/**
* 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.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
ProgressBar = new javax.swing.JProgressBar();
setLayout(new java.awt.BorderLayout());
jLabel1.setFont(new java.awt.Font("DejaVu Sans", 0, 48)); // NOI18N
jLabel1.setText("The Main Application");
add(jLabel1, java.awt.BorderLayout.CENTER);
jButton1.setText("Press Me");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
add(jButton1, java.awt.BorderLayout.PAGE_END);
add(ProgressBar, java.awt.BorderLayout.PAGE_START);
}// </editor-fold>//GEN-END:initComponents
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
System.out.println("Press Me pressed");
}//GEN-LAST:event_jButton1ActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JProgressBar ProgressBar;
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
// End of variables declaration//GEN-END:variables
}