Results 1 to 1 of 1
Thread: Applet in JCreator
- 03-02-2009, 02:30 PM #1
Member
- Join Date
- Feb 2009
- Posts
- 20
- Rep Power
- 0
Applet in JCreator
Here is a simple code which works alright and gives the required output in command prompt
import javax.swing.JApplet;
import java.awt.Graphics;
public class LongApplet extends JApplet{
public void paint ( Graphics g){
long x;
x = 2299546L;
g.drawString("The value of x = " + x, 25,25);
//System.out.println("The value of x = " + x);
}
}
2. But when I work this code in JCreator, it gives out the applet saying "Welcome to Java""
3. What is going wrong ??
Similar Threads
-
Applet with JCreator
By baltimore in forum Java AppletsReplies: 2Last Post: 04-18-2009, 12:40 PM -
Applet programs do not work in my JCreator
By java_fun2007 in forum New To JavaReplies: 7Last Post: 04-18-2009, 11:41 AM -
JCreator JDK docs?
By thejerryman in forum JCreatorReplies: 4Last Post: 12-01-2008, 04:31 PM -
About using jcreator
By yuchuang in forum JCreatorReplies: 4Last Post: 11-29-2008, 08:29 PM -
jcreator
By nikhil_solanki015 in forum JCreatorReplies: 2Last Post: 10-28-2008, 07:04 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks