[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Embedding SWT components in SWING/AWT

Dear Matthew,

I'm not able to create a Shell using SWT_AWT.newShell() method. I'm getting this error everytime I'm trying to execute the statement

java.lang.IllegalArgumentException: Argument not valid [peer not created]

Following are the sequence of code

Canvas f = new Canvas();
Display d = new Display();
Shell shell = SWT_AWT.new_Shell(d, f);

Can you please help me with this? A sample will be of great help.

Thanks,

Prasenjit