Lic.Informatica

Páginas: 11 (2728 palabras) Publicado: 20 de noviembre de 2012
MAIN
package notaderemision;
/**
*
* @author pc 27
*/
public class Main {

/**
* par@am args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
inicio i=new inicio();
i.setVisible(true);
}

}

VENTANA INICIO

package notaderemision;

/**
*
* @author pc 27
*/public class inicio extends javax.swing.JFrame {

/** Creates new form inicio */

public inicio() {
initComponents();

}

/** 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-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
entrar = new javax.swing.JButton();
cancelar = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("NOTAS RAPIDAS");
setAlwaysOnTop(true);
setBackground(new java.awt.Color(130, 130, 150));
setBounds(new java.awt.Rectangle(0, 0, 0, 0));
setIconImages(getIconImages());
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

jLabel1.setBackground(newjava.awt.Color(255, 255, 255));
jLabel1.setFont(new java.awt.Font("Tahoma", 3, 48));
jLabel1.setForeground(new java.awt.Color(255, 0, 51));
jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/notaderemision/BIENVENIDOS.png"))); // NOI18N
getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(29, 11, 339, 286));jLabel2.setFont(new java.awt.Font("Tahoma", 1, 36));
jLabel2.setForeground(new java.awt.Color(255, 255, 255));
jLabel2.setText("Notas de remision");
getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(399, 77, -1, -1));

entrar.setBackground(new java.awt.Color(102, 0, 153));
entrar.setFont(new java.awt.Font("Tahoma", 0, 18));entrar.setForeground(new java.awt.Color(255, 255, 255));
entrar.setText("ENTRAR");
entrar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 153, 0)));
entrar.setBorderPainted(false);
entrar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {entrarActionPerformed(evt);
}
});
getContentPane().add(entrar, new org.netbeans.lib.awtextra.AbsoluteConstraints(495, 139, 138, 33));

cancelar.setText("CANCELAR");
cancelar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {cancelarActionPerformed(evt);
}
});
getContentPane().add(cancelar, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 200, 130, 31));

jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/notaderemision/globulos1-700631.jpg"))); // NOI18N
getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 760, 320));

pack();}// </editor-fold>

private void entrarActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
usuario u=new usuario();
u.setVisible(true);

this.dispose();
//la linea anterior deshabilita el cerrar la aplicacion por completo.
//se sustitulle...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • lic.informatica
  • Lic.Informatica
  • lic.informatica
  • Lic.Informatica
  • lic.informatica
  • Lic.Informatica
  • lic.informatica
  • Lic.Informatica

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS