import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Test here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Test extends Actor
{
/**
* Act - do whatever the Test wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
test();
// Add your action code here.
}
public void test()
{
GreenfootImage gfim = new GreenfootImage(900 ,600);
gfim.setColor(Color.BLUE);
gfim.setFont(new Font("OptimusPrinceps", true, true, 25));
gfim.drawString("ENGLISH",200, 50);
gfim.fillOval(400,25,25,25);
gfim.drawOval(400,25,25,25);
if (Greenfoot.mouseClicked(this))
{
gfim.drawString("Hello, World", 450,50);
}
gfim.drawString("GERMAN",200, 100);
gfim.fillOval(400,75,25,25);
gfim.drawOval(400,75,25,25);
if (Greenfoot.mouseClicked(this))
{
gfim.drawString("Hi, Welt", 450,100);
}
gfim.drawString("JAPANESE",200, 150);
gfim.fillOval(400,125,25,25);
gfim.drawOval(400,125,25,25);
if (Greenfoot.mouseClicked(this))
{
gfim.drawString("こんにちは、世界よ", 450,150);
}
setImage(gfim);
}
}

