PanelTest.java



import com.nttdocomo.ui.*;
public class PanelTest extends IApplication {

    public Panel panel;
    public Ticker ticker;
    public ImageLabel label;

    public void start() {
        panel = new Panel();
        panel.setTitle( "お知らせ" );
        Display.setCurrent( panel );
       
        ticker = new Ticker(
        "稚内北星学園大学主催「サマースクール2001」申し込み受付中" );
        ticker.setForeground( Graphics.getColorOfName( Graphics.RED ) );
        panel.add( ticker );

        try {
            MediaImage mi = MediaManager.getImage( "resource:///walk1.gif" );
            mi.use();
            Image image = mi.getImage();
            label = new ImageLabel( image );
        }
        catch( Exception e ){
            System.err.println(e.getMessage());
        }
        panel.add( label );
    }
}