This is still an "SWT vs. Swing" article. Every section contains a "SWT does this ... but Swing does that ..." sentence. Does the Wikipedia page for Swing con
| This is the talk page for discussing improvements to the Standard Widget Toolkit article. This is not a forum for general discussion of the subject of the article. |
Article policies
|
| Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
| This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
This is still an "SWT vs. Swing" article. Every section contains a "SWT does this ... but Swing does that ..." sentence. Does the Wikipedia page for Swing contain a reference to SWT in every paragraph and a description of what Swing is not?
There are many factual errors. Erich Gamma did not design SWT. Ports to new platforms for SWT take longer because Sun must first port Java to the platform before an SWT port can begin. In the process of the port, AWT faces exactly the same porting issues as SWT and must be recoded to call the new GUI API for the platform. Swing cannot run without AWT, which must be ported.
James Gosling is a Sun Employee and hopelessly bias against the SWT. Sun has waged a media battle against Eclipse (and SWT) for some time now and James Gosling has been part of it. The equivalent battle has not been waged by Eclipse.org, IBM or any other company.
The API of SWT is not based on Windows. For example, the Windows TreeView widget is programmed using SendMessage(), TVM_INSERTITEM and other win32 concepts. None of this appears in the SWT API.
SWT has been ported to Windows WPF.
64.230.72.198 11:59, 20 June 2007 (UTC)asdf
Why does the SWT page contain "criticisms of SWT" when the Swing page does not? As I pointed out below, there is FUD surrounding performance on non-Windows platforms. The Swing page does not contain FUD about "Swing is slow", should it?
There is also FUD about SWT being slow on non-Windows platforms and problems on the Mac. This was part of a marketing attack from the NetBeans group inside of Sun. The criticism that SWT does not interoperate with AWT/Swing on the Mac is particularly unfair. It could equally be said that AWT/Swing doesn't interoperate with SWT (or wxWindows or Avalon on Windows for that matter).
It would be an advantage for the understanding of the development of Swing and SWT to have some dates or years, the artikle does not gve any date. Since when does Swing and SWT exist, launch year for each major release?
Martinalex
The article should say what the other two are. -- Tarquin 16:56, 15 Jun 2005 (UTC)
There is way too much discussion about the Swing/SWT snit and not nearly enough about the architecture, design, and capabilities of SWT. What is it, what does it do, why does it matter? This article seems written to appeal more to the "SWT isn't Swing" evangelists/trolls. -- Invalidname Aug 7 2005.
Isn't it spelled 'favor' or 'favour'? (Answer: 'favour' is British English and seems to be the Wikipedia standard)
This article is very dissapointing. I cam here to learn about SWT, no to listen to a debate over its relative merits with Swing. Anon Apr 7 2006.
The bug report about SWT being slow on non-Windows platforms is really about Eclipse being slow. Azureus, RSSOwl and other SWT applications don't have this problem. SWT is not Eclipse.
By all means, break out the "Swing vs SWT" part. Also, "SmallTalk" is "Smalltalk" and Erich Gamma didn't design SWT. Have you looked at the source code? Yetch! Despite the fact that Gosling is the designer of Java, his comments about SWT resembling the win32 API and other things he said are dead wrong. Again, go look at the SWT API and source and the win32 API in the MSDN and you decide. He is clearly a bias source due to his position at Sun.
There are no such thing as conclusive benchmarks when an API is large. Also, it is difficult to get write benchmarks from UI code. For example, Swing queues repaints for later so some benchmarks are meaningless. In the case of SWT, it runs on so many different platforms (more than Swing if you count Photon), you are benchmarking the operating systems. For every person who says, "SWT is slow on x platform", you can find another that has no problem. In any case, they are all talking about Eclipse which is a huge pile of multi-threaded Java code, not SWT applications.
BTW, the father of SWT is Steve Northover, not Erich Gamma.
Why does "Simplicity" appear in both the "Advantages of SWT" and the "Disadvantages of SWT" section? Just where should it go? 16:03, 26 April 2006 (EDT)
Page repeats itself in many places (apart from describing something as advantage and disadvantage which is ok, but should be illustrated in a less lame way than just copy paste..). I think the proposed splitting to a versus would help this situation. --Nkour 01:10, 29 May 2006 (UTC)
It should be emphasized in the rewrite that manual deallocation of resources using dispose() is only required for SOME types of SWT objects, like fonts and colours.
More Slashdot on SWT http://developers.slashdot.org/article.pl?sid=06/05/11/1552234 . Please go and read all the discussion over Gosling and SWT. He is claiming that only runs on Windows (which is false) and spreading FUD. There are also posts from people claiming they have no problems with the speed of either Eclipse or SWT on non-Windows.
Why does the SWT article contain 'Advantages and disadvantages of SWT' when the Swing one does not contain 'Advantages and disadvantages of Swing'? There are plenty of legitimate disadvantages to running an emulated widget toolkit like Swing that could be discussed in the Swing article but are not. This shows a bias towards Swing. All material that compares the two toolkits should be moved out to another article SWT vs Swing.
sample code is missing. Swing has it
There is a lot of repetition in this article between the overview and "Introduction to SWT". A lot of repetition is present in this article between the overview and "Introduction to SWT". There should be less repetition between the overview and "Introduction to SWT".
Hello! The "Positive and negative criticisms of SWT" section and any discussion of SWT vs Swing need to be moved out. It show a bias in favour of Swing. Why doesn't the Swing wikipedia article contain the 'Positive and negative criticisms of Swing'? Either remove it or add the equivalent section to the Swing entry.
* Swing memory use can be pretty bad; believed to be an artifact of its use of nested classes for callbacks (for which we need citations) * Swings complete emulation of the native platform gui can lead to a lag between a new OS release and swing apps looking good in it. Examples: XP, vista. Wherease SWT may adapt faster because it uses more native code.
There's a fair bit of politics in these discussions too; the IBM/Sun battle for dominance of Java developers comes into it. One nice thing about SWT here is that its been open for longer; open source Java implementations like Kaffe/classpath dont have to reimplement SWT the way they do with swing; they just run SWT as is. —The preceding unsigned comment was added by SteveLoughran (talk • contribs) 18:25, 10 February 2007 (UTC).
Let's see:
I'll try to get started on this. First step will be to delete about half of it, I think. Chris Cunningham 00:17, 6 September 2006 (UTC)
Way, way better. My only complaint is that James Gosling, Sun employee and vocal supporter of NetBeans (the competition for Eclipse), is hopelessly bias when he makes statements about SWT or Eclipse. Sun is currently locked in a marketing battle with Eclipse.org (and possibly IBM), attempting to aggressively push NetBeans on Java developers (see any of the keynotes by Sun employees from this year's JavaOne, including James Goslings). I think James Gosling might even be directly involved with NetBeans (director in charge of tools at Sun).
The term "J2SE" was not created until JDK 1.2 and so cannot be used to refer to earlier versions. The use of the term "J2SE 1.0" is not a valid terminology since "J2" refers to "Java 2" which is, by definition, JDK 1.2 or later. Both the JDK 1.0 and JDK 1.1.x product lines can only be referred to as "JDK" and not as "J2SE".
For reference see http://java.sun.com/j2se/codenames.html
The term "J2SE 1.0" should always be rewritten as "JDK 1.0". The term "J2SE 1.1.x" should always be rewritten as "JDK 1.1.x".
The 11th citation has been misunderstood, IMO. 'SWT has been referred to as a "Write Once, Test Everywhere" solution, similar to those provided by languages such as C.[11]'
In the original page it clearly states AWT is WOTE, doesn't make any reference to SWT, which would be WETE for what I know now.
The problem is I'm not sure, as I'm learning about those technologies now, please check it.
I came to this page curious about when SWT was made, and surprised to see that the history section contained no dates. It does contain a relative ordering with AWT and Swing, but a year would be nice, too. Mbarbier 04:08, 17 October 2007 (UTC)
The image Image:Eclipse-logo.png is used in this article under a claim of fair use, but it does not have an adequate explanation for why it meets the requirements for such images when used here. In particular, for each page the image is used on, it must have an explanation linking to that page which explains why it needs to be used on that page. Please check
This is an automated notice by FairuseBot. For assistance on the image use policy, see Wikipedia:Media copyright questions. --09:13, 9 September 2008 (UTC)
The outside of java section seems to be a mostly word-word advertisement for PureNative software, specifically this page: http://www.pure-native.com/swtcpp/swtcamp.html
Should it be deleted?
GotPSP (talk) 03:48, 23 November 2008 (UTC)
The cited article about SWT vs Swing performance is too old. It covers Java versions 1.4/5 and Swing's performance has been improved significantly after that. SWT could also be faster now. Also underlying platforms such as Wayland vs X, GTK 3 & Clutter may affect the results. Overall, the comparison doesn't reflect the current state anymore. 2001:2003:F638:A000:BE5F:F4FF:FE76:8CA0 (talk) 06:16, 28 January 2016 (UTC)
Also citation http://developers.slashdot.org/article.pl?sid=04/01/09/1340223 number 8, regarding SWT performance on non win32. Refers to a news site page, where SWT is mentioned in the comments, and one comment has the opinion that non win32 SWT has bad performance. Other comments on that same page argue in favor of SWT's performance. Hardly reliable. 90.211.151.100 (talk) 15:35, 15 March 2016 (UTC)
$ java -cp /Users/Desktop/swt-4.6.3-cocoa-macosx-x86_64/swt.jar:. HelloWorld ***WARNING: Display must be created on main thread due to Cocoa restrictions. Exception in thread "main" org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.widgets.Display.error(Unknown Source) at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source) at org.eclipse.swt.widgets.Display.create(Unknown Source) at org.eclipse.swt.graphics.Device.<init>(Unknown Source) at org.eclipse.swt.widgets.Display.<init>(Unknown Source) at org.eclipse.swt.widgets.Display.<init>(Unknown Source) at HelloWorld.main(HelloWorld.java:8) $ java -version -cp /Users/Desktop/swt-4.6.3-cocoa-macosx-x86_64/swt.jar:. HelloWorld java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode) $
DouglasHeld (talk) 06:40, 19 April 2017 (UTC)
I think on Mac adding the following start-param should help: -XstartOnFirstThread
80.147.182.138 (talk) 12:57, 15 May 2019 (UTC)
Hello fellow Wikipedians,
I have just modified one external link on Standard Widget Toolkit. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.
This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}} (last update: 5 June 2024).
Cheers.—InternetArchiveBot (Report bug) 04:33, 26 July 2017 (UTC)
The following Wikimedia Commons file used on this page or its Wikidata item has been nominated for deletion:
Participate in the deletion discussion at the nomination page. —Community Tech bot (talk) 05:37, 12 September 2022 (UTC)
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.