web viewtablas. programación orientada a objetos (p.o.o.) ejercicio: seleccionar java...

Post on 06-Feb-2018

227 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

TABLAS

PROGRAMACIÓN ORIENTADA A OBJETOS(P.O.O.)

Ejercicio:

1. Seleccionar Java Application

2. Nombre proyecto: Botones, clase principal

3. Seleccionar jFrame

4. Nombre jFrame: Boton

5. Inserción de controles: Swing Controls

6. Edición de texto de Label, Text Field, Button y Table

7. Cambiar nombre de las variables:

Text Field: txtcodigoButton: btnagregarCombo Box: sexoTable: tabladedatos

8. Creación del objeto DefaultTableModel, importación de la misma y creación de columnas de la tabla.

Configuración de Botones

1. Código del botón arreglar, creamos un arreglo

2. Código del botón nuevo

3. Código del botón eliminar

4. Código del botón eliminar todo

5. Código del botón salir

6. Código clase principal: Botones.java

top related