japplet

Java - Pause initComponents from running?

。_饼干妹妹 提交于 2019-12-24 03:34:32
问题 I am building a JApplet in NetBeans. When the application is initially ran it needs to download some files onto local PC first for it to properly work. Once it is done downloading these files than the GUI should be drawn. How do I pause the JApplet from drawing the GUI until the files are downloaded? Please also note I will need to show the user another GUI that indicates that files are being downloaded, what is the best way of solving this problem? Thank you. @Override public void init() { /

Unknown publishers applet browser, Signing jar

半腔热情 提交于 2019-12-23 17:56:36
问题 i can't understand where problem lies to run applet in browser when deploy my project accordind to http://docs.oracle.com/javase/tutorial/deployment/applet/deployingApplet.html http://www.coderanch.com/t/258307/Applets/java/Signing-JAR-certificate jar manifest code Permissions: all-permisisons Application-Name:------------ Butt still error in browser Unknown publishers Security warning ExceptionInInitializerError AccessControlException is problem to signing jar of my project? i use 3rd party

Saving JPanel as image

放肆的年华 提交于 2019-12-23 17:32:54
问题 I am developing an application allow user load an image in a layer. User can draw some picture on another layer and save only the image that user drawn.Here is my code: import java.awt.Dimension; import java.awt.Graphics; import javax.swing.ImageIcon; import javax.swing.JApplet; import javax.swing.JLabel; import javax.swing.JLayeredPane; import javax.swing.JPanel; public class LayerDemo extends JApplet { private JLayeredPane mainLayer; private JPanel layer1; private JPanel layer2; private

Application Error: AccessControlException

守給你的承諾、 提交于 2019-12-22 01:13:33
问题 When I called JApplet class from JSP like this : <jsp:plugin type="applet" code="Class_Name.class" codebase="classes" width="850 height="850"> </jsp:plugin> I got an error: access denied ("java.util.PropertyPermision" "com.sun.media.jai.disableMediaLib" "write") What is the problem? and what can I do to fix it? 来源: https://stackoverflow.com/questions/20066914/application-error-accesscontrolexception

Swing menus Java 7 mac osx

若如初见. 提交于 2019-12-21 05:18:19
问题 I've been testing my Swing application on mac os x which runs on an applet. When I run this applet in the browser, I noticed that the mouse-over on the JMenus/JMenuItems do not work correctly. Here is a small program to reproduce the problem: package com.macosx.tests; import java.applet.Applet; import java.awt.event.*; import java.awt.*; import javax.swing.*; public class Example extends JApplet { JMenuBar bar; JMenu file, edit; JMenuItem new1, save, close; private void doStart() { bar = new

JApplet & KeyListener

女生的网名这么多〃 提交于 2019-12-20 02:45:34
问题 I'm developing an application for my computer science classes . The task is to write a calculator but without using JTextField s or JTextArea s. I've come up with an idea of implementing KeyListener which works nice in both appletviewer and JFrame but doesn't work at all in Google Chrome (and probably other browsers). Here're my code snippets. //- BinaryCalc.java import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; public class BinaryCalc extends

Communicate with the serial port from client web browser.

雨燕双飞 提交于 2019-12-20 02:09:23
问题 In my web application(sencha extjs 5) I have a user requirement to read/write data to the client PC serial port. I am aware of the client browser can not access local machine hardware without installing some binaries on the local machine(Native app, Windows Service, etc..). I have seen the same question is discussed few years back in stackoverflow forums. But I need to know what is the best way of doing this today with the available technologies? 回答1: Well, One way to do this is develop a

Adding image in JApplet

女生的网名这么多〃 提交于 2019-12-19 09:52:48
问题 ImageIcon icon= new ImageIcon("a.gif"); JLabel jLabel1=new JLabel(icon); jLabel1.setVisible(true); card1.add(jLabel1); I am a newbie to Java and I am facing a problem to add image in a panel in applet. My image is in the same folder. My applet is visible without any problem but only image is not displayed. 回答1: public void init() URL imageURL = new URL(getDocumentBase(), "a.gif"); Image image = getImage(imageURL); ImageIcon icon = new ImageIcon(image); // ... The ImageIcon constructor that

Adding image in JApplet

旧巷老猫 提交于 2019-12-19 09:52:15
问题 ImageIcon icon= new ImageIcon("a.gif"); JLabel jLabel1=new JLabel(icon); jLabel1.setVisible(true); card1.add(jLabel1); I am a newbie to Java and I am facing a problem to add image in a panel in applet. My image is in the same folder. My applet is visible without any problem but only image is not displayed. 回答1: public void init() URL imageURL = new URL(getDocumentBase(), "a.gif"); Image image = getImage(imageURL); ImageIcon icon = new ImageIcon(image); // ... The ImageIcon constructor that

Guide on creating a Java Applet , Printing without prompt

好久不见. 提交于 2019-12-19 09:28:26
问题 Well I have created a web-based POS to take order. My question is how do I create a Java-Applet; Shows the HTML page & a Print button Print Order without prompting(no dialogue box) 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