Jump to content

[SOLVED] Error while adding EditLine as Child


photo

Recommended Posts

Hello,

 

Before posting the issue, I would like to say that I tried searching the document & samples, but didn't finding any help out of it.

 

The issue I am facing is that when I create a WidgetEditLine object and try to add it to VBox object, I am getting an error which I am unable to solve. It might be simple mistake but didn't find any leads to fix it. Attached is the screenshot of the error.

 

Gui gui = engine.getGui();

 

VBox vBox = new VBox(8, 8);

addChild(vBox, ALIGN_EXPAND);

vBox.addChild(new Label("Date:"), ALIGN_RIGHT);

 

WidgetEditLine dateDialog =

 

new WidgetEditLine(gui);

 

vBox.addChild(dateDialog, ALIGN_EXPAND);-------------->This is where I am getting error

 

Please check where I am going wrong,

 

Thanks

post-694-0-73610100-1347353672_thumb.png

Link to comment
×
×
  • Create New...