my dog learned polymorphism*
The moose likes Java in General and the fly likes JAVA architecture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JAVA architecture " Watch "JAVA architecture " New topic

JAVA architecture


Joined: Jan 27, 2001
Posts: 12

Dear friend,
I am asking you to some basic JAVA architecture qustion
The question is ,
I am designing an applet ,where i want to display an message in applet say �hello� ,so i use Graphics class to display the string ,the code is
Line1:Graphics g=getGraphics();
Public void paint(Graphics g)
my question is-�how it is possible without creating instance of Graphics class to call a method drawString() ,people say that the reference to the Graphics class is produced if it�s true please explain me how the refrence is passed and how it is working�

Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Please don't post the same question to more than one forum. You obviously read more than one forum, and so do people who might know the answer to your question. All answers to the one in "Java in General, (beginner)" please.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
It is sorta covered in the JavaRanch Style Guide.
subject: JAVA architecture
Similar Threads
viewing applet in IE
Paint() method... Easy Question
JAVA architecture
Simple question on Applet
Why comment in applet java program