Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20149 > unrolled thread
| Started by | Sourabh Mhaisekar <sourabh8044@gmail.com> |
|---|---|
| First post | 2012-12-07 00:53 -0800 |
| Last post | 2012-12-10 15:46 -0500 |
| Articles | 13 — 4 participants |
Back to article view | Back to comp.lang.java.programmer
AWT or Swing or Any other ? Sourabh Mhaisekar <sourabh8044@gmail.com> - 2012-12-07 00:53 -0800
Re: AWT or Swing or Any other ? Arne Vajhøj <arne@vajhoej.dk> - 2012-12-07 08:30 -0500
Re: AWT or Swing or Any other ? Lew <lewbloch@gmail.com> - 2012-12-09 12:51 -0800
Re: AWT or Swing or Any other ? Lew <lewbloch@gmail.com> - 2012-12-09 13:14 -0800
Re: AWT or Swing or Any other ? Arne Vajhøj <arne@vajhoej.dk> - 2012-12-09 17:21 -0500
Re: AWT or Swing or Any other ? Roedy Green <see_website@mindprod.com.invalid> - 2012-12-09 19:17 -0800
Re: AWT or Swing or Any other ? Arne Vajhøj <arne@vajhoej.dk> - 2012-12-10 12:00 -0500
Re: AWT or Swing or Any other ? Lew <lewbloch@gmail.com> - 2012-12-10 11:20 -0800
Re: AWT or Swing or Any other ? Roedy Green <see_website@mindprod.com.invalid> - 2012-12-11 18:40 -0800
Re: AWT or Swing or Any other ? Lew <lewbloch@gmail.com> - 2012-12-11 19:28 -0800
Re: AWT or Swing or Any other ? Roedy Green <see_website@mindprod.com.invalid> - 2012-12-08 00:42 -0800
Re: AWT or Swing or Any other ? Arne Vajhøj <arne@vajhoej.dk> - 2012-12-09 17:34 -0500
Re: AWT or Swing or Any other ? Arne Vajhøj <arne@vajhoej.dk> - 2012-12-10 15:46 -0500
| From | Sourabh Mhaisekar <sourabh8044@gmail.com> |
|---|---|
| Date | 2012-12-07 00:53 -0800 |
| Subject | AWT or Swing or Any other ? |
| Message-ID | <d0be45d1-31a2-40c2-bb52-b0dc5f7b87e7@googlegroups.com> |
Hi there, I am relatively new into java world. I need to build a DSS system in java. Am confused about which GUI tool should I use. AWT, Swing or Any other third party tool. Thanks !
[toc] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-12-07 08:30 -0500 |
| Message-ID | <50c1ef83$0$283$14726298@news.sunsite.dk> |
| In reply to | #20149 |
On 12/7/2012 3:53 AM, Sourabh Mhaisekar wrote: > Hi there, I am relatively new into java world. I need to build a DSS > system in java. Am confused about which GUI tool should I use. AWT, > Swing or Any other third party tool. legacy developer skills + tight schedule or need to support old Java versions => Swing otherwise => JavaFX Arne
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-12-09 12:51 -0800 |
| Message-ID | <cd2015cc-fe9e-42e7-b28d-b0fa996f308c@googlegroups.com> |
| In reply to | #20154 |
Arne Vajhøj wrote: >Sourabh Mhaisekar wrote: >> Hi there, I am relatively new into java world. I need to build a DSS >> system in java. Am confused about which GUI tool should I use. AWT, >> Swing or Any other third party tool. > > legacy developer skills + tight schedule or need to support old Java > versions => Swing > > otherwise => JavaFX I mostly agree with Arne, except I expand the use cases for both. I suggest Swing for workhorse desktop applications, that is, anything where you need a good, solid, classic GUI framework. Even many new apps will fall into this category sometimes. JavaFX is newer and flashier (pun intended). Arne is right to suggest pushing our developer skills in this direction. It is an emerging space. The "legacy" Swing space is large and not done growing. (Large within the Java universe, that is. Ahem.) I've worked on many GUIs over the years including some intellectual forebears of Swing - OPEN LOOK, Motif and similar. http://en.wikipedia.org/wiki/OPEN_LOOK Once you internalize the notions of event-driven programming https://www.google.com/search?q=event-driven+programming , in particular for Java in Swing and JavaBeans, it is pretty second-nature to program GUIs by hand. (Even in XML.) Then wizards like the ones Eclipse (for Android) and NetBeans (for Swing) sport make more sense. Both Swing and JavaFX are based on the same programming principles. So the decision becomes one of feature support and platform availability for your customers. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-12-09 13:14 -0800 |
| Message-ID | <47d7b77c-4d44-4684-99ae-ef78a360c7df@googlegroups.com> |
| In reply to | #20198 |
Lew wrote: > Both Swing and JavaFX are based on the same programming principles. > So the decision becomes one of feature support and platform availability > for your customers. I should add that Swing and JavaFX are not mutually exclusive. As mentioned in the NetBeans documentation, you can "embed FX components using the JFXPanel Swing component." (NB supports JavaFX development rather deeply.) -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-12-09 17:21 -0500 |
| Message-ID | <50c50efa$0$295$14726298@news.sunsite.dk> |
| In reply to | #20198 |
On 12/9/2012 3:51 PM, Lew wrote: > Arne Vajhøj wrote: >> Sourabh Mhaisekar wrote: >>> Hi there, I am relatively new into java world. I need to build a DSS >>> system in java. Am confused about which GUI tool should I use. AWT, >>> Swing or Any other third party tool. >> >> legacy developer skills + tight schedule or need to support old Java >> versions => Swing >> >> otherwise => JavaFX > > I mostly agree with Arne, except I expand the use cases for both. > > I suggest Swing for workhorse desktop applications, that is, anything > where you need a good, solid, classic GUI framework. Even many new > apps will fall into this category sometimes. > > JavaFX is newer and flashier (pun intended). Arne is right to suggest > pushing our developer skills in this direction. It is an emerging space. > The "legacy" Swing space is large and not done growing. > > (Large within the Java universe, that is. Ahem.) > Once you internalize the notions of event-driven programming > > https://www.google.com/search?q=event-driven+programming > > , in particular for Java in Swing and JavaBeans, it is pretty second-nature > to program GUIs by hand. (Even in XML.) Then wizards like the ones > Eclipse (for Android) and NetBeans (for Swing) sport make more sense. > > Both Swing and JavaFX are based on the same programming principles. > So the decision becomes one of feature support and platform availability > for your customers. Both are event driven. And you can write JavaFX relative similar to how you write Swing. But if you utilize all of JavaFX it changes the entire style. V in FXML, C in JS and M in Java will be very different from a Swing app. It could have the same impact as the switch from servlet only to mix of JSP and servlet for web GUI had 13 years ago. Arne
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-12-09 19:17 -0800 |
| Message-ID | <rrkac8591c9ncqcbjaad87tubgpgq65i3p@4ax.com> |
| In reply to | #20198 |
On Sun, 9 Dec 2012 12:51:50 -0800 (PST), Lew <lewbloch@gmail.com> wrote, quoted or indirectly quoted someone who said : >JavaFX is newer and flashier (pun intended). Arne is right to suggest Read my experiences. It simply did not work. see http://mindprod.com/jgloss/javafx.html It was not that long ago. Further it has quite limited browser support. It is one more package the user has to install. I was unable to get one developer who wanted a mirror copy of my website to install Java to deliver it to him. He was terrified of it. I am nervous of any new technology. They are sent up like trial balloons. If they don't catch on, they are abandoned. -- Roedy Green Canadian Mind Products http://mindprod.com Students who hire or con others to do their homework are as foolish as couch potatoes who hire others to go to the gym for them.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-12-10 12:00 -0500 |
| Message-ID | <50c6153d$0$287$14726298@news.sunsite.dk> |
| In reply to | #20208 |
On 12/9/2012 10:17 PM, Roedy Green wrote: > On Sun, 9 Dec 2012 12:51:50 -0800 (PST), Lew <lewbloch@gmail.com> > wrote, quoted or indirectly quoted someone who said : > >> JavaFX is newer and flashier (pun intended). Arne is right to suggest > > Read my experiences. It simply did not work. see > http://mindprod.com/jgloss/javafx.html > > It was not that long ago. Since the page talks about JavaFX Script, then it is obsolete. > Further it has quite limited browser support. Browsers do not have to support JavaFX at all. Browsers support a Java plugin. And then it is up to the Java plugin. And applets are so much out of fashion anyway, that most likely JavaFX will be more used for desktop apps than for applets. > It is one more package the user has to install. No. The JavaFX 2.0 runtime is now in the standard Java distrubution (only in Oracle, but when talking about non-server usage, then that is by far the most common). > I was unable to get > one developer who wanted a mirror copy of my website to install Java > to deliver it to him. He was terrified of it. Maybe he was misinformed by someone. :-) Arne
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-12-10 11:20 -0800 |
| Message-ID | <9c20aadc-eb9a-461d-9fa6-8bcecd2874b1@googlegroups.com> |
| In reply to | #20212 |
Arne Vajhøj wrote: > Roedy Green wrote: >> Lew wrote, quoted or indirectly quoted someone who said : >>> JavaFX is newer and flashier (pun intended). Arne is right to suggest > >> Read my experiences. It simply did not work. see >> http://mindprod.com/jgloss/javafx.html "Simply did not work" is not a very deep investigation. >> It was not that long ago. In geological terms? Which version did you try? When was this? What did you do exactly? > Since the page talks about JavaFX Script, then it is obsolete. "8. Does JavaFX 2 support JavaFX Script? Starting with JavaFX 2.0, JavaFX Script is no longer supported. " http://www.oracle.com/technetwork/java/javafx/overview/faq-1446554.html#3 >> Further it has quite limited browser support. > > Browsers do not have to support JavaFX at all. Browsers support > a Java plugin. And then it is up to the Java plugin. There is a page that lists what's certified to be supported: http://www.oracle.com/technetwork/java/javafx/downloads/supportedconfigurations-1506746.html The only notable exceptions are Chrome on Mac and Internet Explorer on non-Windows platforms. > And applets are so much out of fashion anyway, that most likely > JavaFX will be more used for desktop apps than for applets. Most of the JavaFX documentation focuses on that use case. >> It is one more package the user has to install. > > No. > The JavaFX 2.0 runtime is now in the standard Java distrubution > (only in Oracle, but when talking about non-server usage, then > that is by far the most common). > >> I was unable to get >> one developer who wanted a mirror copy of my website to install Java >> to deliver it to him. He was terrified of it. Yes, one developer's pathological phobia is sufficient evidence for a worldwide policy. He needs a psychiatrist, not an engineer. > Maybe he was misinformed by someone. > :-) Or maybe he's a psycho. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-12-11 18:40 -0800 |
| Message-ID | <girfc819e2ksfd0tedunnsfdkja9bomrv9@4ax.com> |
| In reply to | #20221 |
On Mon, 10 Dec 2012 11:20:24 -0800 (PST), Lew <lewbloch@gmail.com> wrote, quoted or indirectly quoted someone who said : >>> Read my experiences. It simply did not work. see >>> http://mindprod.com/jgloss/javafx.html > >"Simply did not work" is not a very deep investigation. Lew, are you ever stupid lazy and dumb. Can't you read? It says "SEE". That's where the detail is. But you are so fucking ignorant, you don't get it. How dare you pose as a computer programmer. You should give up. That's what you do to everyone else. -- Roedy Green Canadian Mind Products http://mindprod.com Students who hire or con others to do their homework are as foolish as couch potatoes who hire others to go to the gym for them.
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-12-11 19:28 -0800 |
| Message-ID | <8a31a5e5-def8-407b-b361-5f3aa3443080@googlegroups.com> |
| In reply to | #20269 |
Roedy Green wrote: > Lew wrote, quoted or indirectly quoted someone who said : >>>> Read my experiences. It simply did not work. see >>>> http://mindprod.com/jgloss/javafx.html > >>"Simply did not work" is not a very deep investigation. > > Lew, are you ever stupid lazy and dumb. Can't you read? Wow, really? You just love to be abusive, huh? > It says "SEE". That's where the detail is. But you are so > fucking ignorant, you don't get it. How dare you pose > as a computer programmer. You should give up. > > That's what you do to everyone else. I did look at your site. It's as full of errors and misinformation as Arne has said. Keep your potty-mouth to yourself. And before you go calling people "ignorant", you might want to cast the beam out of your own website's eye. You constantly post self- serving links to your own site, despite the inaccurate and incomplete information there, and the utter lack of insight into what you're describing, often ignoring better responses others have provided before you post. In this case, you did a half-assed investigation on an obsolete version of JavaFX and now you're abusing people who call you on it. Your egotistical and violent reaction to justifiable criticism is a condemnation of your own character. Get over yourself. Stop being a violent bully and projecting your own deficiencies onto others. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-12-08 00:42 -0800 |
| Message-ID | <1cv5c8dlaeu8nk6akomrji0qv50e6qhidb@4ax.com> |
| In reply to | #20149 |
On Fri, 7 Dec 2012 00:53:15 -0800 (PST), Sourabh Mhaisekar <sourabh8044@gmail.com> wrote, quoted or indirectly quoted someone who said : >Hi there, >I am relatively new into java world. >I need to build a DSS system in java. >Am confused about which GUI tool should I use. >AWT, Swing or Any other third party tool. Nearly everything now is Swing. see http://mindprod.com/jgloss/swing.html http://mindprod.com/jgloss/awt.html http://mindprod.com/jgloss/swt.html http://mindprod.com/jgloss/javafx.html -- Roedy Green Canadian Mind Products http://mindprod.com Students who hire or con others to do their homework are as foolish as couch potatoes who hire others to go to the gym for them.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-12-09 17:34 -0500 |
| Message-ID | <50c51214$0$291$14726298@news.sunsite.dk> |
| In reply to | #20180 |
On 12/8/2012 3:42 AM, Roedy Green wrote: > On Fri, 7 Dec 2012 00:53:15 -0800 (PST), Sourabh Mhaisekar > <sourabh8044@gmail.com> wrote, quoted or indirectly quoted someone who > said : >> I am relatively new into java world. >> I need to build a DSS system in java. >> Am confused about which GUI tool should I use. >> AWT, Swing or Any other third party tool. > > Nearly everything now is Swing. > see Nah. > http://mindprod.com/jgloss/swing.html #The biggest gotcha is that you no longer add directly to your Swing #containers. Any content inside a JFrame should be placed inside its #contentPane. You must do a: # #Container pane = swingContainer.getContentPane(); # #and add to it. Unfortunately the add method is still defined for the #Swing Containers to entrap the unwary. You can certainly add directly to most containers. And JFrame add has been forwarding to getContentPane add since Java 1.6 (2006!). > http://mindprod.com/jgloss/awt.html > http://mindprod.com/jgloss/swt.html > http://mindprod.com/jgloss/javafx.html #JavaFX Mobile is a platform for cell phones based on Java and Linux. First JavaFX Mobile is only part of all JavaFX. Second JavaFX Mobile did run on Windows Mobile, which obviously is not Linux based. #JavaFX Script is a statically typed scripting languages for use in #devices such as TV set top boxes. JavaFX Script was intended to be used on all JavaFX platforms not just TV's. And JavaFX Script was abandoned in JavaFX 2.x. Arne
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-12-10 15:46 -0500 |
| Message-ID | <50c64a13$0$292$14726298@news.sunsite.dk> |
| In reply to | #20202 |
On 12/9/2012 5:34 PM, Arne Vajhøj wrote: > On 12/8/2012 3:42 AM, Roedy Green wrote: >> On Fri, 7 Dec 2012 00:53:15 -0800 (PST), Sourabh Mhaisekar >> <sourabh8044@gmail.com> wrote, quoted or indirectly quoted someone who >> said : >>> I am relatively new into java world. >>> I need to build a DSS system in java. >>> Am confused about which GUI tool should I use. >>> AWT, Swing or Any other third party tool. >> >> Nearly everything now is Swing. >> see > > Nah. > >> http://mindprod.com/jgloss/swing.html > > #The biggest gotcha is that you no longer add directly to your Swing > #containers. Any content inside a JFrame should be placed inside its > #contentPane. You must do a: > # > #Container pane = swingContainer.getContentPane(); > # > #and add to it. Unfortunately the add method is still defined for the > #Swing Containers to entrap the unwary. > > You can certainly add directly to most containers. > > And JFrame add has been forwarding to getContentPane add > since Java 1.6 (2006!). > >> http://mindprod.com/jgloss/awt.html >> http://mindprod.com/jgloss/swt.html >> http://mindprod.com/jgloss/javafx.html > > #JavaFX Mobile is a platform for cell phones based on Java and Linux. > > First JavaFX Mobile is only part of all JavaFX. > > Second JavaFX Mobile did run on Windows Mobile, which > obviously is not Linux based. > > #JavaFX Script is a statically typed scripting languages for use in > #devices such as TV set top boxes. > > JavaFX Script was intended to be used on all JavaFX platforms > not just TV's. > > And JavaFX Script was abandoned in JavaFX 2.x. I suggest that you start posting links to Wikipedia instead. Usually there are more details and it is more correct and more uptodate. And therefore a better service for the cljp readers. Arne
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web