need to get birds on the screen using a separate file tis is what i have for it.
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.FileDialog;
import java.io.*;
import java.util.Scanner;
public class MyWorld extends World
{
/**
* Constructor for objects of class MyWorld.
*
*/
public MyWorld()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(800, 600, 1);
prepare();
}
public void prepare()
{
CircleMeter circlemeter = new CircleMeter(50,90);
addObject(circlemeter,20,580);
RectangleMeter rectanglemeter = new RectangleMeter(100);
addObject(rectanglemeter, 10,500);
}
/**
* act - do whatever a MyWorld is supposed to do. (needs a better comment)
*/
public void act()
{
if (Greenfoot.isKeyDown("l")==true)
{
FileDialog fd = null;
fd = new FileDialog (fd , "Open bird file" , FileDialog.LOAD);
//fd.setVisable(true);
String fname = fd.getDirectory() + fd.getFile();
File birdFile = new File (fname);
Scanner birdReader = null;
try
{
birdReader = new Scanner(birdFile);
}
catch (IOException ioe)
{
System.out.println("no file found:" + fname);
}
}
}
}

