Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Greenfoot.setWorld(new world(Uitleg));

  1. #1
    Junior Member
    Join Date
    Nov 2012
    My Mood
    Thanked 0 Times in 0 Posts

    Default Greenfoot.setWorld(new world(Uitleg));

    Hey everyone,

    This is my button:

    public class Uitleg extends Actor
        public int Uitleg;
        public void act() 
            setUitleg();// Add your action code here.
        public void setUitleg()
            if (Greenfoot.mouseClicked(this))
            Greenfoot.setWorld(new world(Uitleg));

    Whenever i click on it i want it to go to a different world called tutorial..

    I tried Greenfoot.setWorld(new tutorial(Uitleg));

    But that didnt work..


    I made a subclass of world.. but then It gives me an error at the Super(80,80,10)...
    It says INT not found or something

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,455 Times in 2,406 Posts

    Default Re: Greenfoot.setWorld(new world(Uitleg));

    It gives me an error
    Please post the full text of the error message.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Hello World
    By ilovejava in forum Member Introductions
    Replies: 0
    Last Post: December 12th, 2012, 04:56 PM
  2. AS Assignment project - Creating a game in Greenfoot
    By ryan_fagan in forum What's Wrong With My Code?
    Replies: 6
    Last Post: April 5th, 2012, 01:07 PM
  3. Hello World!
    By i_masyhudi in forum Member Introductions
    Replies: 1
    Last Post: July 27th, 2011, 02:50 AM
  4. Hello World
    By av8 in forum Member Introductions
    Replies: 1
    Last Post: June 27th, 2011, 10:05 AM
  5. Hello world!
    By SamirGunic in forum Member Introductions
    Replies: 1
    Last Post: April 14th, 2011, 06:57 AM