[1131] in java-interest

home help back first fref pref prev next nref lref last post

Which is the best way to find the class of a method?

daemon@ATHENA.MIT.EDU (Edith Au)
Mon Aug 21 23:15:49 1995

To: java-interest@java.sun.com
Date: Mon, 21 Aug 1995 17:47:55 -0400 (EDT)
From: Edith Au <edith@pencom.com>

Hi there,

  I am new to the OO programming and I am learning it through reading other
people's codes.  I spend a lot of time on finding which class does a method
come from.  For example:

import java.*;
import awt.*;
import browser.*;

class new_class extends Applet implements Runnable
{
.....
public void start()
{
  repaint();
}
....
}

How do I know where repaint come from?  The method is not defined anywhere
in the code.  I checked the API guide and could not find it on any package.
Would it be better if there is a search engine for that?  Given a method
or a variable name, search all packages which has the searching target as a 
method or variable or whatever.

Edith
 
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post