}
protected void init()
{
TwoColumnLayout layout;
super.removeAll();
uiElements.clear();
// ----------------------------------------------------
// get a locale database
// ----------------------------------------------------
try
{
// this.langpack = parent.langpack;
String resource = LANG_FILE_NAME + "_" + idata.localeISO3;
this.langpack = new LocaleDatabase(ResourceManager.getInstance().getInputStream(
resource));
}
catch (Throwable exception)
{
exception.printStackTrace();
}
// ----------------------------------------------------
// read the specifications
// ----------------------------------------------------
try
{
readSpec();
}
catch (Throwable exception)
{
// log the problem
exception.printStackTrace();
}
// ----------------------------------------------------
// Set the topBuffer from the attribute. topBuffer=0 is useful
// if you don't want your panel to be moved up and down during
// dynamic validation (showing and hiding components within the
// same panel)
// ----------------------------------------------------
int topbuff = 25;
try
{
topbuff = Integer.parseInt(spec.getAttribute(TOPBUFFER));
}
catch (Exception ex)
{
}
finally
{
layout = new TwoColumnLayout(10, 5, 30, topbuff, TwoColumnLayout.LEFT);
}
setLayout(layout);
if (!haveSpec)
{