diff --git a/.idea/mezontleTeam.iml b/.idea/mezontleTeam.iml index b9f5507..8d579e1 100644 --- a/.idea/mezontleTeam.iml +++ b/.idea/mezontleTeam.iml @@ -10,7 +10,7 @@ - + diff --git a/Main.java b/Main.java index b5bf9c6..c1220d3 100644 --- a/Main.java +++ b/Main.java @@ -1,4 +1,5 @@ import javax.swing.*; +import java.awt.*; public class Main { public static void main(String[] args) { @@ -6,6 +7,11 @@ public class Main { JFrame frame = new JFrame("Login"); frame.setContentPane(new ventana1().panel); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize(); + int height = pantalla.height; + int width = pantalla.width; + frame.setSize(width/2, height/2); + frame.setLocationRelativeTo(null); frame.pack(); frame.setVisible(true); }); diff --git a/out/production/mezontleTeam/.idea/mezontleTeam.iml b/out/production/mezontleTeam/.idea/mezontleTeam.iml index b9f5507..8d579e1 100644 --- a/out/production/mezontleTeam/.idea/mezontleTeam.iml +++ b/out/production/mezontleTeam/.idea/mezontleTeam.iml @@ -10,7 +10,7 @@ - + diff --git a/out/production/mezontleTeam/.idea/modules.xml b/out/production/mezontleTeam/.idea/modules.xml index 89fcb21..19d570b 100644 --- a/out/production/mezontleTeam/.idea/modules.xml +++ b/out/production/mezontleTeam/.idea/modules.xml @@ -2,7 +2,6 @@ - diff --git a/out/production/mezontleTeam/Main.class b/out/production/mezontleTeam/Main.class index 1bc14d2..5fa310e 100644 Binary files a/out/production/mezontleTeam/Main.class and b/out/production/mezontleTeam/Main.class differ diff --git a/out/production/mezontleTeam/registerV.class b/out/production/mezontleTeam/registerV.class index 38b43f7..077d4e1 100644 Binary files a/out/production/mezontleTeam/registerV.class and b/out/production/mezontleTeam/registerV.class differ diff --git a/out/production/mezontleTeam/ventana1$1.class b/out/production/mezontleTeam/ventana1$1.class index f9ba452..9871314 100644 Binary files a/out/production/mezontleTeam/ventana1$1.class and b/out/production/mezontleTeam/ventana1$1.class differ diff --git a/out/production/mezontleTeam/ventana1$2.class b/out/production/mezontleTeam/ventana1$2.class index f273178..8d88370 100644 Binary files a/out/production/mezontleTeam/ventana1$2.class and b/out/production/mezontleTeam/ventana1$2.class differ diff --git a/out/production/mezontleTeam/ventana1.class b/out/production/mezontleTeam/ventana1.class index d4d5065..9cbf33f 100644 Binary files a/out/production/mezontleTeam/ventana1.class and b/out/production/mezontleTeam/ventana1.class differ diff --git a/registerV.form b/registerV.form index f306805..81d4178 100644 --- a/registerV.form +++ b/registerV.form @@ -1,16 +1,18 @@
- + - + + + - + @@ -18,7 +20,7 @@ - + @@ -26,7 +28,7 @@ - + @@ -34,7 +36,7 @@ - + @@ -42,7 +44,7 @@ - + @@ -50,7 +52,7 @@ - + @@ -58,12 +60,32 @@ - + + + + + + + + + + + + + + + + + + + + + diff --git a/ventana1.form b/ventana1.form index 9535b3c..9de00dc 100644 --- a/ventana1.form +++ b/ventana1.form @@ -6,6 +6,8 @@ + + @@ -27,7 +29,7 @@ - + @@ -36,6 +38,8 @@ + + @@ -57,7 +61,7 @@ - + @@ -65,7 +69,8 @@ - + + @@ -90,7 +95,8 @@ - + + @@ -106,6 +112,8 @@ + + diff --git a/ventana1.java b/ventana1.java index 036c491..7a0c52a 100644 --- a/ventana1.java +++ b/ventana1.java @@ -1,9 +1,10 @@ import javax.swing.*; +import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class ventana1 { - JPanel panel,panel2; + JPanel panel; private JTextField usuariol; private JButton iniciarBoton; private JButton registerBoton; @@ -54,6 +55,11 @@ public class ventana1 { JFrame registerFrame = new JFrame("Registro de Usuario"); registerFrame.setContentPane(new registerV().getPanel()); registerFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); + Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize(); + int height = pantalla.height; + int width = pantalla.width; + frame.setSize(width/2, height/2); + frame.setLocationRelativeTo(null); registerFrame.pack(); registerFrame.setVisible(true); } diff --git a/ventana2.form b/ventana2.form index 73601a9..dba8edc 100644 --- a/ventana2.form +++ b/ventana2.form @@ -1,6 +1,6 @@
- + @@ -8,7 +8,7 @@ - + @@ -35,6 +35,7 @@ + diff --git a/ventana2.java b/ventana2.java index c9cb1f5..53aeb4c 100644 --- a/ventana2.java +++ b/ventana2.java @@ -12,4 +12,8 @@ public class ventana2 { private JButton button5; private JButton button6; private JScrollBar scrollBar1; + + public ventana2 (){ + + } }