Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
Eric Clayberg wrote:Does you app set up a Data Binding realm anywhere? If not, you can certainly get that error.
public class FrontEndLauncher implements Runnable
{
private static UserInterfaceForm f=new UserInterfaceForm();
/**
* @param args
*/
public static void main(String[] args)
{
try
{
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
new FrontEndLauncher().run();
}
catch (Exception e)
{
System.out.println(e);
}
}
@Override
public void run()
{
f.setUser(new User("IHARAC", "PASSWORD"));
f.open();
}
}
public void open()
{
Display display=Display.getDefault();
Realm.runWithDefault(SWTObservables.getRealm(display),new Runnable()
{
public void run()
{
Display display=Display.getDefault();
createContents();
shlVariskDistributed.open();
shlVariskDistributed.layout();
while (!shlVariskDistributed.isDisposed())
{
if (!display.readAndDispatch())
{
display.sleep();
}
}
}
});
}
IanHarac wrote:Following the examples in Eclipsepedia, I modified the main app window's code
Users browsing this forum: Google [Bot] and 2 guests