Search:

Type: Posts; User: JohnRawson

Search: Search took 0.20 seconds.

  1. Replies
    5
    Views
    177

    [SOLVED] Re: Graphics2D Exception

    Herewith relevant code.


    class Jexp3 extends JPanel implements MouseListener
    {
    int mouseX, mouseY;
    int width, height;
    Graphics2D graphics;
    Color color;
    public Jexp3()
  2. Replies
    5
    Views
    177

    [SOLVED] Graphics2D Exception

    Graphics2D graphics;

    graphics.fillOval(x1,y1,x2,y2);



    The .java program compiles with no errors.
    However. when I try to run it I get a long list of exceptions when it comes to the above...
  3. Replies
    5
    Views
    212

    [SOLVED] Re: MouseEventDemo

    Thanks.
    I have learned all about packages.
    It now works fine
  4. Replies
    5
    Views
    212

    [SOLVED] Re: MouseEventDemo

    I compile from the command prompt using the JDK tools.
    I have set the class path.
    I think that I have copied the demo exactly.
    BlankArea.java compiled as did MouseEventDemo.java.
    I come to Java...
  5. Replies
    5
    Views
    212

    [SOLVED] MouseEventDemo

    Oracle's MouseEventDemo.java does not compile.
    I get error message "Cannot find BlankArea class"
    BlankArea class exists in same folder as MouseEventDemo.
    I'm stumped.
Results 1 to 5 of 5