|Advice on getting started? [message #573096]
||Fri, 12 October 2007 20:18
| Chris Kwon Lewis
Registered: July 2009
I thought it would be best to ask a few questions before diving into my |
project of combining swt and swing.
First, thanks for that snippet you posted Gordon. I noticed you used
"EmbeddedSwingComposite" like an object. Currently it is an abstract
class, do you recommend making it non abstract and just putting in the
code I want for createSwingComponent() to suit my own program?
here is a screen shot of how my program looks currently:
The part that is labeled "canvas" is where I will need to put the swing
part. The swing I will be using is a JComponent when it comes down to it
after all the extending.
NetCanvas(My file) extends PCanvas(Piccolo)
PCanvas(Piccolo) extends JComponent (swing)
So as of now, I'm thinking:
1)Use a swt component to hold the JComponent (NetCanvas) in it
2)Bring your examples folder into my workspace to use as helper classes
3)Making the EmbeddedSwingComposite non abstract and putting my code
Does that sound about right? Also I notice James submitted some
suggestions, do I need to fix anything major to the sample code as of
Also I'm still a little unclear on the things I need to schedule
individually for swing and swt. What type of general things need to be
scheduled by me?
Any help or insight would be greatly appreciated. Thanks
Powered by FUDForum
. Page generated in 0.04017 seconds