Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1847 > unrolled thread
| Started by | "Daniel Kraft" <daniel.kraft@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:35 +0000 |
| Last post | 2011-04-27 15:35 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.java.gui
AWT versus Swing "Daniel Kraft" <daniel.kraft@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: AWT versus Swing "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: AWT versus Swing "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
| From | "Daniel Kraft" <daniel.kraft@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:35 +0000 |
| Subject | AWT versus Swing |
| Message-ID | <f4ufmh$ba5$1@newsreader2.utanet.at> |
To: comp.lang.java.gui Hi all, I apologize as I believe this could probably be a very common question. But I wasn't able to find *really* what I was looking for searching the internet so far. I've all times used AWT for UIs in Java, despite the fact that all the other world seems to be using Swing. I do not really "need" these fancy Java-look and instead prefer the plain, platform-common look instead; also, I think Swing is really sensible slower than AWT and if your platform already has fast and stable widgets, why not use them? On the other hand, I already read some rumours that AWT will be deprecated somewhere in the future, which I can't believe as Swing is based on AWT, AFAIK. So do you guys have any information/comments/corrections about my assumptions or any real objections against using AWT or are there even others who prefer AWT, too? Yours, Daniel -- Got two Dear-Daniel-Instant Messages by MSN, associate ICQ with stress -- so please use good, old E-MAIL! --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:35 +0000 |
| Message-ID | <c74673l2prf911e256pu22g964kabk8e2o@4ax.com> |
| In reply to | #1847 |
To: comp.lang.java.gui On Fri, 15 Jun 2007 18:45:07 +0000, Daniel Kraft <d@domob.eu> wrote, quoted or indirectly quoted someone who said : >So do you guys have any information/comments/corrections about my >assumptions or any real objections against using AWT or are there even >others who prefer AWT, too? Other than the plainer look, AWT is based on using peer components. That means your program will look and feel different on different platforms. It will have different bugs. I am gradually flipping my old AWT apps to Swing. With Microsoft pushing people toward Vista, they are also pushing out the old MS and Sun Javas. -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:35 +0000 |
| Message-ID | <73c31f865ea4a@uwe> |
| In reply to | #1847 |
To: comp.lang.java.gui Daniel Kraft wrote: .. >I've all times used AWT for UIs in Java, despite the fact that all the >other world seems to be using Swing. I do not really "need" these fancy >Java-look and instead prefer the plain, platform-common look instead; I often call the platform's default PLAF - so the end user can feel mostly at home, while also enjoying the benefits of such GUI components as JTables and JTrees. From the development side, I like the 'throw away simplicity' of JOptionPane, and the ease of developing using GUI components that will render HTML. I code AWT as well, but primarily for applets that must be 1.1 compatible (I write too many of those, it seems). Any 1.2+ project, I would generally use Swing. >also, I think Swing is really sensible slower than AWT .. Is it? Even if Swing components need 'a few microseconds' longer to construct* these sorts of things can mostly be done transparently on a thread in the background. Once constructed and displayed, I find Swing components every bit as fast as AWT, to show, hide or update. * I am not too sure, have not seen/done any benchmarks. >..and if your >platform already has fast and stable widgets, why not use them? Roedy put forward some good reasons, not that Swing and PLAF's are a rock solid solution either (I suspect every API has bugs). >On the other hand, I already read some rumours that AWT will be >deprecated somewhere in the future, which I can't believe as Swing is >based on AWT, AFAIK. I cannot imagine that AWT ..Buttons and TextFields would *ever* be removed from the API. And, as you noticed, a lot of a Swing GUI's functionality (most events, most layouts, colors, images, printing, basic D'n'D, graphics/environment..) uses AWT classes and packages. >So do you guys have any information/comments/corrections about my >assumptions or any real objections against using AWT or are there even >others who prefer AWT, too? Most people are coding for the server side, very little AWT/Swing/SWT or J2ME, but by far Swing is the chosen widget kit. One good reason is that if you ask people about a problem with Swing, you are much likely to find someone that knows the answer! A lot of people have forgotten the 'subtleties' of AWT GUI coding. -- Andrew Thompson http://www.athompson.info/andrew/ Message posted via JavaKB.com http://www.javakb.com/Uwe/Forums.aspx/java-gui/200706/1 --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web