Results 1 to 10 of 10
- 09-23-2011, 04:06 AM #1
Member
- Join Date
- Sep 2011
- Posts
- 14
- Rep Power
- 0
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>Last edited by rpark712; 09-23-2011 at 04:40 AM. Reason: Needed to
- 09-23-2011, 09:34 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: How do I do Expo class in JCreator Applet?
Pardon?
What is your problem?
Any errors?
Exceptions?
- 09-23-2011, 02:46 PM #3
Re: How do I do Expo class in JCreator Applet?
what the heck is Expo (external jar, a class or ...)?
- 09-23-2011, 03:05 PM #4
Member
- Join Date
- Sep 2011
- Posts
- 14
- Rep Power
- 0
Re: How do I do Expo class in JCreator Applet?
The Expo is the class
- 09-23-2011, 03:07 PM #5
Member
- Join Date
- Sep 2011
- Posts
- 14
- Rep Power
- 0
- 09-23-2011, 03:07 PM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
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?)
- 09-23-2011, 03:16 PM #7
Member
- Join Date
- Sep 2011
- Posts
- 14
- Rep Power
- 0
Re: How do I do Expo class in JCreator Applet?
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)"
- 09-23-2011, 03:46 PM #8
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!
- 09-23-2011, 03:53 PM #9
Re: How do I do Expo class in JCreator Applet?
- 09-23-2011, 10:38 PM #10
Member
- Join Date
- Sep 2011
- Posts
- 14
- Rep Power
- 0
Similar Threads
-
JCreator problem; class Exercise1 is public, should be declared in a file named Exerc
By JehanMustafa in forum New To JavaReplies: 1Last Post: 10-08-2010, 02:19 AM -
Blank Applet on JCreator
By mgm2010 in forum New To JavaReplies: 0Last Post: 05-05-2009, 03:21 PM -
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 -
Applet in JCreator
By mgm2010 in forum JCreatorReplies: 0Last Post: 03-02-2009, 02:30 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks