1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
public class Menu extends JFrame {
private JPanel contentPane;
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Menu frame = new Menu();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
public Menu() {
setFont(new Font("Calibri", Font.BOLD, 18));
setTitle("G\u00E9n\u00E9rateur de base de donn\u00E9es terminologiques selon TMF");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 952, 549);
Font font = new Font("Courier", Font.BOLD, 20);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
JMenuBar menuBar = new JMenuBar();
menuBar.setToolTipText("Fichier");
menuBar.setBounds(0, 0, 944, 21);
contentPane.add(menuBar);
JMenu mnFichier = new JMenu("Fichier");
menuBar.add(mnFichier);
JMenuItem mntmFicheTerminologique = new JMenuItem("Fiche terminologique");
mntmFicheTerminologique.addActionListener(new ActionListener() {
@SuppressWarnings("deprecation")
public void actionPerformed(ActionEvent arg0) {
Fiche2 fiche = new Fiche2();
fiche.setVisible(true);
Menu.this.setAlwaysOnTop(false);
}
});
mnFichier.add(mntmFicheTerminologique); |
Partager