Added temporary window for testing the GUI.
This commit is contained in:
parent
97b8325b6f
commit
046621f48d
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue