Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
antonio
authored and
antonio
committed
Dec 15, 2008
0 parents
commit 102a700
Showing
47 changed files
with
473 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
}*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(){}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import junit.framework.TestCase; | ||
|
||
|
||
public class Slide extends TestCase { | ||
public Slide(){ | ||
|
||
} | ||
public void verificarNombre(){ | ||
|
||
} | ||
} |
Oops, something went wrong.