|
New Instance for SWT
Hi
I am getting Instantiation exception:
In my java class i have the code like "runnerClass.newInstance()"
here runnerClass is "SWTRunner". But in my SWTRunner class it is expecting two arguments. There is no default constructor available.
How can i create a instance ? Where i need to write the code, in my class or SWT class? If you need more detail plz reply back.
Below is SWT code:
public class SWTRunner extends org.eclipse.swt.widgets.Composite {
public SWTRunner(Composite parent, int style) {
super(parent, style);
// TODO Auto-generated constructor stub
}
-----
}
Thanks in advance
|