View Single Post
  #1 (permalink)  
Old 06-01-2007, 05:40 PM
srinivasa_v srinivasa_v is offline
Member
 
Join Date: May 2007
Posts: 2
srinivasa_v is on a distinguished road
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
Reply With Quote
Sponsored Links