* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package total;
import javax.swing.JOptionPane;
/**
*
* @author Administrator
*/
public class Total_6_19 extends javax.swing.JFrame {
/**
* Creates new form Total_6_19
*/
public Total_6_19() {
initComponents();
buttonGroup1.add(Goods1);
buttonGroup1.add(Goods2);
buttonGroup1.add(Goods3);
buttonGroup1.add(Goods4);
Classify1.addItem("家电");
Classify1.addItem("五金金属");
Classify1.addItem("珠宝手表");
}
/**
* 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.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jDialog1 = new javax.swing.JDialog();
jLabel1 = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
Goods1 = new javax.swing.JRadioButton();
Goods2 = new javax.swing.JRadioButton();
Goods3 = new javax.swing.JRadioButton();
Goods4 = new javax.swing.JRadioButton();
Classify1 = new javax.swing.JComboBox();
Classify2 = new javax.swing.JComboBox();
canvas1 = new java.awt.Canvas();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jLabel5 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());
jDialog1.getContentPane().setLayout(jDialog1Layout);
jDialog1Layout.setHorizontalGroup(
jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 400, Short.MAX_VALUE)
);
jDialog1Layout.setVerticalGroup(
jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 300, Short.MAX_VALUE)
);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setFont(new java.awt.Font("楷体", 2, 24)); // NOI18N
jLabel1.setText("大型购物中心");
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.pink, java.awt.Color.orange), "商场商品大区确定", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("楷体", 2, 24))); // NOI18N
Goods1.setText("jRadioButton1");
Goods2.setText("jRadioButton2");
Goods3.setText("jRadioButton3");
Goods4.setText("jRadioButton4");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(22, 22, 22)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(Goods1)
.addComponent(Goods3))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 78, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Goods2, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(Goods4, javax.swing.GroupLayout.Alignment.TRAILING))
.addGap(59, 59, 59))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(Goods1)
.addComponent(Goods2))
.addGap(52, 52, 52)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(Goods3)
.addComponent(Goods4))
.addContainerGap(108, Short.MAX_VALUE))
);
==现在做的不够全面,不过后续会不断完善,加油!!!== * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package total;import javax.swing.JOpti...