Koszelak_N_CIS355_Week4_Practice.docx

Setverticalgroup

This preview shows page 21 - 26 out of 28 pages.

layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup()
Image of page 21

Subscribe to view the full document.

.addComponent(lblWelcome) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 481, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(30, Short.MAX_VALUE)) ); pack(); }// </editor-fold> private void mnuExitActionPerformed(java.awt.event.ActionEvent evt) { terminateApplication(); } private void mnuSubmitOrderActionPerformed(java.awt.event.ActionEvent evt) { submitOrder(); } private void mnuClearItemsActionPerformed(java.awt.event.ActionEvent evt) { clearItems(); } private void mnuNewActionPerformed(java.awt.event.ActionEvent evt) { newOrder(); } private void txtFirstNameFocusLost(java.awt.event.FocusEvent evt) { setFirstName(); }
Image of page 22
private void txtLastNameFocusLost(java.awt.event.FocusEvent evt) { setLastName(); } private void radSmallItemStateChanged(java.awt.event.ItemEvent evt) { setSize(PizzaOrder.PizzaSize.Small); } private void radMediumItemStateChanged(java.awt.event.ItemEvent evt) { setSize(PizzaOrder.PizzaSize.Medium); } private void radLargeItemStateChanged(java.awt.event.ItemEvent evt) { setSize(PizzaOrder.PizzaSize.Large); } private void chkExtraCheese1ItemStateChanged(java.awt.event.ItemEvent evt) { setCheese(); } private void chkSausage1ActionPerformed(java.awt.event.ActionEvent evt) { setSausage(); } private void chkHam1ItemStateChanged(java.awt.event.ItemEvent evt) { setHam(); }
Image of page 23

Subscribe to view the full document.

private void btnSumbitOrderActionPerformed(java.awt.event.ActionEvent evt) { submitOrder(); DefaultListModel submitlist = new DefaultListModel(); //submitlist.addElement(getFullName()); //submitlist.addListSelectionListener( //new ListSelectionListener() //{ //public void valueChanged(ListSelectionEvent event) //String subo; //if(submitlist.getSelectedIndex() ! = -1) //{ //return getOrderInformation(); //} //}); JOrderList.setModel(submitlist); } private void btnClearItemsActionPerformed(java.awt.event.ActionEvent evt) { clearItems(); } private void btnNewActionPerformed(java.awt.event.ActionEvent evt) { newOrder(); } private void btnExitActionPerformed(java.awt.event.ActionEvent evt) { terminateApplication(); }
Image of page 24
private void chkHam1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void chkExtraCheese1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void btnDeleteOrderActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: // int item = submitlist.getSelectedIndex(); // if (item == -1) // { // JOptionPane.showMessageDialog(null, "Must select item to remove"); // } //else // { // submitlist.removeElementAT(item); // } } /** * @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) ">
Image of page 25

Subscribe to view the full document.

/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see */ 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(Week4_Practice.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(Week4_Practice.class.getName()).log(java.util.logging.Level.SEVERE,
Image of page 26
You've reached the end of this preview.
  • Summer '12
  • all
  • The Order, import javax, private PizzaOrder aOrder

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern