Skip to content

Commit 7e5049f

Browse files
committed
Cambios menú
1 parent 3d5f161 commit 7e5049f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/pong/vistas/Menu.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private void estilos() {
4242
setSize(600, 400);
4343
setBackground(Color.BLACK);
4444

45-
jTitulo.setFont(new Font("Vintage", Font.BOLD, 60));
45+
jTitulo.setFont(new Font("Vintage", Font.BOLD, 70));
4646
jJuego.setFont(new Font("Vintage", Font.BOLD, 25));
4747
jSalir.setFont(new Font("Vintage", Font.BOLD, 25));
4848

@@ -55,13 +55,13 @@ private void posicionar() {
5555
setLayout(null);
5656

5757
jTitulo.setSize(200, 100);
58-
jTitulo.setLocation((getWidth() - jTitulo.getWidth()) / 2, 20);
58+
jTitulo.setLocation((getWidth() - jTitulo.getWidth()) / 2, 40);
5959

6060
jJuego.setSize(200, 100);
61-
jJuego.setLocation((getWidth() - jTitulo.getWidth()) / 2, 140);
61+
jJuego.setLocation((getWidth() - jTitulo.getWidth()) / 2, 160);
6262

6363
jSalir.setSize(200, 100);
64-
jSalir.setLocation((getWidth() - jTitulo.getWidth()) / 2, 240);
64+
jSalir.setLocation((getWidth() - jTitulo.getWidth()) / 2, 250);
6565
}
6666

6767
@Override
@@ -85,9 +85,9 @@ public void mouseReleased(MouseEvent e) { }
8585
@Override
8686
public void mouseEntered(MouseEvent e) {
8787
if (e.getSource().equals(jJuego)) {
88-
jJuego.setForeground(new Color(219, 219, 219));
88+
jJuego.setForeground(new Color(150, 150, 150));
8989
} else if (e.getSource().equals(jSalir)) {
90-
jSalir.setForeground(new Color(219, 219, 219));
90+
jSalir.setForeground(new Color(150, 150, 150));
9191
}
9292
}
9393

src/pong/vistas/Opciones.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private void estilo() {
9090
jVelocidad.setFont(new java.awt.Font("Vintage", Font.BOLD, 14));
9191
jVelocidad.setForeground(new java.awt.Color(255, 255, 255));
9292

93-
jIniciar.setFont(new Font("Vintage", Font.BOLD, 20));
93+
jIniciar.setFont(new Font("Vintage", Font.BOLD, 25));
9494
jIniciar.setForeground(new java.awt.Color(255, 255, 255));
9595
}
9696

@@ -103,8 +103,8 @@ private void posicionar() {
103103
jRadioRapida.setBounds(357, 218, 90, 19);
104104
jRadioPeque.setBounds(151, 135, 90, 19);
105105
jRadioNormal.setBounds(254, 135, 90, 19);
106-
jIniciar.setBounds((getWidth() - 100) / 2, 250,
107-
100, 100);
106+
jIniciar.setSize(100, 100);
107+
jIniciar.setLocation((getWidth() - jIniciar.getWidth()) / 2, 250);
108108
jIniciar.addMouseListener(this);
109109
}
110110

0 commit comments

Comments
 (0)