Skip to content

Commit

Permalink
Cambios en el logo y en el readme
Browse files Browse the repository at this point in the history
  • Loading branch information
2001uri15 committed May 4, 2023
1 parent e8dcde1 commit 15726bc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Vista_Controlador/Pantalla_De_Inicio.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void run() {
*/
public Pantalla_De_Inicio() {

setIconImage(Toolkit.getDefaultToolkit().getImage("/sprites/pokebol.png"));
setIconImage(Toolkit.getDefaultToolkit().getImage(Pantalla_De_Inicio.class.getResource("/sprites/pokebol.png")));
setTitle("Pokemon");
getContentPane().setForeground(new Color(255, 255, 255));
setBounds(100, 100, 800, 330);
Expand Down
21 changes: 21 additions & 0 deletions src/Vista_Controlador/ReadMe.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.JTextPane;

public class ReadMe extends JFrame {

private static final long serialVersionUID = 1L;
private JPanel panel_central;
private JLabel lblNewLabel;

/**
* Launch the application.
Expand All @@ -34,6 +41,20 @@ public ReadMe() {
setBounds(100, 100, 800, 400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setResizable(false);
getContentPane().add(getLblNewLabel(), BorderLayout.NORTH);
getContentPane().add(getPanel_central(), BorderLayout.WEST);

}
private JPanel getPanel_central() {
if (panel_central == null) {
panel_central = new JPanel();
}
return panel_central;
}
private JLabel getLblNewLabel() {
if (lblNewLabel == null) {
lblNewLabel = new JLabel("Instrucciones del Juego:");
}
return lblNewLabel;
}
}
2 changes: 1 addition & 1 deletion src/Vista_Controlador/Vista_Jugador.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void run() {
* Create the frame.
*/
public Vista_Jugador(int nPok, int nJug, boolean turno) {
setIconImage(Toolkit.getDefaultToolkit().getImage("sprites/pokebol.png"));
setIconImage(Toolkit.getDefaultToolkit().getImage(Pantalla_De_Inicio.class.getResource("/sprites/pokebol.png")));
Vista_Pokemon Vista_Pok = new Vista_Pokemon(/*nPok, nJug*/);
idJug = nJug;
setTitle("Pokemon - Jugador "+nJug);
Expand Down

0 comments on commit 15726bc

Please sign in to comment.