Koszelak_N_CIS355_Week3_Practice.docx

Swinggrouplayout pnltoppingslayout new

This preview shows page 11 - 14 out of 26 pages.

javax.swing.GroupLayout pnlToppingsLayout = new javax.swing.GroupLayout(pnlToppings); pnlToppings.setLayout(pnlToppingsLayout); pnlToppingsLayout.setHorizontalGroup( pnlToppingsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlToppingsLayout.createSequentialGroup() .addContainerGap() .addGroup(pnlToppingsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(chkExtraCheese) .addComponent(chkSausage) .addComponent(chkHam)) .addContainerGap(365, Short.MAX_VALUE)) ); pnlToppingsLayout.setVerticalGroup( pnlToppingsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlToppingsLayout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(chkExtraCheese)
Image of page 11

Subscribe to view the full document.

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(chkSausage) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(chkHam)) ); btnClearItems.setText("Clear Items"); btnClearItems.setToolTipText("Click to clear all the order items, the order total, and order summary"); btnClearItems.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnClearItemsActionPerformed(evt); } }); pnlOutput.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Your Order Summary", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(51, 51, 255))); // NOI18N txtOrderSummary.setColumns(20); txtOrderSummary.setRows(5); jScrollPane1.setViewportView(txtOrderSummary); javax.swing.GroupLayout pnlOutputLayout = new javax.swing.GroupLayout(pnlOutput); pnlOutput.setLayout(pnlOutputLayout); pnlOutputLayout.setHorizontalGroup( pnlOutputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 514, Short.MAX_VALUE) .addGroup(pnlOutputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
Image of page 12
.addGroup(pnlOutputLayout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 446, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(58, Short.MAX_VALUE))) ); pnlOutputLayout.setVerticalGroup( pnlOutputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 152, Short.MAX_VALUE) .addGroup(pnlOutputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlOutputLayout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(20, Short.MAX_VALUE))) ); btnExit.setText("Exit"); btnExit.setToolTipText("Click to exit the the Best Pizza order application"); btnExit.setAutoscrolls(true); btnExit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnExitActionPerformed(evt); } }); btnNew.setText("New Order"); btnNew.setToolTipText("Clear all items and start new order"); btnNew.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) {
Image of page 13

Subscribe to view the full document.

btnNewActionPerformed(evt); } }); lblTotal.setFont(new java.awt.Font("Tahoma", 3, 12)); // NOI18N lblTotal.setForeground(new java.awt.Color(0, 0, 80));
Image of page 14
You've reached the end of this preview.
  • Summer '12
  • all
  • pizza hut, 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