package Quiniela;
public class Resultados extends javax.swing.JFrame {
public Resultados() {
initComponents();
}
@Suppress...
.addComponent(lblgoles2,
javax.swing.GroupLayout.DEFAULT_SIZE, 86, Short.MAX_VALUE))
.addContainerGap(103, Short.MAX_VALUE...
private void btnsalirActionPerformed(java.awt.event.ActionEvent evt)
{//GEN-FIRST:event_btnsalirActionPerformed
this.dispo...
private javax.swing.JLabel lblpais1;
public final javax.swing.JTextField txtgoles1 = new
javax.swing.JTextField();
public ...
Upcoming SlideShare
Loading in...5
×

Resultados

293

Published on

Published in: Technology, Art & Photos
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
293
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Resultados"

  1. 1. package Quiniela; public class Resultados extends javax.swing.JFrame { public Resultados() { initComponents(); } @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN- BEGIN:initComponents private void initComponents() { lblpais1 = new javax.swing.JLabel(); lblgoles2 = new javax.swing.JLabel(); lblgoles3 = new javax.swing.JLabel(); btnsalir = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); lblpais1.setText("PAIS BLOQUE A"); lblgoles2.setText("PAIS BLOQUE B"); lblgoles3.setText("PUNTOS BLOQUE A"); btnsalir.setText("salir"); btnsalir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnsalirActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(87, 87, 87) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE ADING, false) .addComponent(txtgoles1) .addComponent(txtpais1) .addComponent(lblpais1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(lblgoles3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(31, 31, 31) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE ADING, false) .addComponent(txtpais2)
  2. 2. .addComponent(lblgoles2, javax.swing.GroupLayout.DEFAULT_SIZE, 86, Short.MAX_VALUE)) .addContainerGap(103, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnsalir) .addGap(56, 56, 56)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(26, 26, 26) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA SELINE) .addComponent(lblpais1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(lblgoles2, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA SELINE) .addComponent(txtpais1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtpais2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(36, 36, 36) .addComponent(lblgoles3, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtgoles1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE) .addComponent(btnsalir) .addGap(89, 89, 89)) ); pack(); }// </editor-fold>//GEN-END:initComponents
  3. 3. private void btnsalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnsalirActionPerformed this.dispose(); }//GEN-LAST:event_btnsalirActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(Resultados.class.getName()).log(java.u til.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(Resultados.class.getName()).log(java.u til.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(Resultados.class.getName()).log(java.u til.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(Resultados.class.getName()).log(java.u til.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { @Override public void run() { new Resultados().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton btnsalir; private javax.swing.JLabel lblgoles2; private javax.swing.JLabel lblgoles3;
  4. 4. private javax.swing.JLabel lblpais1; public final javax.swing.JTextField txtgoles1 = new javax.swing.JTextField(); public final javax.swing.JTextField txtpais1 = new javax.swing.JTextField(); public final javax.swing.JTextField txtpais2 = new javax.swing.JTextField(); // End of variables declaration//GEN-END:variables /** * @param lblpais1 the lblpais1 to set */ // public void setLblpais1(javax.swing.JLabel lblpais1) { // this.lblpais1 = lblpais1; //} }

×