Advertisement
teresaagp

Untitled

Sep 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1.   package mipaquete;
  2.   import javax.swing.*;
  3.   public class Ventana {
  4.     public static void main(String[] args) {
  5.      JFrame ventana = new JFrame("");
  6.      ventana.setAlwaysOnTop(true);
  7.      ventana.setSize(300,300);
  8.      ventana.setVisible(true);
  9.      JDialog dialogo_Modal = new JDialog(ventana, "Dialogo Modal", true);
  10.      dialogo_Modal.setSize(300,300);
  11.      dialogo_Modal.setLocationRelativeTo(null);
  12.      dialogo_Modal.setVisible(true);
  13.    }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement