增加了我的商品界面(未完整实现)。
This commit is contained in:
parent
276137c672
commit
1db3148e58
2
.project
2
.project
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>AHClient</name>
|
||||
<name>nudt_ah_client</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
|
|
|
@ -1,52 +1,218 @@
|
|||
package dialog;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Shape;
|
||||
import java.awt.SystemColor;
|
||||
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import javax.swing.border.LineBorder;
|
||||
|
||||
public class AHJDialogGoods extends JDialog {
|
||||
import com.sun.awt.AWTUtilities;
|
||||
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.geom.RoundRectangle2D;
|
||||
|
||||
import javax.swing.JTextField;
|
||||
import javax.swing.JLabel;
|
||||
|
||||
import panel.AHJPanel;
|
||||
import panel.AHJPanelBg;
|
||||
import panel.AHJPanelMainBg;
|
||||
|
||||
import java.awt.Font;
|
||||
|
||||
import label.AHJLabel;
|
||||
|
||||
import javax.swing.JComboBox;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
public class AHJDialogGoods extends AHJDialog {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private final JPanel contentPanel = new JPanel();
|
||||
|
||||
private String m_strImageURI;
|
||||
private JTextField goodsNameField;
|
||||
private JComboBox typeCB;
|
||||
private JTextField rpwdField;
|
||||
private JComboBox mailField;
|
||||
private JTextArea telField;
|
||||
private JTextArea infoField;
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
AHJDialogGoods dialog = new AHJDialogGoods();
|
||||
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
|
||||
dialog.setVisible(true);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
new AHJDialogGoods(null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the dialog.
|
||||
*/
|
||||
public AHJDialogGoods() {
|
||||
setBounds(100, 100, 450, 300);
|
||||
getContentPane().setLayout(new BorderLayout());
|
||||
contentPanel.setLayout(new FlowLayout());
|
||||
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
|
||||
getContentPane().add(contentPanel, BorderLayout.CENTER);
|
||||
public AHJDialogGoods(final AHJPanelMainBg panelMain, final JLabel labelUserInfo) {
|
||||
super(1000, 600);
|
||||
initial();
|
||||
getContentPane().add(getMainPanel(), BorderLayout.CENTER);
|
||||
getMainPanel().setLayout(new BorderLayout(0, 0));
|
||||
{
|
||||
JPanel buttonPane = new JPanel();
|
||||
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
|
||||
getContentPane().add(buttonPane, BorderLayout.SOUTH);
|
||||
JPanel panelLoginN = new JPanel();
|
||||
panelLoginN.setPreferredSize(new Dimension(10, 45));
|
||||
panelLoginN.setOpaque(false);
|
||||
getMainPanel().add(panelLoginN, BorderLayout.NORTH);
|
||||
panelLoginN.setLayout(new BorderLayout(0, 0));
|
||||
{
|
||||
JButton okButton = new JButton("OK");
|
||||
okButton.setActionCommand("OK");
|
||||
buttonPane.add(okButton);
|
||||
getRootPane().setDefaultButton(okButton);
|
||||
JButton btnNewButton = new JButton("X");
|
||||
btnNewButton.addMouseListener(new MouseAdapter() {
|
||||
public void mouseClicked(MouseEvent arg0) {
|
||||
setVisible(false);
|
||||
dispose();
|
||||
}
|
||||
});
|
||||
panelLoginN.add(btnNewButton, BorderLayout.EAST);
|
||||
}
|
||||
{
|
||||
JButton cancelButton = new JButton("Cancel");
|
||||
cancelButton.setActionCommand("Cancel");
|
||||
buttonPane.add(cancelButton);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
new AHJPanel(panelLoginN, BorderLayout.SOUTH, null);
|
||||
new AHJLabel(new AHJPanel(panelLoginN, BorderLayout.WEST, null), "商品详情", new Dimension(100, 28), new Font("微软雅黑", Font.BOLD, 18));
|
||||
new AHJPanel(getMainPanel(), BorderLayout.WEST, null);
|
||||
new AHJPanel(getMainPanel(), BorderLayout.EAST, null);
|
||||
new AHJPanel(getMainPanel(), BorderLayout.SOUTH, null);
|
||||
|
||||
JPanel panelLoginC = new AHJPanelBg(getMainPanel(), BorderLayout.CENTER, null, "images/scrollpane3.png");
|
||||
|
||||
panelLoginC.setLayout(null);
|
||||
//panelLoginC.setOpaque(false);
|
||||
panelLoginC.setBorder(new LineBorder(SystemColor.textHighlight, 1, true));
|
||||
|
||||
final JLabel labelUserName = new JLabel("商 品 名:");
|
||||
labelUserName.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
labelUserName.setBounds(70, 35, 100, 30);
|
||||
panelLoginC.add(labelUserName);
|
||||
|
||||
goodsNameField = new JTextField();
|
||||
goodsNameField.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
goodsNameField.setBounds(180, 30, 220, 40);
|
||||
goodsNameField.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
panelLoginC.add(goodsNameField);
|
||||
goodsNameField.setColumns(10);
|
||||
|
||||
JLabel labelPwd = new JLabel("商品类型:");
|
||||
labelPwd.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
labelPwd.setBounds(550, 35, 100, 30);
|
||||
panelLoginC.add(labelPwd);
|
||||
|
||||
String str[] = { "FIFO", "SSTF", "SCAN", "CSCAN" };
|
||||
typeCB = new JComboBox(str);
|
||||
typeCB.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
typeCB.setBounds(660, 30, 220, 40);
|
||||
typeCB.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
typeCB.setBackground(Color.WHITE);
|
||||
panelLoginC.add(typeCB);
|
||||
|
||||
JLabel label = new JLabel("起拍价格:");
|
||||
label.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
label.setBounds(70, 125, 100, 30);
|
||||
panelLoginC.add(label);
|
||||
|
||||
rpwdField = new JTextField();
|
||||
rpwdField.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
rpwdField.setColumns(10);
|
||||
rpwdField.setBounds(180, 120, 220, 40);
|
||||
rpwdField.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
panelLoginC.add(rpwdField);
|
||||
|
||||
JLabel labelMail = new JLabel("竞拍策略:");
|
||||
labelMail.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
labelMail.setBounds(550, 125, 100, 30);
|
||||
panelLoginC.add(labelMail);
|
||||
|
||||
String strSg[] = {"时间策略", "价格策略"};
|
||||
mailField = new JComboBox(strSg);
|
||||
mailField.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
mailField.setBounds(660, 120, 220, 40);
|
||||
mailField.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
mailField.setBackground(Color.WHITE);
|
||||
panelLoginC.add(mailField);
|
||||
|
||||
JLabel labelShortInfo = new JLabel("简短信息:");
|
||||
labelShortInfo.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
labelShortInfo.setBounds(70, 215, 100, 30);
|
||||
panelLoginC.add(labelShortInfo);
|
||||
|
||||
telField = new JTextArea();
|
||||
telField.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
telField.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
telField.setColumns(10);
|
||||
telField.setBounds(180, 210, 700, 60);
|
||||
panelLoginC.add(telField);
|
||||
|
||||
JLabel labelInfo = new JLabel("详细信息:");
|
||||
labelInfo.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
labelInfo.setBounds(70, 325, 100, 30);
|
||||
panelLoginC.add(labelInfo);
|
||||
|
||||
infoField = new JTextArea();
|
||||
infoField.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
infoField.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
infoField.setColumns(10);
|
||||
infoField.setBounds(180, 320, 700, 100);
|
||||
panelLoginC.add(infoField);
|
||||
|
||||
JButton buttonLogin = new JButton("竞拍");
|
||||
buttonLogin.addMouseListener(new MouseAdapter() {
|
||||
public void mouseClicked(MouseEvent arg0) {
|
||||
JOptionPane.showMessageDialog(panelMain, new String("下阶段功能,敬请期待!"), "提示", JOptionPane.ERROR_MESSAGE);
|
||||
/*
|
||||
panelMain.getUserInfo().setUserName(goodsNameField.getText());
|
||||
labelUserInfo.setText(panelMain.getUserInfo().getUserName() + ",您好。您已参与交易90笔,信用度9000,当前正在交易商品80件。");;
|
||||
panelMain.repaint();
|
||||
setVisible(false);
|
||||
dispose();
|
||||
*/
|
||||
}
|
||||
});
|
||||
buttonLogin.setFont(new Font("宋体", Font.BOLD, 16));
|
||||
buttonLogin.setBounds(285, 460, 130, 40);
|
||||
panelLoginC.add(buttonLogin);
|
||||
|
||||
JButton buttonReset = new JButton("重置");
|
||||
buttonReset.addMouseListener(new MouseAdapter() {
|
||||
public void mouseClicked(MouseEvent arg0) {
|
||||
goodsNameField.setText("");
|
||||
rpwdField.setText("");
|
||||
telField.setText("");
|
||||
infoField.setText("");
|
||||
}
|
||||
});
|
||||
buttonReset.setFont(new Font("宋体", Font.BOLD, 16));
|
||||
buttonReset.setBounds(560, 460, 130, 40);
|
||||
panelLoginC.add(buttonReset);
|
||||
setGoodsInfo();
|
||||
}
|
||||
|
||||
//panelParent.getComponentCount();
|
||||
setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
protected void initial()
|
||||
{
|
||||
m_strImageURI = "images/bg6.jpg";
|
||||
setModal(true);
|
||||
getContentPane().setLayout(new BorderLayout());
|
||||
getMainPanel().setBgImageURI(m_strImageURI);
|
||||
getMainPanel().setBorder(new EmptyBorder(10, 10, 10, 10));
|
||||
setVisibleRegion(this.getWidth(),this.getHeight());
|
||||
getMainPanel().setBorder(new LineBorder(SystemColor.textHighlight, 3, true));
|
||||
}
|
||||
|
||||
public void setVisibleRegion(int width,int height){
|
||||
Shape shape = null;
|
||||
shape = new RoundRectangle2D.Double(0, 0, width, height, 15D, 15D);
|
||||
AWTUtilities.setWindowShape(this, shape);
|
||||
}
|
||||
|
||||
public void setGoodsInfo()
|
||||
{
|
||||
goodsNameField.setText("演示商品名");
|
||||
rpwdField.setText("1000.8");
|
||||
telField.setText("演示简短信息");
|
||||
infoField.setText("这里是演示的商品详情\n演示具体的商品内容!");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,218 @@
|
|||
package dialog;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Shape;
|
||||
import java.awt.SystemColor;
|
||||
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import javax.swing.border.LineBorder;
|
||||
|
||||
import com.sun.awt.AWTUtilities;
|
||||
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.geom.RoundRectangle2D;
|
||||
|
||||
import javax.swing.JTextField;
|
||||
import javax.swing.JLabel;
|
||||
|
||||
import panel.AHJPanel;
|
||||
import panel.AHJPanelBg;
|
||||
import panel.AHJPanelMainBg;
|
||||
|
||||
import java.awt.Font;
|
||||
|
||||
import label.AHJLabel;
|
||||
|
||||
import javax.swing.JComboBox;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
public class AHJDialogMyGoods extends AHJDialog {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String m_strImageURI;
|
||||
private JTextField goodsNameField;
|
||||
private JComboBox typeCB;
|
||||
private JTextField rpwdField;
|
||||
private JComboBox mailField;
|
||||
private JTextArea telField;
|
||||
private JTextArea infoField;
|
||||
public static void main(String[] args) {
|
||||
new AHJDialogMyGoods(null, null);
|
||||
}
|
||||
|
||||
public AHJDialogMyGoods(final AHJPanelMainBg panelMain, final JLabel labelUserInfo) {
|
||||
super(1000, 600);
|
||||
initial();
|
||||
getContentPane().add(getMainPanel(), BorderLayout.CENTER);
|
||||
getMainPanel().setLayout(new BorderLayout(0, 0));
|
||||
{
|
||||
JPanel panelLoginN = new JPanel();
|
||||
panelLoginN.setPreferredSize(new Dimension(10, 45));
|
||||
panelLoginN.setOpaque(false);
|
||||
getMainPanel().add(panelLoginN, BorderLayout.NORTH);
|
||||
panelLoginN.setLayout(new BorderLayout(0, 0));
|
||||
{
|
||||
JButton btnNewButton = new JButton("X");
|
||||
btnNewButton.addMouseListener(new MouseAdapter() {
|
||||
public void mouseClicked(MouseEvent arg0) {
|
||||
setVisible(false);
|
||||
dispose();
|
||||
}
|
||||
});
|
||||
panelLoginN.add(btnNewButton, BorderLayout.EAST);
|
||||
}
|
||||
|
||||
new AHJPanel(panelLoginN, BorderLayout.SOUTH, null);
|
||||
new AHJLabel(new AHJPanel(panelLoginN, BorderLayout.WEST, null), "我的商品", new Dimension(100, 28), new Font("微软雅黑", Font.BOLD, 18));
|
||||
new AHJPanel(getMainPanel(), BorderLayout.WEST, null);
|
||||
new AHJPanel(getMainPanel(), BorderLayout.EAST, null);
|
||||
new AHJPanel(getMainPanel(), BorderLayout.SOUTH, null);
|
||||
|
||||
JPanel panelLoginC = new AHJPanelBg(getMainPanel(), BorderLayout.CENTER, null, "images/scrollpane3.png");
|
||||
|
||||
panelLoginC.setLayout(null);
|
||||
//panelLoginC.setOpaque(false);
|
||||
panelLoginC.setBorder(new LineBorder(SystemColor.textHighlight, 1, true));
|
||||
|
||||
final JLabel labelUserName = new JLabel("商 品 名:");
|
||||
labelUserName.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
labelUserName.setBounds(70, 35, 100, 30);
|
||||
panelLoginC.add(labelUserName);
|
||||
|
||||
goodsNameField = new JTextField();
|
||||
goodsNameField.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
goodsNameField.setBounds(180, 30, 220, 40);
|
||||
goodsNameField.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
panelLoginC.add(goodsNameField);
|
||||
goodsNameField.setColumns(10);
|
||||
|
||||
JLabel labelPwd = new JLabel("商品类型:");
|
||||
labelPwd.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
labelPwd.setBounds(550, 35, 100, 30);
|
||||
panelLoginC.add(labelPwd);
|
||||
|
||||
String str[] = { "FIFO", "SSTF", "SCAN", "CSCAN" };
|
||||
typeCB = new JComboBox(str);
|
||||
typeCB.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
typeCB.setBounds(660, 30, 220, 40);
|
||||
typeCB.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
typeCB.setBackground(Color.WHITE);
|
||||
panelLoginC.add(typeCB);
|
||||
|
||||
JLabel label = new JLabel("起拍价格:");
|
||||
label.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
label.setBounds(70, 125, 100, 30);
|
||||
panelLoginC.add(label);
|
||||
|
||||
rpwdField = new JTextField();
|
||||
rpwdField.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
rpwdField.setColumns(10);
|
||||
rpwdField.setBounds(180, 120, 220, 40);
|
||||
rpwdField.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
panelLoginC.add(rpwdField);
|
||||
|
||||
JLabel labelMail = new JLabel("竞拍策略:");
|
||||
labelMail.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
labelMail.setBounds(550, 125, 100, 30);
|
||||
panelLoginC.add(labelMail);
|
||||
|
||||
String strSg[] = {"时间策略", "价格策略"};
|
||||
mailField = new JComboBox(strSg);
|
||||
mailField.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
mailField.setBounds(660, 120, 220, 40);
|
||||
mailField.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
mailField.setBackground(Color.WHITE);
|
||||
panelLoginC.add(mailField);
|
||||
|
||||
JLabel labelShortInfo = new JLabel("简短信息:");
|
||||
labelShortInfo.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
labelShortInfo.setBounds(70, 215, 100, 30);
|
||||
panelLoginC.add(labelShortInfo);
|
||||
|
||||
telField = new JTextArea();
|
||||
telField.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
telField.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
telField.setColumns(10);
|
||||
telField.setBounds(180, 210, 700, 60);
|
||||
panelLoginC.add(telField);
|
||||
|
||||
JLabel labelInfo = new JLabel("详细信息:");
|
||||
labelInfo.setFont(new Font("微软雅黑", Font.BOLD, 16));
|
||||
labelInfo.setBounds(70, 325, 100, 30);
|
||||
panelLoginC.add(labelInfo);
|
||||
|
||||
infoField = new JTextArea();
|
||||
infoField.setFont(new Font("宋体", Font.PLAIN, 16));
|
||||
infoField.setBorder(new LineBorder(new Color(51, 153, 255)));
|
||||
infoField.setColumns(10);
|
||||
infoField.setBounds(180, 320, 700, 100);
|
||||
panelLoginC.add(infoField);
|
||||
|
||||
JButton buttonLogin = new JButton("竞拍");
|
||||
buttonLogin.addMouseListener(new MouseAdapter() {
|
||||
public void mouseClicked(MouseEvent arg0) {
|
||||
JOptionPane.showMessageDialog(panelMain, new String("下阶段功能,敬请期待!"), "提示", JOptionPane.ERROR_MESSAGE);
|
||||
/*
|
||||
panelMain.getUserInfo().setUserName(goodsNameField.getText());
|
||||
labelUserInfo.setText(panelMain.getUserInfo().getUserName() + ",您好。您已参与交易90笔,信用度9000,当前正在交易商品80件。");;
|
||||
panelMain.repaint();
|
||||
setVisible(false);
|
||||
dispose();
|
||||
*/
|
||||
}
|
||||
});
|
||||
buttonLogin.setFont(new Font("宋体", Font.BOLD, 16));
|
||||
buttonLogin.setBounds(285, 460, 130, 40);
|
||||
panelLoginC.add(buttonLogin);
|
||||
|
||||
JButton buttonReset = new JButton("重置");
|
||||
buttonReset.addMouseListener(new MouseAdapter() {
|
||||
public void mouseClicked(MouseEvent arg0) {
|
||||
goodsNameField.setText("");
|
||||
rpwdField.setText("");
|
||||
telField.setText("");
|
||||
infoField.setText("");
|
||||
}
|
||||
});
|
||||
buttonReset.setFont(new Font("宋体", Font.BOLD, 16));
|
||||
buttonReset.setBounds(560, 460, 130, 40);
|
||||
panelLoginC.add(buttonReset);
|
||||
setGoodsInfo();
|
||||
}
|
||||
|
||||
//panelParent.getComponentCount();
|
||||
setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
protected void initial()
|
||||
{
|
||||
m_strImageURI = "images/bg6.jpg";
|
||||
setModal(true);
|
||||
getContentPane().setLayout(new BorderLayout());
|
||||
getMainPanel().setBgImageURI(m_strImageURI);
|
||||
getMainPanel().setBorder(new EmptyBorder(10, 10, 10, 10));
|
||||
setVisibleRegion(this.getWidth(),this.getHeight());
|
||||
getMainPanel().setBorder(new LineBorder(SystemColor.textHighlight, 3, true));
|
||||
}
|
||||
|
||||
public void setVisibleRegion(int width,int height){
|
||||
Shape shape = null;
|
||||
shape = new RoundRectangle2D.Double(0, 0, width, height, 15D, 15D);
|
||||
AWTUtilities.setWindowShape(this, shape);
|
||||
}
|
||||
|
||||
public void setGoodsInfo()
|
||||
{
|
||||
goodsNameField.setText("演示商品名");
|
||||
rpwdField.setText("1000.8");
|
||||
telField.setText("演示简短信息");
|
||||
infoField.setText("这里是演示的商品详情\n演示具体的商品内容!");
|
||||
}
|
||||
}
|
|
@ -20,7 +20,6 @@ import javax.swing.table.DefaultTableModel;
|
|||
import java.awt.Color;
|
||||
import java.awt.Font;
|
||||
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JTextField;
|
||||
import javax.swing.SwingConstants;
|
||||
|
@ -33,7 +32,9 @@ import table.AHJTable;
|
|||
import javax.swing.JRadioButton;
|
||||
|
||||
import dialog.AHJDialogAddGoods;
|
||||
import dialog.AHJDialogGoods;
|
||||
import dialog.AHJDialogLogin;
|
||||
import dialog.AHJDialogMyGoods;
|
||||
import dialog.AHJDialogReg;
|
||||
import button.AHJButtonTop;
|
||||
import panel.AHJPanel;
|
||||
|
@ -168,9 +169,7 @@ public class AHJFrame extends JFrame {
|
|||
});
|
||||
new AHJButtonTop(panelTop_Menu, "3", new MouseAdapter() {
|
||||
public void mouseClicked(MouseEvent arg0) {
|
||||
String strImgName = "images/bg" + ++m_iImageCount % 7 + ".jpg";
|
||||
ImageIcon icon = new ImageIcon(strImgName);
|
||||
panelMain.setBgImage(icon);
|
||||
new AHJDialogMyGoods(panelMain, null);
|
||||
}
|
||||
});
|
||||
new AHJButtonTop(panelTop_Menu, "4", new MouseAdapter() {
|
||||
|
@ -348,8 +347,7 @@ public class AHJFrame extends JFrame {
|
|||
|
||||
tableGoodsList.addMouseListener(new MouseAdapter() {
|
||||
public void mouseClicked(MouseEvent arg0) {
|
||||
JDialog jdWindow = new JDialog();
|
||||
jdWindow.setVisible(true);
|
||||
new AHJDialogGoods(panelMain, null);
|
||||
}
|
||||
});
|
||||
tableGoodsList.setRowSelectionAllowed(false);
|
||||
|
|
Loading…
Reference in New Issue