I' am trying to run a java applet via textmate. But when I run it by cmd + R the applet viewer appear and then nothing's happen, after that it crashes.
This is my code :
import java.awt.*; import java.applet.*;
public class SimpleApplet extends Applet { private int height, width; public void init() { height = 50; width = 300; } public void paint(Graphics g) { g.drawString("Hello world", 20, 20); } }
So there are somethings wrong in my code or I need to config somethings ?
On Mar 26, 2011, at 10:32 PM, richdang wrote:
I' am trying to run a java applet via textmate. But when I run it by cmd + R the applet viewer appear and then nothing's happen, after that it crashes.
I tested the code in Dr Java and it works fine, so it must be something with TM.
Do you have the Java Bundle installed? Looking at the Bundle in the Git repository, it appears to have a compile and run command. I don't have the bundle installed; so I can't tell if there is a way to compile and run this in an applet window.
Thank you for your reply, I can run a normal java application via TM but with Java Applet or creating a Java GUI, it doesn't work ! On Sunday, March 27, 2011 at 11:04 PM, Mark Jackson wrote:
On Mar 26, 2011, at 10:32 PM, richdang wrote:
I' am trying to run a java applet via textmate. But when I run it by cmd + R the applet viewer appear and then nothing's happen, after that it crashes.
I tested the code in Dr Java and it works fine, so it must be something with TM.
Do you have the Java Bundle installed? Looking at the Bundle in the Git repository, it appears to have a compile and run command. I don't have the bundle installed; so I can't tell if there is a way to compile and run this in an applet window.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate