📄 buywindows.java
字号:
}
/**
* This method initializes exit
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getExit() {
if (exit == null) {
exit = new JMenuItem();
exit.setText("\u9000\u51fa\u7cfb\u7edf");
exit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
System.exit(0);
}
});
}
return exit;
}
/**
* This method initializes tableout1
*
* @return javax.swing.JMenu
*/
private JMenu getTableout1() {
if (tableout1 == null) {
tableout1 = new JMenu();
tableout1.setText("\u5bfc\u51fa");
tableout1.add(getOutgoushu());
tableout1.add(getOutkucun());
tableout1.add(getOutb_inf());
}
return tableout1;
}
/**
* This method initializes user1
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getUser1() {
if (user1 == null) {
user1 = new JMenuItem();
user1.setText("\u91cd\u5efa\u7528\u6237");
user1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
Insure in = new Insure(frame);
}
});
}
return user1;
}
/**
* This method initializes softhelp
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getSofthelp() {
if (softhelp == null) {
softhelp = new JMenuItem();
softhelp.setText("\u5e2e\u52a9");
softhelp.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
Softhelp so = new Softhelp(frame);
}
});
}
return softhelp;
}
/**
* This method initializes about
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getAbout() {
if (about == null) {
about = new JMenuItem();
about.setText("\u5173\u4e8e");
about.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
About ab = new About(frame);
}
});
}
return about;
}
/**
* This method initializes localize1
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getLocalize1() {
if (localize1 == null) {
localize1 = new JMenuItem();
localize1.setText("采购系统");
localize1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
frame.setVisible(false);
BuyWindows bu = new BuyWindows();
}
});
}
return localize1;
}
/**
* This method initializes Utable
*
* @return javax.swing.JMenu
*/
private JMenu getUtable() {
if (Utable == null) {
Utable = new JMenu();
Utable.setText("操作一览表");
Utable.add(getBinsert());
Utable.add(getBupdate());
Utable.add(getBdelete());
}
return Utable;
}
/**
* This method initializes binsert
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getBinsert() {
if (binsert == null) {
binsert = new JMenuItem();
binsert.setText("插入");
binsert.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
YNPoint yn = new YNPoint(frame,"insert");
}
});
}
return binsert;
}
/**
* This method initializes bupdate
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getBupdate() {
if (bupdate == null) {
bupdate = new JMenuItem();
bupdate.setText("修改");
bupdate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
YNPoint yn = new YNPoint(frame,"update");
}
});
}
return bupdate;
}
/**
* This method initializes bdelete
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getBdelete() {
if (bdelete == null) {
bdelete = new JMenuItem();
bdelete.setText("删除");
bdelete.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
YNPoint yn = new YNPoint(frame,"delete");
}
});
}
return bdelete;
}
/**
* This method initializes kucunb
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getKucunb() {
if (kucunb == null) {
kucunb = new JMenuItem();
kucunb.setText("\u67e5\u770b\u5e93\u5b58\u4fe1\u606f");
kucunb.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
try {
LookUp lp = new LookUp("库存");
} catch (ClassNotFoundException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (SQLException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
}
}
});
}
return kucunb;
}
/**
* This method initializes goushu
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getGoushu() {
if (goushu == null) {
goushu = new JMenuItem();
goushu.setText("查看购书信息");
goushu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
try {
LookUp lp = new LookUp("购书");
} catch (ClassNotFoundException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (SQLException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
}
}
});
}
return goushu;
}
/**
* This method initializes b_inf
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getB_inf() {
if (b_inf == null) {
b_inf = new JMenuItem();
b_inf.setText("\u67e5\u770b\u4e00\u89c8\u8868");
b_inf.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
try {
LookUp lp = new LookUp("书_inf");
} catch (ClassNotFoundException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (SQLException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
}
}
});
}
return b_inf;
}
/**
* This method initializes outkucun
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getOutkucun() {
if (outkucun == null) {
outkucun = new JMenuItem();
outkucun.setText("\u5bfc\u51fa\u5e93\u5b58\u8868");
outkucun.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
try {
Db_excel ex = new Db_excel("库存");
} catch (RowsExceededException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (WriteException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (ClassNotFoundException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (SQLException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (IOException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
}
}
});
}
return outkucun;
}
/**
* This method initializes outb_inf
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getOutb_inf() {
if (outb_inf == null) {
outb_inf = new JMenuItem();
outb_inf.setText("\u5bfc\u51fa\u4e00\u89c8\u8868");
outb_inf.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
try {
Db_excel ex = new Db_excel("书_inf");
} catch (RowsExceededException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (WriteException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (ClassNotFoundException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (SQLException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (IOException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
}
}
});
}
return outb_inf;
}
/**
* This method initializes outgoushu
*
* @return javax.swing.JMenuItem
*/
private JMenuItem getOutgoushu() {
if (outgoushu == null) {
outgoushu = new JMenuItem();
outgoushu.setText("导出购书表");
outgoushu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
try {
Db_excel ex = new Db_excel("购书");
} catch (RowsExceededException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (WriteException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (ClassNotFoundException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (SQLException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
} catch (IOException e1) {
// TODO 自动生成 catch 块
e1.printStackTrace();
}
}
});
}
return outgoushu;
}
} // @jve:decl-index=0:visual-constraint="214,30"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -