Matrices 1
package paqMatrices;
import javax.swing.JButton;
import javax.swing.JLabel;
/**
*
* @author COREDUCACION
*/
public class jMatrices extends javax.swing.JFrame {
/** Creates new form jMatrices */
public jMatrices() {
initComponents();
JLabel etiqueta1=new JLabel("Etiqueta 1");
etiqueta1.setBounds(20,50,100,200);
this.add(etiqueta1);
etiqueta1.setVisible(true);
JButton Button1=new JButton("Button 1");
Button1.setBounds(100,100,99,80);
this.add(Button1);
etiqueta1.setVisible(true);
}
/** 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() {
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 400, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 300, Short.MAX_VALUE)
);
pack();
}// </editor-fold>
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new jMatrices().setVisible(true);
}
});
}
// Variables declaration - do not modify
// End of variables declaration
}
No hay comentarios:
Publicar un comentario