ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Algotimos En Java


Enviado por   •  15 de Mayo de 2014  •  459 Palabras (2 Páginas)  •  204 Visitas

Página 1 de 2

formulario # 1

import java.awt.Color;

import java.awt.Container;

import java.awt.event.*;

import static javafx.scene.paint.Color.color;

import javax.swing.*;

public class Grafik1 extends JFrame implements ActionListener{

private JLabel bob,bob1,bob2,bob3,bob4;

private JTextField text1;

private JButton boton1,boton2,boton3,boton4,boton5,boton6,boton7;

private JComboBox combo1;

public Grafik1(){

setLayout(null);

bob=new JLabel("Formulario #1");

bob.setBounds(270,5,100,30);

bob.setFont(new java.awt.Font ("chiller", 0,20));

bob.setForeground(Color.blue);

add(bob);

bob1=new JLabel("Autor Ing Jeyfer");

bob1.setBounds(270,30,200,30);

bob1.setFont(new java.awt.Font ("chiller", 0,20));

bob1.setForeground(Color.blue);

add(bob1);

bob4=new JLabel("Escaja un color de fondo");

bob4.setBounds(500,130,200,30);

bob4.setFont(new java.awt.Font ("chiller", 0,20));

bob4.setForeground(Color.blue);

add(bob4);

bob2=new JLabel("Digite");

bob2.setBounds(30,60,150,30);

bob2.setFont(new java.awt.Font ("magneto", 0,20));

bob2.setForeground(new Color(242,9,196));;

add(bob2);

bob3=new JLabel("guardados");

bob3.setBounds(10,110,150,50);

bob3.setFont(new java.awt.Font ("magneto", 0,20));

bob3.setForeground(new Color(242,9,196));;

add(bob3);

text1=new JTextField();

text1.setBounds(180,65,150,30);

text1.setFont(new java.awt.Font ("magneto", 0,20));

text1.setForeground(Color.red);

add(text1);

boton1=new JButton("Cargar");

boton1.setBounds(350,65,130,30);

boton1.setFont(new java.awt.Font ("magneto", 0,20));

boton1.setForeground(new Color(242,9,196));;

add(boton1);

boton1.addActionListener(this);

combo1 = new JComboBox ();

combo1.setBounds (180,120,250,30);

combo1.setFont(new java.awt.Font ("magneto", 0,20));

add (combo1);

boton2=new JButton("SALIR");

boton2.setBounds(500,390,150,30);

boton2.setFont(new java.awt.Font ("magneto", 0,20));

boton2.setForeground(new Color(242,9,196));;

add(boton2);

boton2.addActionListener(this);

boton3=new JButton("Limpiar");

boton3.setBounds(10,380,150,30);

boton3.setFont(new java.awt.Font ("magneto", 0,20));

boton3.setForeground(new Color(242,9,196));;

add(boton3);

boton3.addActionListener(this);

boton4=new JButton("verde");

...

Descargar como (para miembros actualizados)  txt (4 Kb)  
Leer 1 página más »
Disponible sólo en Clubensayos.com