Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Combining SWT and Swing Control
Combining SWT and Swing Control [message #101545] Tue, 09 August 2005 07:03 Go to next message
Eclipse UserFriend
Originally posted by: davidyoung_2001.yahoo.co.uk

First let me say I'm new to Java, so I apologise in advance if what I'm
asking is obvious......

I'm trying to build an application with the Visual Editor with both a Menu
(Swing Controls) and a Toolbar (SWT Controls) but the VE does not let me -
is it possible to have both sets of controls within the same application -
if not how do I go about doing the above
Re: Combining SWT and Swing Control [message #101613 is a reply to message #101545] Tue, 09 August 2005 13:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.gmail.com

David,

Generally it's a bad idea to mix Swing and SWT unless you have a serious
requirement to do so. The means to mix the two (SWT_AWT bridge) is
pretty much a hack and can have unexpected behaviors. The VE does not
support mixing the two widget systems directly. You'd be much better
off picking either Swing or SWT and writing your entire app using one
widget set.

Hope this helps,
- Jeff

David wrote:
> First let me say I'm new to Java, so I apologise in advance if what I'm
> asking is obvious......
>
> I'm trying to build an application with the Visual Editor with both a
> Menu (Swing Controls) and a Toolbar (SWT Controls) but the VE does not
> let me - is it possible to have both sets of controls within the same
> application - if not how do I go about doing the above
>
Re: Combining SWT and Swing Control [message #101842 is a reply to message #101545] Wed, 10 August 2005 13:07 Go to previous message
Eclipse UserFriend
Originally posted by: renjitheclipse.yahoo.com

Please check this link, It has very good examples

http://www.java2s.com/ExampleCode/SWT-JFace-Eclipse/CatalogS WT-JFace-Eclipse.htm
Re: Combining SWT and Swing Control [message #610192 is a reply to message #101545] Tue, 09 August 2005 13:03 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
David,

Generally it's a bad idea to mix Swing and SWT unless you have a serious
requirement to do so. The means to mix the two (SWT_AWT bridge) is
pretty much a hack and can have unexpected behaviors. The VE does not
support mixing the two widget systems directly. You'd be much better
off picking either Swing or SWT and writing your entire app using one
widget set.

Hope this helps,
- Jeff

David wrote:
> First let me say I'm new to Java, so I apologise in advance if what I'm
> asking is obvious......
>
> I'm trying to build an application with the Visual Editor with both a
> Menu (Swing Controls) and a Toolbar (SWT Controls) but the VE does not
> let me - is it possible to have both sets of controls within the same
> application - if not how do I go about doing the above
>
Re: Combining SWT and Swing Control [message #610223 is a reply to message #101545] Wed, 10 August 2005 13:07 Go to previous message
Eclipse UserFriend
Originally posted by: renjitheclipse.yahoo.com

Please check this link, It has very good examples

http://www.java2s.com/ExampleCode/SWT-JFace-Eclipse/CatalogS WT-JFace-Eclipse.htm
Previous Topic:Table
Next Topic:VE Internal
Goto Forum:
  


Current Time: Thu Apr 25 14:17:11 GMT 2024

Powered by FUDForum. Page generated in 0.03006 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top