Advice on getting started? [message #573096] |
Fri, 12 October 2007 20:18 |
Chris Kwon Lewis Messages: 24 Registered: July 2009 |
Junior Member |
|
|
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:
http://www.kingkwon.com/misc/gui.jpg
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.
Basically:
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
for EmbeddedSwingComposite.
3)Making the EmbeddedSwingComposite non abstract and putting my code
into createSwingComponent()
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
right now?
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.03335 seconds