Lab02Code

Lab02Code - /* * frmMain.java * * Created on January 23,...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 /* * frmMain.java * * Created on January 23, 2008, 8:04 AM * * @author jpurdum */ public class frmMain extends javax.swing.JFrame { /** Creates new form frmMain */ public frmMain() { 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. */ // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { btnShuffle = new javax.swing.JButton() jScrollPane1 = new javax.swing.JScrollPane() txtArea = new javax.swing.JTextArea() btnClose = new javax.swing.JButton() setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE) setTitle("Shuffle Deck") btnShuffle.setText("Shuffle") btnShuffle.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnShuffleActionPerformed(evt) } }) txtArea.setColumns(20) txtArea.setRows(5) jScrollPane1.setViewportView(txtArea) btnClose.setText("Close") btnClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCloseActionPerformed(evt) } }) org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()) getContentPane().setLayout(layout) layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sheet1 Page 2 .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(btnShuffle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAUL T .add(224, 224, 224) .add(btnClose)) .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZ E .addContainerGap()) ) layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(btnShuffle) .add(btnClose)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/18/2008 for the course CIT 295 taught by Professor Purdum during the Fall '08 term at Purdue.

Page1 / 16

Lab02Code - /* * frmMain.java * * Created on January 23,...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online