How do I do Expo class in JCreator Applet?
I have a a trouble making an Expo in an applet in Jcreator.
Any suggestions?
This is my Java code
/**
* @(#)Lab01.java
*
* //trying to make an applet using Expo
* @author
* @v
*/
import java.awt.*;
import java.applet.*;
public class Lab01 extends Applet
{
public void paint(Graphics g)
{
Expo.drawPixel(g,100,200);
Expo.drawPixel(g,200,200);
Expo.drawPixel(g,300,200);
Expo.drawPixel(g,400,200);
Expo.drawPixel(g,500,200);
Expo.drawPixel(g,600,200);
Expo.drawPixel(g,700,200);
Expo.drawPixel(g,800,200);
Expo.drawPixel(g,900,200);
//nearly invisible points
Expo.drawPoint(g,100,400);
Expo.drawPoint(g,200,400);
Expo.drawPoint(g,300,400);
Expo.drawPoint(g,400,400);
Expo.drawPoint(g,500,400);
Expo.drawPoint(g,600,400);
Expo.drawPoint(g,700,400);
Expo.drawPoint(g,800,400);
Expo.drawPoint(g,900,400);
//visible points
}
}
Html source
<html>
<head>
</head>
<body bgcolor="000000">
<center>
<applet
code = "Lab01.class"
width = "1000"
height = "650"
>
</applet>
</center>
</body>
</html>
Re: How do I do Expo class in JCreator Applet?
Pardon?
What is your problem?
Any errors?
Exceptions?
Re: How do I do Expo class in JCreator Applet?
what the heck is Expo (external jar, a class or ...)?
Re: How do I do Expo class in JCreator Applet?
Re: How do I do Expo class in JCreator Applet?
Quote:
Originally Posted by
Tolls
Pardon?
What is your problem?
Any errors?
Exceptions?
When i compile the java file in to .class and execute the html file, the applet window says Applet not initialized.
Re: How do I do Expo class in JCreator Applet?
But your question makes no sense.
What does "making an Expo" mean?
What is your problem?
What errors etc are you getting?
(Where's that "How to ask questions" link when you need it?)
Re: How do I do Expo class in JCreator Applet?
Quote:
Originally Posted by
Tolls
But your question makes no sense.
What does "making an Expo" mean?
What is your problem?
What errors etc are you getting?
(Where's that "How to ask questions" link when you need it?)
i'm sorry if i'm not stating things clearly.
I never worked with computers before so.
The Expo class is the user-defined class.
What I'm trying to do is to make some points in the Applet, but nothing shows up, and i can't find the errors.
The build output for java file says "Error: Main method not found in class Lab01, please define the main method as:
public static void main(String[] args)"
Re: How do I do Expo class in JCreator Applet?
the class Lab01 extends the class Applet so this class doesn't need a main() method!
Re: How do I do Expo class in JCreator Applet?
Quote:
Originally Posted by
j2me64
the class Lab01 extends the class Applet so this class doesn't need a main() method!
but to start the class you must use the appletviewer called with your html-file or by opening your html-file in a browser.
Re: How do I do Expo class in JCreator Applet?