Hello
When expanding the jme - FengGui example on the wiki ( http://www.jmonkeyengine.com/wiki/doku.php?id=simple_fenggui_jme_app )
with a TextArea or some other widgets i get the following exception:
21.01.2007 23:57:43 com.jme.scene.Node attachChild
INFO: Child (The Box) attached to this node (rootNode)
org.lwjgl.opengl.OpenGLException: Invalid value (1281)
at org.lwjgl.opengl.Util.checkGLError(Util.java:56)
at org.lwjgl.opengl.Display.swapBuffers(Display.java:567)
at org.lwjgl.opengl.Display.update(Display.java:583)
at com.jme.renderer.lwjgl.LWJGLRenderer.displayBackBuffer(Unknown Source)
at com.jme.app.BaseGame.start(Unknown Source)
at jmeUtil.FengJME.main(FengJME.java:263)
21.01.2007 23:57:44 com.jme.app.BaseGame start
INFO: Application ending.
other widgets like the MessageBox work well
I'm running on ubuntu 6.10 with jdk 1.5 or 1.6
jme is todays cvs with FengGui 2006-12-31
My customized initGui() method:
protected void initGUI()
{
// Grab a display using an LWJGL binding
// (obviously, since jME uses LWJGL)
disp = new org.fenggui.Display(new org.fenggui.render.lwjgl.LWJGLBinding());
input = new FengJMEInputHandler(disp);
// Create a dialog and set it to some location on the screen
Window frame = new Window();
disp.addWidget(frame);
frame.setX(20);
frame.setY(350);
frame.setSize(200, 100);
frame.setShrinkable(false);
//frame.setExpandable(true);
frame.setTitle("Woehl a Foarb...");
frame.getContentContainer().setLayoutManager(new StaticLayout());
// Create a combobox with some random values in it
// we'll change these values to something more useful later on.
ComboBox<String> list = new ComboBox<String>();
frame.addWidget(list);
list.setSize(150, list.getMinHeight());
list.setShrinkable(false);
list.setX(25);
list.setY(25);
list.addItem("White");
list.addItem("Green");
list.addItem("Blue");
list.addItem("Red");
list.getPopupList().getToggableWidgetGroup().addSelectionChangedListener(new CBListener());
//try to add TextArea here but get OpenGLException
TextArea ta = new TextArea(false);
disp.addWidget(ta);
ta.setText("Hallo Text");
ta.setX(240);
ta.setY(350);
ta.setShrinkable(false);
// Update the display with the newly added components
disp.layout();
}
Any ideas, FengGui'ers ?