Skip to content

Commit

Permalink
Actualizacion POO
Browse files Browse the repository at this point in the history
  • Loading branch information
JDanielRC committed Nov 28, 2018
1 parent cad3bdd commit 3886254
Show file tree
Hide file tree
Showing 929 changed files with 76,538 additions and 0 deletions.
Empty file added .metadata/.lock
Empty file.
9,080 changes: 9,080 additions & 0 deletions .metadata/.log

Large diffs are not rendered by default.

Binary file added .metadata/.mylyn/.taskListIndex/segments_1
Binary file not shown.
Empty file.
Binary file added .metadata/.mylyn/.tasks.xml.zip
Binary file not shown.
Binary file added .metadata/.mylyn/repositories.xml.zip
Binary file not shown.
Binary file added .metadata/.mylyn/tasks.xml.zip
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

public class Main {

public static void main(String[] args) {
Torres torre = new Torres();
int n = 3;
torre.torreHanoi(n, 'A', 'C', 'B');
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.LayoutManager;

import javax.swing.*;

public class Breakout extends JFrame{

private JButton play, buttons, scores, exit;
private JPanel botones;



public Breakout() {


super("Breakout");
setSize(700, 600);
setLocation(400, 200);

Game game = new Game();

play = new JButton("Jugar");
buttons = new JButton("Botones");
scores = new JButton("Puntuaciones altas");
exit = new JButton("Salir");
botones = new JPanel();
botones.setLayout(new GridLayout(5, 1));
botones.add(play);
botones.add(buttons);
botones.add(scores);
botones.add(exit);
setLayout(new BorderLayout());
JLabel background = new JLabel(new ImageIcon("fondo.png"));
add(background);
background.setLayout(new FlowLayout());
background.add(botones);




setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
setVisible(true);
setResizable(false);

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

import java.awt.*;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class Calculadora extends JFrame implements ActionListener{

private JButton nueve, ocho, siete, seis, cinco, cuatro, tres, dos, uno, cero, sumar, multiplicar, igual, dividir, restar;
private JPanel panelNumeros;
private JTextField output;

panelNumeros = new JPanel();
panelNumeros.setLayout(3, 3);
panelNumeros.add();


@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub

}

}
Loading

0 comments on commit 3886254

Please sign in to comment.