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

Threaded View

  1. #1
    Join Date
    Aug 2009

    Smile Cannot see the gui for the SingleLaneBridge java applet example


    Note: To see a clearer version of the question asked below, please go to http://stackoverflow.com/questions/3...applet-example

    I went to the this java site -> http://www.doc.ic.ac.uk/~jnm/book/bo...aneBridge.html and loaded the files in a new project in netbeans 6.8 . I removed the package declaration and put them in the default package of the project. I tried to compile it by right clicking and selecting run(Shift + F6) on the SingleLaneBridge.java file. This program compiled without errors.

    This is what I got :

    see [pqh3k.jpg (18.6 KB)]

    Then I tried another method, which included copying the java files to a folder and compiled them manually using commandLine. Then made an html file and put the reference to the SingleLaneBridge.class file. Still I got a similar grey screen with the buttons. Then I tried again by downloading the pictures and the sound file (Note: All this time images and the sound file were called from the website):

    1)Red car

    2)Blue car


    4)Crash sound file

    Then I put the images in the folder where the notepad files were. The image and sound path(s) was set appropriately in the BridgeCanvas.java file so dont worry about that.

    After this I tried it out in Eclipse as well. But the same gray applet window with buttons showed up.

    I would like to see the cars and bridge in the applet, like in this site -> http://www.doc.ic.ac.uk/~jnm/book/bo...aneBridge.html.

    Thanks for your time.

    Attached Images Attached Images  
    Last edited by btap0644; June 25th, 2010 at 03:21 AM. Reason: Formatted text

Tags for this Thread

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)