创建 Java Applet 指南,无需提示即可打印 [英] Guide on creating a Java Applet , Printing without prompt

查看:26
本文介绍了创建 Java Applet 指南,无需提示即可打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我创建了一个基于网络的 POS 来接受订单.我的问题是如何创建 Java-Applet;

Well I have created a web-based POS to take order. My question is how do I create a Java-Applet;

  1. 显示 HTML 页面 &打印按钮
  2. 无提示打印订单(无对话框)

附加信息:它是这样工作的.服务员会在电脑(POS)上输入订单,当他们点击打印时,它会检测厨房打印机的IP地址,然后在没有提示的情况下立即打印订单.我实际上正在寻找可以帮助我开始的参考/指南.任何建议也会有所帮助.谢谢

Additional Information : It works like this. The waiter will key the orders from the computer(POS) , when they hit print, it will detect the I.P address of the printer in the kitchen,then print out the orders immediately without prompt. I am actually looking for reference/guide which can help me start on. Any Advise will be helpful as well. Thank you

推荐答案

出于安全原因,您不能这样做.如果可以的话,当您访问不道德的网站时,小程序就会因打印 10 多页的特别优惠"而臭名昭著.

You cannot do that for security reasons. If you could, applets would already have become notorious for printing 10+ pages of 'special offers' when you visit unscrupulous web sites.

OTOH,如果客户端愿意在小程序启动时接受一个提示,您可以对代码进行数字签名.

OTOH, if the client is willing to accept one prompt at applet start-up, you could digitally sign the code.

这篇关于创建 Java Applet 指南,无需提示即可打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