Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Originally posted by Gary Down:
As a newbie to JAva/Swing etc...
I am only just venturing into anything more than the simplest frames wth swing. Now I read comments about swing being dead/dying.
Should anyone new to all this be learning in a different direction other than swing?
What is SWT?
Gary,![]()
Originally posted by Pradeep Bhat:
Author,
I would like to know whether SWT will be included in Core Java API.
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Originally posted by Rob Warner:
Somebody was misleading you; you can develop in SWT using any IDE, or any editor and command line tools. All you need is the SWT java classes and the platform-specific SWT native libraries. The eclipse.org Web site offers these files as a separate download.
HTH
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
IMO, I guess it cannnot be included in Core Java API... Coz the main concept of Java is platform-indepedent, but the SWT package must contain java classes and the platform-specific SWT native libraries. So even though the first requirement(java classes) can contain in Core Java API, the latter requirement(platform-specific SWT native libraries) might be difficult for Sun to make decision to include platform-specific things in its Core Java API...
Originally posted by Pradeep Bhat:
What is wrong in shipping platform specific code with JDK?![]()
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
SWT is the software component that delivers native widget functionality for the Eclipse platform in an operating system independent manner. It is analogous to AWT/Swing in Java with a difference - SWT uses a rich set of native widgets. Even in an ideal situation, industrial strength cross platform widget libraries are very difficult to write and maintain.
Originally posted by Pradeep Bhat:
Why should the user do that?I dont have much knowledge of SWT, so I could be wrong here.
![]()
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Originally posted by Ko Ko Naing:
Because there should be SWT native libraries that is platform-specific...![]()
Originally posted by Steve Gebert:
I have used the Swing components and have not heard of JFrame or SWT.
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Originally posted by Rob Warner:
For those that don't want to learn the SWT API, but yet take advantage of the native-widget benefits, look at The SwingWT Project.
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
I presume that SWT cannot be used in applets, so this another are where Swing is prevalent.
Swing is (in general) faster than AWT
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
I just set the classpath to the SWT.jar that I downloaded and set the DLL library to swt-win32-2136.dll... Then I can run it successfully without spending that much effords...
Originally posted by Ko Ko Naing:
The frame Icon at the top-left is a Windows Icon... Really really like native application...![]()
Originally posted by Alvin chew:
ko ko Naing, can you please specify the step on "set the DLL library" ?
-Djava.library.path=<DirctoryContainingDLL>
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Originally posted by Gregg Bolinger:
And this is important why? Don't most applications use their own Icon anyway? Who cares about the default.
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Originally posted by John Todd:
talking about SWT, I have downloaded swt-win32-2135.zip to try it.
I have created a swing application like (JButton, JLabel ....)
to see the diffs.
but the application still use swing laf !
I am sure I have made something stupid, but I don't know what it
is, can you help me ?
Originally posted by John Todd:
talking about SWT, I have downloaded swt-win32-2135.zip to try it.
I have created a swing application like (JButton, JLabel ....)
to see the diffs.
to run the application, I wrote :
java -cp .;%CLASSPATH%;swt.jar -Djava.library.path=lib MainWindow
(lib contains swt-win32-2135.dll file)
but the application still use swing laf !
I am sure I have made something stupid, but I don't know what it
is, can you help me ?
Originally posted by Rob Warner:
...snip... As an SWT kind of guy, I now find myself in the curious position of defending Swing, but Swing is far from dead IMHO. ...snip...
Originally posted by Rob Warner:
Sun is behind Swing. These reasons alone, I believe, will keep Swing around.
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0