Advertising
- Miscellany
- Friday, May 11th, 2012 at 2:29:25pm MDT
- import javax.swing.JFrame;
- import javax.swing.JButton;
- import javax.swing.JPanel;
- import javax.swing.JLabel;
- import java.awt.* ;
- import java.awt.event.* ;
- private JButton quitter;
- private JButton gestionJournaliere;
- private JButton gestionDUnJournal;
- private JPanel pan;
- public ProgrammeGestionJournal()
- {
- //cration du boutton "quitter"
- quitter.addActionListener(this);
- //cration du boutton "gestion Journalire"
- gestionJournaliere.addActionListener(this);
- //cration du boutton "Gestion d'un journal"
- gestionDUnJournal.addActionListener(this);
- pan.add(quitter);
- pan.add(gestionJournaliere);
- pan.add(gestionDUnJournal);
- Fenetre.setVisible(true);
- Fenetre.setTitle("Gestion d'un journal");
- Fenetre.setSize(500, 500);
- Fenetre.setContentPane(pan);
- }
- /**
- * @param args
- */
- {
- ProgrammeGestionJournal pgj = new ProgrammeGestionJournal();
- }
- {
- if( qui == quitter )
- {
- //traitement bouton quitter
- }
- if(qui == gestionJournaliere)
- {
- pan.add(nouveau);
- pan.add(supprimer);
- pan.add(liste);
- pan.add(modifier);
- }
- if(qui == gestionDUnJournal)
- {
- }
- }
- }
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.