applet

Can I run a webpage-embedded Java Applet on the iPhone's web browser?

柔情痞子 提交于 2019-12-14 01:28:24
问题 Can I run a Java applet that's been embedded in an or HTML tag on an iPhone? I don't mean as an App but actually through its browser. 回答1: No, as Steve Jobs stated when interviewed about that question in 2007 he answered Java's not worth building in. Nobody uses Java anymore. It's this big heavyweight ball and chain. That's not the truth, but at least you can be sure you can't embed an applet into the browser.. 回答2: No, the iPhone does not support Java inside or outside the browser. If you

Plotting a graph using Java Applet

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-14 01:09:15
问题 I have a problem where I have to draw a graph on an applet using some data in an excel file. I would need to design an applet where I can display the graph and the data on the same applet. I had a hard time writing some code in Java to code some CSVreader and ExcelReader files. Now, I am really stuck in how to take this data and graph it on an applet. I don't know which class/libraries to use for drawing the graph and how to scale it and draw the actual points or designing the applet itself.

Incompatible magic value 1010792557 when trying to run applet embedded in Facelets

青春壹個敷衍的年華 提交于 2019-12-13 20:06:06
问题 I get this error when I access the Facelets page where the applet is embedded, through Glassfish server. Though when I open it simply from my computer it works fine, so the applet is ok. Is it possible to run applets on Glassfish (3.1, JSF 2.0)? Here's how I try: <applet code="test.TestApplet" archive="TestApplet.jar"/> 回答1: That's a typical message of a ClassFormatError. The magic value of a valid Java class is 0xCAFEBABE , which is the first 4 bytes. But you're getting 0x3C3F786D which

Classloader in Applet: Can't access files

℡╲_俬逩灬. 提交于 2019-12-13 19:22:49
问题 I have an application that uses reflection to instantiate code saved in some directory: I create a URLClassLoader that then loads the classes using the URLs provided; this works fine. I tried to port the application to an Applet. For loading text files and images, I changed the code from using relative paths to use getResourceAsStream() which works great. For the class loader, however, I still have an I/O exception (which I also used to get with the text files and images before I changed the

How do I close a browser window that was opened by Java Web Start

点点圈 提交于 2019-12-13 19:06:29
问题 I have a java app which is running as an applet. Since plugin support is going away in the browser, we are trying to see how well the applet will run in Java Web Start. However, our app currently opens secondary browser windows using the appletContext.showDocument(URL, target). Java Web Start unfortunately ignores the target, so we are not able to name the window (hence also not able to later close the window). Is there a way, within Web Start, to maintain a handle on all programatically

How to share data between applets in the same web page?

依然范特西╮ 提交于 2019-12-13 15:27:46
问题 I have several applets in the same web page and i would like to share data between them. What is the best solution to do this ? EDIT : Thank you for your responses, I will try to be more specific : I have 3 applets on my web page : first one will download files from the web server second one will be used to modify the files localy third one will send back modified files to the server Each applet will work on the files and I would like to store path, name, and other properties of files in an

Java: getCodeBase() on non-applet application

廉价感情. 提交于 2019-12-13 15:25:03
问题 I'm trying to create a URL to access a local file like so: URL myURL = new URL(getCodeBase(), "somefile.txt"); But it throws a NullPointerException when it attempts getCodeBase(). I'm fairly certain that the reason behind this is because the class file that this code belongs to is not an applet. Is there any way I can get the code base without using an applet? I just want to access a local file without having to put the actual directory in (because when others run the application the

Why does Swing in my Java Applet flicker on fast mouse over?

北城余情 提交于 2019-12-13 15:22:27
问题 I made a Java Applet with some Standard GUI Components on it. I used the MigLayout Manager. If I move the mouse slowly over the various GUI Components everything appears to be fine, but if I move the mouse fast, it flickers. What could make that nasty ugly redraw? (Core 2 Duo 6300, 2GB Ram, Windows XP) 回答1: One thought would be to check your code (and/or the MigLayout code) for unnecessary repaint() operations. Custom UIs and layouts can cause weird problems sometimes... 回答2: you could use

voice recording in Ogg format?

痞子三分冷 提交于 2019-12-13 15:20:28
问题 I have created a voice recorder applet. The output sound file will be .wav format. I want to use a compressed file format like .ogg. I have the .ogg decoder applet and it plays the audio file through streaming. But I need an .ogg encoder to record the voice in .ogg format. Any samples or studies are much appreciated! 回答1: I used the vorbis encoder: http://www.xiph.org/downloads/ 来源: https://stackoverflow.com/questions/1361162/voice-recording-in-ogg-format

is it possible to return some data along with the status word 9000 on selecting an applet in javacard?

情到浓时终转凉″ 提交于 2019-12-13 14:34:47
问题 i was wondering if i could send back some data from the javacard applet when it is selected. since select() method returns a boolean value i don't know how to return data bytes from it. can anyone help me with this? i want the applet to return a simple byte array along with the status word 9000 (which is default for success), when i send the select command to the card. ie, when i send the following command 00A4040006010203040506 i want a response like, 010203049000 (first four bytes are the