CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 18

Threaded View

  1. #1
    Join Date
    Dec 2008
    Posts
    17

    [RESOLVED] Can't decipher errors

    I'm trying to create an LED stopwatch GUI but am completely stumped. I have the skeleton code but haven't really been able to do anything with it, and ran into some errors while compiliing:
    Code:
    assig5.java:75: reference to Timer is ambiguous, both class javax.swing.Timer in
     javax.swing and class java.util.Timer in java.util match
            private Timer T;
                    ^
    assig5.java:19: non-static variable this cannot be referenced from a static cont
    ext
            new A5Help(sz, rate);
            ^
    assig5.java:102: reference to Timer is ambiguous, both class javax.swing.Timer i
    n javax.swing and class java.util.Timer in java.util match
                    T = new Timer(rate, this);
                            ^
    3 errors
    I'm new to java, but i took visual basic for 3 years in high school so i understand it conceptually. I just can't physically program too well yet.
    Attached Files Attached Files
    Last edited by jenseits; December 1st, 2008 at 11:32 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured