Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-30-2007, 01:04 PM
Member
 
Join Date: Dec 2007
Posts: 4
vinaytvijayan is on a distinguished road
Iam new in Java Please explain to me
import java.awt.*;import java.applet.*;
import java.applet.*;
public class LineRect extends Applet
{public void init(){

}


public void paint(Graphics g)
{
g.drawLine(10,10,50,50);
g.drawRect(10,60,40,30);




}

<APPLET
CODE = LineRect.class
WIDTH = 250
HEIGHT = 200>
</APPLET>
Is init a must for Java Applets If so what should be the paarameters that i have to give How can I run this program Please help me...........
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-30-2007, 01:35 PM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
When you're new, there's nothing better than reading the directions, thus everything you need is here.

Please don't double post. Please don't beg.
Please do use proper English. please do use code tags.

Follow these simple rules, among the many - and you just may be taken seriously.

Last edited by CaptainMorgan : 12-30-2007 at 01:38 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Can anyone explain what this means Clemenza1983 New To Java 6 02-16-2008 05:13 AM
Can anyone briefy explain what does that mean? Clemenza1983 New To Java 6 01-29-2008 09:05 AM
May someone explain what these things means in Java quickfingers New To Java 2 01-26-2008 07:45 AM
need to explain this code reached New To Java 3 12-04-2007 12:01 AM


All times are GMT +3. The time now is 02:24 PM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org