1
0
Fork 0

Added temporary window for testing the GUI.

This commit is contained in:
Will07c5 2010-07-16 11:05:00 -07:00
parent 97b8325b6f
commit 046621f48d
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,7 @@ import org.videolan.bdjo.AppCache;
import org.videolan.bdjo.AppEntry;
import org.videolan.bdjo.Bdjo;
import org.videolan.bdjo.ControlCode;
import org.videolan.bdjo.GraphicsResolution;
public class BDJLoader {
public static void Load(String baseDir, Bdjo bdjo, long nativePointer)
@ -43,6 +44,12 @@ public class BDJLoader {
for (AppCache cache : bdjo.getAppCaches())
classLoader.addAppCache(cache);
// start test window
GUIManager gui = GUIManager.getInstance();
GraphicsResolution res = bdjo.getTerminalInfo().getResolution();
gui.setSize(res.getWidth(), res.getHeight());
gui.setVisible(true);
// now load and initialize all the xlets
for (AppEntry entry : bdjo.getAppTable()) {
Class<?> xlet_class = classLoader.loadClass(entry.getInitialClass());