Sei sulla pagina 1di 3

D:\Codigo Fuente\Java\Por revisar\Dialogo de edicin de enunciados\DialogoEdicionEnunciado.

java

/*
* DialogoEdicionEnunciado.java
*
* Created on 23 de octubre de 2000, 07:48 PM
*/

/**
*
* @author PIII-550
* @version
*/
public class DialogoEdicionEnunciado extends java.awt.Dialog {
/** Creates new form DialogoEdicionEnunciado */
public DialogoEdicionEnunciado(java.awt.Frame parent,boolean modal) {
super (parent, modal);
initComponents ();
pack ();
}
/** This method is called from within the init() method to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the FormEditor.
*/
private void initComponents () {//GEN-BEGIN:initComponents
PanelEntradas = new javax.swing.JPanel ();
TextoCampo = new javax.swing.JTextField ();
NaturalezaLista = new java.awt.Choice ();
NaturalezaLista.add("(O) Opinin Primaria");
NaturalezaLista.add("(A) Aclaracin");
NaturalezaLista.add("(F) Opinin a Favor");
NaturalezaLista.add("(C) Opinin en Contra");
NaturalezaLista.add("(D) Desactivado");
PanelBotones = new javax.swing.JPanel ();
Aceptar = new java.awt.Button ();
Cancelar = new java.awt.Button ();
jPanel1 = new javax.swing.JPanel ();
TextoEtiqueta = new javax.swing.JLabel ();
NaturalezaEtiqueta = new javax.swing.JLabel ();
setLayout (new java.awt.BorderLayout ());
setResizable (false);
setTitle ("Edici\u00f3n de Enunciados");
setName ("EdiciondeEnunciado");
addWindowListener (new java.awt.event.WindowAdapter () {
public void windowClosing (java.awt.event.WindowEvent evt) {
closeDialog (evt);
}
}
);

-1-

jueves, 30 de junio de 2016 10:54 p.m.

D:\Codigo Fuente\Java\Por revisar\Dialogo de edicin de enunciados\DialogoEdicionEnunciado.java

jueves, 30 de junio de 2016 10:54 p.m.

PanelEntradas.setLayout (new java.awt.GridLayout (2, 1));


TextoCampo.setToolTipText ("Escriba el Texto de su enunciado");
TextoCampo.setPreferredSize (new java.awt.Dimension(400, 20));
PanelEntradas.add (TextoCampo);
NaturalezaLista.setBackground (java.awt.Color.white);
NaturalezaLista.setForeground (java.awt.Color.black);
NaturalezaLista.setName ("NaturalezaLista");
NaturalezaLista.setFont (new java.awt.Font ("Dialog", 0, 11));
PanelEntradas.add (NaturalezaLista);

add (PanelEntradas, java.awt.BorderLayout.CENTER);


PanelBotones.setLayout (new javax.swing.BoxLayout (PanelBotones, 0));
Aceptar.setBackground (java.awt.Color.lightGray);
Aceptar.setForeground (java.awt.Color.black);
Aceptar.setLabel ("Aceptar");
Aceptar.setName ("Aceptar");
Aceptar.setFont (new java.awt.Font ("Dialog", 0, 11));
Aceptar.addActionListener (new java.awt.event.ActionListener () {
public void actionPerformed (java.awt.event.ActionEvent evt) {
AceptarAccion (evt);
}
}
);
PanelBotones.add (Aceptar);
Cancelar.setBackground (java.awt.Color.lightGray);
Cancelar.setForeground (java.awt.Color.black);
Cancelar.setLabel ("Cancelar");
Cancelar.setName ("Cancelar");
Cancelar.setFont (new java.awt.Font ("Dialog", 0, 11));
Cancelar.addActionListener (new java.awt.event.ActionListener () {
public void actionPerformed (java.awt.event.ActionEvent evt) {
CancelarAccion (evt);
}
}
);
PanelBotones.add (Cancelar);

add (PanelBotones, java.awt.BorderLayout.SOUTH);


jPanel1.setLayout (new javax.swing.BoxLayout (jPanel1, 1));
TextoEtiqueta.setText ("Texto:");
-2-

D:\Codigo Fuente\Java\Por revisar\Dialogo de edicin de enunciados\DialogoEdicionEnunciado.java

jueves, 30 de junio de 2016 10:54 p.m.

TextoEtiqueta.setForeground (java.awt.Color.black);
TextoEtiqueta.setFont (new java.awt.Font ("dialog.bold", 0, 18));
jPanel1.add (TextoEtiqueta);
NaturalezaEtiqueta.setText ("Naturaleza:");
NaturalezaEtiqueta.setForeground (java.awt.Color.black);
NaturalezaEtiqueta.setFont (new java.awt.Font ("dialog.bold", 0, 18));
jPanel1.add (NaturalezaEtiqueta);

add (jPanel1, java.awt.BorderLayout.WEST);


}//GEN-END:initComponents
private void CancelarAccion (java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CancelarAccion
// Add your handling code here:
}//GEN-LAST:event_CancelarAccion
private void AceptarAccion (java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AceptarAccion
// Add your handling code here:
}//GEN-LAST:event_AceptarAccion
/** Closes the dialog */
private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
setVisible (false);
dispose ();
}//GEN-LAST:event_closeDialog
/**
* @param args the command line arguments
*/
public static void main (String args[]) {
new DialogoEdicionEnunciado (new java.awt.Frame (), true).show ();
}

// Variables declaration - do not modify//GEN-BEGIN:variables


private javax.swing.JPanel PanelEntradas;
private javax.swing.JTextField TextoCampo;
private java.awt.Choice NaturalezaLista;
private javax.swing.JPanel PanelBotones;
private java.awt.Button Aceptar;
private java.awt.Button Cancelar;
private javax.swing.JPanel jPanel1;
private javax.swing.JLabel TextoEtiqueta;
private javax.swing.JLabel NaturalezaEtiqueta;
// End of variables declaration//GEN-END:variables
}

-3-

Potrebbero piacerti anche