Java Reference
In-Depth Information
Figure 9-4. The BD-J software stack
Listing 9-3 shows the same Hello Xlet example, this time written using the HAVi
classes provided as part of the BD-J stack.
Note Access to the BD-J stack is limited to developers actually developing Blu-ray content; typically, you
need to obtain a license to a Blu-ray authoring environment that supports BD-J development.
Listing 9-3. Hello Xlet Written Using the HAVi Window Toolkit Classes
package com.apress.rischpater.HelloHaviXlet;
import java.awt.*;
import org.havi.ui.*;
import javax.microedition.xlet.*;
public class HelloHaviXlet extends Component implements Xlet {
private HScene scene;
public void initXlet(XletContext context)
throws XletStateChangeException {
scene=HSceneFactory.getInstance().getBestScene(new HSceneTemplate());
scene.add(this);
}
Search WWH ::




Custom Search