Sistemas De Informacion

Páginas: 29 (7094 palabras) Publicado: 27 de junio de 2012
CODIGO JAVA EN NETBEANS 7.0

INICIO
package ventas;

import CLASES.Reproductor;
import CLASES.jpColor;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.io.IOException;
import javax.swing.JOptionPane;
import javax.swing.WindowConstants;
import org.jvnet.substance.SubstanceLookAndFeel;
importorg.jvnet.substance.skin.ChallengerDeepSkin;
public class inicio extends javax.swing.JFrame {
private Timer timer;
int cont;
private String newline;
public final static int THIRTY_SECOND = 30;
/** Creates new form inicio */
public inicio() {
initComponents();
cont =-1;
jpColor jpr = new jpColor();
jpr.setSize(this.getSize());jpr.setr();
jPanel15.add(jpr);
this.setResizable(false);
this.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);
this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
Dimension pantalla, cuadro;
pantalla = Toolkit.getDefaultToolkit().getScreenSize();
cuadro =this.getSize();
this.setLocation(((pantalla.width - cuadro.width)/2),(pantalla.height - cuadro.height)/2);
jProgressBar1.setValue(0);
jProgressBar1.setStringPainted(true);
timer = new Timer(THIRTY_SECOND, new TimerListener());

timer.start();
try {
Reproductor mi_reproductor = new Reproductor();mi_reproductor.AbrirFichero("C:\\Users\\NiCe\\Desktop\\trabajo\\loko\\gestion\\Welcome_to_TextAloud.wav");
mi_reproductor.Play();
} catch (Exception ex) {
System.out.println("Error: " + ex.getMessage());
}
}
class TimerListener implements ActionListener {
public void actionPerformed(ActionEvent evt) {
cont++;// jLabel1.setText("nume es :"+cont);
jProgressBar1.setValue(cont);
if(cont==130)
{
timer.stop();
esconder();

JFrame Menu = new usuario();
Menu.setVisible(true);
Menu.show();

}
}
}

public void esconder()
{this.setVisible(false);
}

public void activar()
{
timer.start();

}
/** This m
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-folddefaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jPanel15 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jProgressBar1 = new javax.swing.JProgressBar();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("PROGRAMA DE VENTAS DE PC Y PERIFERICOS");

jPanel15.setLayout(null);

jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGENE/perifericos.png"))); // NOI18N
jPanel15.add(jLabel1);
jLabel1.setBounds(50, 40, 500, 420);
jPanel15.add(jProgressBar1);
jProgressBar1.setBounds(30, 490, 526,19);

jLabel2.setFont(new java.awt.Font("Comic Sans MS", 1, 11));
jLabel2.setForeground(new java.awt.Color(255, 255, 255));
jLabel2.setText("LOADING .. ");
jPanel15.add(jLabel2);
jLabel2.setBounds(30, 460, 73, 17);

jLabel3.setFont(new java.awt.Font("Perpetua Titling MT", 1, 18));
jLabel3.setForeground(new java.awt.Color(255, 255,...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Sistemas de información y tecnologías de la información
  • ¿Qué es tecnologia de información y sistemas de información?
  • Los sistemas de información y las tecnologías de información
  • Sistema de informacion
  • Sistemas de informacion
  • Sistema de informacion
  • Sistema de informacion
  • Sistemas de informacion

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS