Skip to content

Commit

Permalink
firs commit
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio authored and antonio committed Dec 15, 2008
0 parents commit 102a700
Show file tree
Hide file tree
Showing 47 changed files with 473 additions and 0 deletions.
Binary file added bin/ContenedorCentro.class
Binary file not shown.
Binary file added bin/ContenedorDerecho.class
Binary file not shown.
Binary file added bin/ContenedorIzquierdo.class
Binary file not shown.
Binary file added bin/ContenedorPrincipal.class
Binary file not shown.
Binary file added bin/Plantilla.class
Binary file not shown.
Binary file added bin/PlantillaDemo.class
Binary file not shown.
Binary file added bin/Plantillas/Plantilla.class
Binary file not shown.
Binary file added bin/Plantillas/Template.class
Binary file not shown.
Binary file added bin/Principal.class
Binary file not shown.
Binary file added bin/Slide.class
Binary file not shown.
Binary file added bin/Ventana.class
Binary file not shown.
Binary file added imagen/abrir.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/adelante.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/atras.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/bullet1.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/bullet2.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/copy.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/copychilds.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/cut.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/delete.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/down.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/edit.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/edit_f2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/image_obj.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/impresora.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/modminus.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/modplus.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/movel.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/mover.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/nuevo.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/pasteafter.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/pasteinto.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/pdf.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/undo.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/up.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imagen/ver.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/ContenedorCentro.java
@@ -0,0 +1,17 @@
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;

import javax.swing.JPanel;


public class ContenedorCentro extends JPanel {
public ContenedorCentro(Dimension dim){
setSize(dim.width-500,dim.height-28);
setLocation(250,0);
//setBackground(Color.RED);
setLayout(null);
setOpaque(true);
setVisible(true);
}
}
63 changes: 63 additions & 0 deletions src/ContenedorDerecho.java
@@ -0,0 +1,63 @@
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.plaf.BorderUIResource;


public class ContenedorDerecho extends JPanel{
private Dimension dim;
private JPanel disenio,template;
public ContenedorDerecho(Dimension dim){
this.dim=dim;
setBounds(dim.width-250,0,250,dim.height-28);
// setMinimumSize(new Dimension(100, dim.height-28));
// setPreferredSize(new Dimension(200, dim.height));
// setBackground(Color.GREEN);
setLayout(null);
crearPanel();
crearSlide();
setOpaque(true);
setVisible(true);
}
public void crearPanel(){
JTabbedPane pa= new JTabbedPane();
pa.setBounds(0,0,250,dim.height-28);
disenio = new JPanel();
template = new JPanel();
//template.setLayout(null);
pa.add("diseño",disenio);
pa.add("template",template);
add(pa);
}
public void crearSlide(){
/* JTextArea edit = new JTextArea(8, 40);
edit.setBounds(0, 0, 100,100);
JScrollPane scroll = new JScrollPane(edit);
template.add(scroll);
*/
JPanel pan=new JPanel();
pan.setBounds(10, 10, 200,100);
pan.setBackground(Color.GREEN);
// pan.setLayout(null);
template.add(pan);
repaint();
}
/* public static void main(String[] args) {
Dimension dim=Toolkit.getDefaultToolkit().getScreenSize();
JFrame frame=new JFrame();
ContenedorDerecho p =new ContenedorDerecho(dim);
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.setSize(dim.width,dim.height);
frame.setLayout(null);
frame.add(p);
frame.setVisible(true);
}*/
}
19 changes: 19 additions & 0 deletions src/ContenedorIzquierdo.java
@@ -0,0 +1,19 @@
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;

import javax.swing.JPanel;


public class ContenedorIzquierdo extends JPanel{
public ContenedorIzquierdo(Dimension dim){
setMinimumSize(new Dimension(100, dim.height));
// setPreferredSize(new Dimension(300, dim.height));
setBounds(0,0,250,dim.height-28);
// setBackground(Color.BLACK);
setLayout(null);
setOpaque(true);
setVisible(true);

}
}
53 changes: 53 additions & 0 deletions src/ContenedorPrincipal.java
@@ -0,0 +1,53 @@
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.border.BevelBorder;
import javax.swing.border.EtchedBorder;
import javax.swing.border.SoftBevelBorder;


