Exemple de Boîte de Dialogue Non Modale.

Author:


{filelink=848}


import java.awt.Dialog;
import java.awt.FlowLayout;

import javax.swing.JDialog;
import javax.swing.JFrame;

public class DialogNonModale {
  public static void main(String[] args) {
    final JFrame parent = new JFrame("Frame Frincipal");
    parent.setLayout(new FlowLayout());
    parent.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    parent.setBounds(100, 100, 300, 200);
    parent.setVisible(true);
    JDialog dialog1 = new JDialog(parent, "Exemple.com - Boîte de dialogue non Modale");
    dialog1.setBounds(200, 200, 300, 200);
    dialog1.setVisible(true);
  }
}

Leave a Reply

Your email address will not be published. Required fields are marked *