Ok , voila :
public class SplashScreen extends JWindow{ private JPanel jPanel = null; private JProgressBar jProgressBar = null; public JLabel Informations = null; public SplashScreen() { super(); initialize(); }
/** * Initialisation de la fenetre * * @return void */ private void initialize() { this.setSize(609, 376); this.setContentPane(getJPanel()); this.setLocationRelativeTo(null); }
/** * This method initializes jPanel * * @return javax.swing.JPanel */ public JPanel getJPanel() { if (jPanel == null) { Informations = new JLabel(); Informations.setText("Informations"); Informations.setBounds(new java.awt.Rectangle(161,179,289,28)); jPanel = new JPanel(); jPanel.setLayout(null); jPanel.add(getJProgressBar(), null); jPanel.add(Informations, null); jPanel.add(Box.createVerticalGlue()); } return jPanel; }
public JProgressBar getJProgressBar() { if (jProgressBar == null) { jProgressBar = new JProgressBar(); jProgressBar.setBounds(new java.awt.Rectangle(146,220,319,25)); } return jProgressBar; } }
C du code crée par eclipse . et dans ma fenetre principale , lor de son initialisation , je veux afficher des msg sur jPanel et faire avancer la bare de progression .
|