前台营业系统:根据不同业态模式有包括:开单、点菜、结算、折扣、赠送、促销、来电订餐、消费查询、收销查询、交班功能。要求用Java技术实现前文所述“前台营业系统”,你可以使用的技术形式包括:
①基于SWT、JFace、Eclipse RCP图形化应用程序
②基于JDBC、Hibernate的数据库应用程序
③基于Struts、Spring MVC的Web应用程序
④基于J2ME或Android的手机应用程序
①基于SWT、JFace、Eclipse RCP图形化应用程序
②基于JDBC、Hibernate的数据库应用程序
③基于Struts、Spring MVC的Web应用程序
④基于J2ME或Android的手机应用程序
解决方案 »
- 求一本好的适合初学者的jsp的书,内容最好是比较新的,像那些内容比较过时的就不要推荐了,谢谢。
- 交易系统故障,不明原因 "jdbc事务,存储过程" 偶尔会有一些sql语句没执行,一直没找到原因
- 在jsp 页面用el表达式取出的值怎样应用去掉空格函数去空格
- axis2客户端调用异常
- 谁给我解释下啊
- JAVA能实现WORD的控制吗?
- 利用UDP实现TCP 的功能
- JDBC连mysql出错 高手请进
- 高分求解,不够再加!
- 加载ssh项目,tomcat启动报错,求大神赐教!!必高分送上
- 各位大虾求助,在myeclipse 8.5中新建立一个web项目.......
- 请教关于java的synchronized问题。
import java.awt.BorderLayout;
import java.awt.Graphics;
import java.awt.GridBagLayout;
import java.awt.Image;
import java.awt.TextField;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Calendar;import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;import project.action.frameAction.LoginAction;
import project.view.common.CenterWindow;
import project.view.common.GBC;
import project.view.common.LogWriter;
import project.vo.LoginInfoVo;/**
* 登录界面
*
* @author MS
*
*/
public class LoginFrame extends JFrame {
private JPanel infoPanel, btnPanel;
// 帐号和密码的输入框
public static TextField nameTxt, pwdTxt; private static LoginFrame login; /**
* @param args
*/
public static void main(String[] args) {
try {
UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel");
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (UnsupportedLookAndFeelException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
LoginFrame.getInstance().setVisible(true);
} private LoginFrame() {
this.setTitle("登录");
TJPanel jp = new TJPanel();
jp.setLayout(new BorderLayout());
jp.add(buildInfoPanel(), BorderLayout.NORTH);
jp.add(buildBtnPanel());
this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
this.add(jp);
this.setSize(jp.getWidth(), jp.getHeight());
setLocationRelativeTo(null);
CenterWindow.centerWindow(this);
// this.setUndecorated(true);
this.addWindowListener(new LoginAction(this));
}
/*
* 单子设计模式
*/
public static LoginFrame getInstance() {
if (login == null) {
login = new LoginFrame();
}
return login;
} public void init() {
buildTxt();
} public JButton buildBtn(String name) {
JButton jb = new JButton(name);
jb.addActionListener(new LoginAction(this));
return jb;
} public JLabel buildLabel(String name) {
JLabel lab = new JLabel(name);
return lab;
} public void buildTxt() {
nameTxt = new TextField(10);
pwdTxt = new TextField(10);
// 将输入的密码显示为 '*'
pwdTxt.setEchoChar('*');
} public JPanel buildInfoPanel() {
if (infoPanel == null) {
infoPanel = new JPanel();
infoPanel.setLayout(new GridBagLayout());
init();
infoPanel.add(buildLabel("帐号"), new GBC(0, 0).setFill(GBC.HORIZONTAL));
infoPanel.add(nameTxt, new GBC(1, 0).setFill(GBC.HORIZONTAL).setInset(5));
infoPanel.add(buildLabel("密码"), new GBC(0, 1).setFill(GBC.HORIZONTAL));
infoPanel.add(pwdTxt, new GBC(1, 1).setFill(GBC.HORIZONTAL).setInset(5));
infoPanel.setBorder(BorderFactory.createTitledBorder("登录信息"));
}
return infoPanel;
} public JPanel buildBtnPanel() {
if (btnPanel == null) {
btnPanel = new JPanel();
btnPanel.add(buildBtn("登录"));
btnPanel.add(buildBtn("退出"));
}
return btnPanel;
}
/*
* 获得界面的输入信息
*/
public LoginInfoVo getInputInfo() {
String log_account = nameTxt.getText().trim();
String log_pwd = pwdTxt.getText();
return new LoginInfoVo(log_account, log_pwd);
}
}/**
* 为登录界面添加背景图片
* @author MS
*
*/
class TJPanel extends JPanel {
ImageIcon icon; public TJPanel() {
icon = new ImageIcon("images/back12.jpg");
setSize(icon.getIconWidth(), icon.getIconHeight());
} public void paintComponent(Graphics g) {
super.paintComponent(g);
Image i = icon.getImage();
g.drawImage(i, 0, 0, this);
}
}
这个我可以
③基于Struts、Spring MVC的Web应用程序
这两个没有问题 嘿嘿 这要是我的项目多好啊 现在没有项目做 都闲的有点发疯了