public class ContenedorPrincipal extends JPanel{
private ContenedorIzquierdo CIzq;
private ContenedorDerecho CDer;
private ContenedorCentro CCen;
private Dimension d;
public ContenedorPrincipal(Dimension dim){
d=dim;
// setMinimumSize(new Dimension(100, dim.height));
// setPreferredSize(new Dimension(300, dim.height));
// setSize(dim.width,dim.height);
// setLocation(0,0);
// setBackground(Color.MAGENTA);
setLayout(null);
iniciarContenedores();
setOpaque(true);
setVisible(true);

}
public void iniciarContenedores(){
/*
* Creamos los paneles que contendra nuestra ventana principal
*/
CIzq=new ContenedorIzquierdo(d);
CDer=new ContenedorDerecho(d);
CCen=new ContenedorCentro(d);
/*
* Ponemos bordes a nuestros a los paneles
*/
CCen.setBorder(new SoftBevelBorder(BevelBorder.LOWERED));
CDer.setBorder(new EtchedBorder());
CIzq.setBorder(new EtchedBorder());

/*
* insertamos nuestros paneles a la ventana principal
*/

add(CIzq);
add(CCen);
add(CDer);


}
}
11 changes: 11 additions & 0 deletions src/Plantilla.java
@@ -0,0 +1,11 @@
import junit.framework.TestCase;

public class Plantilla extends TestCase {

public void verificarNombre(){
assertEquals("sencillo",PlantillaDemo.getNombre());
}
public void agregartexto(){
assertEquals("texto", PlantillaDemo.getTexto());
}
}
16 changes: 16 additions & 0 deletions src/PlantillaDemo.java
@@ -0,0 +1,16 @@

public class PlantillaDemo {
private static String nombre;
public PlantillaDemo(String nom){
nombre=nom;
}
public static String getNombre() {
// TODO Auto-generated method stub
return nombre;
}
public static String getTexto() {
// TODO Auto-generated method stub
return null;
}

}
37 changes: 37 additions & 0 deletions src/Plantillas/Plantilla.java
@@ -0,0 +1,37 @@
package Plantillas;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class Plantilla extends Template {
public Plantilla(){
super();
}
@Override
public void paintComponent( Graphics g ){
super.paintComponent( g );
g.drawRect( 10, 10, 200, 100 );

}

public static void main(String[] args) {
JFrame frame = new JFrame();
Plantilla p=new Plantilla();
JPanel pan=new JPanel();
pan.setBounds(0, 0, 300,300);
pan.setBackground(Color.GREEN);
pan.setLayout(null);
pan.add(p);
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.setSize(400,350);
frame.setLayout(null);
frame.add(pan);
frame.setVisible(true);
}

}
23 changes: 23 additions & 0 deletions src/Plantillas/Template.java
@@ -0,0 +1,23 @@
package Plantillas;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JPanel;

abstract class Template extends JPanel{
int x,y,alto,ancho;
public Template(){
setBounds(10,10, 220, 120);
setBackground(Color.BLACK);
setVisible(true);
}
public void paintComponent( Graphics g ){
super.paintComponent( g );
g.drawRect( 10, 10, 200, 100 );
};

public void dibujarTexto(int x,int y,int alto,int ancho){};
public void dibujarTitulo(){};
public void insertarImagen(){};
}
16 changes: 16 additions & 0 deletions src/Principal.java
@@ -0,0 +1,16 @@
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Principal {

public static void main(String[] args) {
new Ventana();
}

}
11 changes: 11 additions & 0 deletions src/Slide.java
@@ -0,0 +1,11 @@
import junit.framework.TestCase;


public class Slide extends TestCase {
public Slide(){

}
public void verificarNombre(){

}
}

0 comments on commit 102a700

Please sign in to comment.