(Sorry for the wrong title of my last message)
>> I saw Landon message about SwingWT.
>>
>> But am I blind or did I miss something ? From the sources I downloaded,
>> SwingWT doesn't implement neither java.awt.Toolkit, nor any java.awt.peer
>> classes. So at this time, this project doesn't implement AWT in the facts
>> (but it remains interesting for the Swing part ;-).
>
> I agree. From their README: "You want to replace all occurrences of
> javax.swing with swingwtx.swing, and java.awt with swingwt.awt. That's it!"
Thank you Tore for your investigation.
It looks like SwingWT team tried to implement a toolkit like SWT did. In
case you don't know how SWT is designed, let me explain my mind : SWT team
chose to implement each SWT component classes differently on each OS,
meaning the methods of these components may be different on each OS ; so
there are Shell, Button, Label... public classes for each system.
On their side, SwingWT seemed to do the same thing by implementing directly
AWT classes on top of SWT, instead of implementing java.awt.Toolkit and
java.awt.peer interfaces. As they couldn't put their classes in java.awt
packages since they are not Sun classes, they chose to put them in
swingwt.awt package !
My idea about implementing AWT for BSD Java 6 port is to create a new AWT
toolkit, with a new subclass of java.awt.Toolkit and new classes
implementing java.awt.peer interfaces with calls to Mac OS X SWT classes.
It's a solution closed to SwingWT so it should be even easier than what I
thought.
> One more related thing is that the swt guys are working on a cocoa
> implementation of swt. The current one is carbon. See
> http://inside-swt.blogspot.com/2007/11/hacking-at-apple.html
Wonderful !
Once an initial AWTToolkitBasedOnSWT will be available, Cocoa programmers
around here will be able to create more easily a new AWTToolkitBasedOnCocoa
by replacing calls to SWT by JNI calls to Cocoa, in classes implementing
java.awt.peer interfaces.
Regards,
--
Emmanuel PUYBARET
Email : email@hidden
Web : http://www.eteks.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden