當(dāng)前位置:工程項目OA系統(tǒng) > 領(lǐng)域應(yīng)用 > 商務(wù)管理軟件 > 訂單管理系統(tǒng)
請教java gui 編程高手 披薩餐廳訂單管理系統(tǒng)
泛普軟件訂單管理系統(tǒng),我先編寫了一個主程序,如下:
import javax.swing.*;
public class Order1
{
public static void main(String[] args)
{
JFrame frame=new JFrame("披薩餐廳訂單管理系統(tǒng)");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(new A());
frame.pack();
frame.setVisible(true);
}
}
A是我的主面板類,內(nèi)容較多,但是A能編譯通過,但是主程序在編譯通過后運行時出現(xiàn)如下錯誤提示:Exception in thread "main" java.awt.AWIError:BoxLayout can't be shared
at javax.swing.BoxLayout.checkContainer(BoxLayout.javaL445)
at javax.swing.BoxLayout.invalidateLayout(BoxLauout.java:229)
....
at Order1.main(Order1.java:10)
實在搞不清楚哪里錯誤了,希望高手不吝賜教,不勝感激!由于;篇幅限制,貼出部分A類內(nèi)容:
public A()
{
setBackground(Color.green);
JPanel panel1=new JPanel();
JPanel panel2=new JPanel();
JPanel panel3=new JPanel();
JPanel panel4=new JPanel();
JPanel panel5=new JPanel();
panel1.setLayout(new BoxLayout(this,BoxLayout.X_AXIS));
size=new JLabel("大小:");
big=new JRadioButton("大型");
small=new JRadioButton("小型");
medium=new JRadioButton("中型");
settled=new JRadioButton("定制");
panel1.add(size);
panel1.add(big);
panel1.add(medium);
panel1.add(small);
panel1.add(settled);
JPanel panel2_1=new JPanel();
JPanel panel2_2=new JPanel();
JPanel panel2_3=new JPanel();
panel2_1.setLayout(new BoxLayout(this,BoxLayout.Y_AXIS));
panel2_2.setLayout(new BoxLayout(this,BoxLayout.Y_AXIS));
panel2_3.setLayout(new BoxLayout(this,BoxLayout.Y_AXIS));
TitledBorder sec_1=BorderFactory.createTitledBorder("面包");
TitledBorder sec_2=BorderFactory.createTitledBorder("土司");
TitledBorder sec_3=BorderFactory.createTitledBorder("奶酪");
newyork=new JRadioButton("紐約風(fēng)味");
chicago=new JRadioButton("芝加哥風(fēng)味");
naples=new JRadioButton("那不勒斯風(fēng)味");
canada=new JRadioButton("加拿大風(fēng)味");
rome=new JRadioButton("羅馬風(fēng)味");
panel2_1.add(newyork);
panel2_1.add(chicago);
panel2_1.add(naples);
panel2_1.add(canada);
panel2_1.add(rome);
panel2_1.setBorder(sec_1);
tomato=new JRadioButton("西紅柿土司");
potato=new JRadioButton("土豆土司");
garlic=new JRadioButton("香蒜土司");
barbecue=new JRadioButton("烤肉土司");
olive=new JRadioButton("橄欖油土司");
panel2_2.add(tomato);
panel2_2.add(potato);
panel2_2.add(garlic);
panel2_2.add(barbecue);
panel2_2.add(olive);
panel2_2.setBorder(sec_2);
.....
.....
add(panel1);
add(panel2);
add(Box.createRigidArea(new Dimension(0,25)));
add(panel3);
add(panel4);
add(panel5);
}
}
- 1訂單系統(tǒng)就選泛普
- 2求訂單管理軟件?
- 3訂單管理系統(tǒng)軟件解決方案
- 4企業(yè)訂單管理系統(tǒng)的采購指南
- 5Excel 制作餐飲訂單及庫存管理系統(tǒng)
- 6客戶訂單管理系統(tǒng)怎么選?
- 7電商發(fā)展的速度和質(zhì)量趨向
- 8訂單系統(tǒng)集合采購、倉儲、物流是否必要?(投稿)
- 9淘寶商城如果配上訂單系統(tǒng)利益將會如何?
- 10易忽略的問題:訂單系統(tǒng)對瀏覽器的兼容性
- 11求一款銷售訂單管理系統(tǒng)
- 12訂單管理系統(tǒng)有哪些核心優(yōu)勢?
- 13什么是訂單管理系統(tǒng)
- 14成都訂單管理系統(tǒng)有哪些?
- 15如果你是網(wǎng)絡(luò)創(chuàng)業(yè)者 那么訂單系統(tǒng)你值得擁有
- 16請問ERP系統(tǒng)里面,訂單管理具體包括哪些內(nèi)容,有哪些操作流程
- 17如何控制在線訂單系統(tǒng)的復(fù)雜度?
- 18訂單系統(tǒng)負(fù)荷能力分析
- 19須知:訂單系統(tǒng)的設(shè)計影響下單率
- 20EXCEL的在線訂單系統(tǒng),是否真好用?
- 21智能化訂單管理系統(tǒng)有哪些優(yōu)勢?
- 22使用訂單管理系統(tǒng)有哪些作用?
- 23訂單管理系統(tǒng)的主要功能有哪些?
- 24企業(yè)訂單數(shù)字化管理的重要性
- 25求好用的訂單管理軟件,大伙能給推薦下嗎?
- 26訂單系統(tǒng)數(shù)據(jù)庫無法連接這是為什么?
- 27訂單管理系統(tǒng)做什么用的
- 28訂單系統(tǒng)選擇標(biāo)準(zhǔn):功能與安全
- 29感覺我們公司現(xiàn)在的訂單發(fā)貨管理系統(tǒng)有些落后了,誰能給我推薦一款領(lǐng)先的企業(yè)管理軟件呢?聽說過EABP嗎?
- 30工程訂單管理軟件的幾大模塊
成都公司:成都市成華區(qū)建設(shè)南路160號1層9號
重慶公司:重慶市江北區(qū)紅旗河溝華創(chuàng)商務(wù)大廈18樓