基于Java的订餐系统设计与实现课程设计说明书 下载本文

.

);

other.setText(\其他\);

other.addMouseListener(new java.awt.event.MouseAdapter() {

public void mouseClicked(java.awt.event.MouseEvent evt) {

otherMouseClicked(evt); } } );

controlcenter.setText(\个人中心\);

controlcenter.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

controlcenterActionPerformed(evt); } }

);

2.订单信息

可编辑

.

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle(\我的订单\);

jLabel1.setFont(new java.awt.Font(\微软雅黑\, 0, 24)); // NOI18N jLabel1.setText(\我的订单\);

jLabel2.setText(\支付状况:\);

jLabel3.setText(\未支付\);

jButton1.setText(\确认收货\);

jButton1.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton1ActionPerformed(evt); } } );

jButton2.setText(\取消\);

jButton2.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

可编辑

.

jButton2ActionPerformed(evt); } } );

jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

jCheckBox1.setText(\咖啡\);

jCheckBox1.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jCheckBox1ActionPerformed(evt); } } );

jCheckBox2.setText(\铁板牛肉\);

jCheckBox3.setText(\木须肉盖浇饭\);

javax.swing.GroupLayout jPanel1Layout = javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup(

可编辑

new

.

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap()

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

.addComponent(jCheckBox1) .addComponent(jCheckBox2) .addComponent(jCheckBox3))

.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) );

jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap()

.addComponent(jCheckBox1)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.

UNRELATED)

.addComponent(jCheckBox2)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.

可编辑