On 2013-02-13 16:03 +0800, Shigio YAMAGUCHI wrote:
> Would you please cooperate to leave useful information?
> Thank you in advance.
>
> Shigio

The question is why BLACK, BLUE etc. (declarations) are not recognised
as definitions but other symbols.

The relevant java snippet is as follows:

////////////////////////////////////////////////////////////
/**
 *  <i>Standard draw</i>. This class provides a basic capability for
 *  creating drawings with your programs. It uses a simple graphics model that
 *  allows you to create drawings consisting of points, lines, and curves
 *  in a window on your computer and to save the drawings to a file.
 *  <p>
 *  For additional documentation, see <a 
href="http://introcs.cs.princeton.edu/15inout";>Section 1.5</a> of
 *  <i>Introduction to Programming in Java: An Interdisciplinary Approach</i> 
by Robert Sedgewick and Kevin Wayne.
 */
public final class StdDraw implements ActionListener, MouseListener, 
MouseMotionListener, KeyListener {

    // pre-defined colors
    public static final Color BLACK      = Color.BLACK;
    public static final Color BLUE       = Color.BLUE;
    public static final Color CYAN       = Color.CYAN;
    public static final Color DARK_GRAY  = Color.DARK_GRAY;
    public static final Color GRAY       = Color.GRAY;
    public static final Color GREEN      = Color.GREEN;
    public static final Color LIGHT_GRAY = Color.LIGHT_GRAY;
    public static final Color MAGENTA    = Color.MAGENTA;
    public static final Color ORANGE     = Color.ORANGE;
    public static final Color PINK       = Color.PINK;
    public static final Color RED        = Color.RED;
    public static final Color WHITE      = Color.WHITE;
    public static final Color YELLOW     = Color.YELLOW;

    ......
}
////////////////////////////////////////////////////////////

-- 
Sent from my Emacs


_______________________________________________
Help-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-global

Reply via email to