[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
|
- From: prasenjit.d@xxxxxxx (Prasenjit)
- Date: Mon, 6 Aug 2007 08:25:46 +0000 (UTC)
- Newsgroups: eclipse.platform.swt
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
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