2024-03-03 22:08:11 +00:00
|
|
|
import javax.swing.*;
|
2024-03-11 05:31:33 +00:00
|
|
|
import java.awt.*;
|
2024-03-03 22:08:11 +00:00
|
|
|
|
|
|
|
public class Main {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
SwingUtilities.invokeLater(() -> {
|
|
|
|
JFrame frame = new JFrame("Login");
|
|
|
|
frame.setContentPane(new ventana1().panel);
|
|
|
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
2024-03-11 05:31:33 +00:00
|
|
|
Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize();
|
|
|
|
int height = pantalla.height;
|
|
|
|
int width = pantalla.width;
|
|
|
|
frame.setSize(width/2, height/2);
|
|
|
|
frame.setLocationRelativeTo(null);
|
2024-03-03 22:08:11 +00:00
|
|
|
frame.pack();
|
|
|
|
frame.setVisible(true);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|