Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #29297

Re: java swing question

From thinbluernime <thinbluernime3@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: java swing question
Date 2014-07-25 04:19 +0000
Organization Aioe.org NNTP Server
Message-ID <lqslsm$5kq$1@speranza.aioe.org> (permalink)
References (3 earlier) <k7bps9piodba7gbvt045j9or76nobk6989@4ax.com> <lqivm7$snv$1@dont-email.me> <53cdbf92$0$291$14726298@news.sunsite.dk> <lqmtqs$qke$1@speranza.aioe.org> <53cf0017$0$304$14726298@news.sunsite.dk>

Show all headers | View raw


On Tue, 22 Jul 2014 20:21:42 -0400, Arne Vajhøj wrote:

> On 7/22/2014 7:58 PM, thinbluernime wrote:
>> On Mon, 21 Jul 2014 21:34:10 -0400, Arne Vajhøj wrote:
>>
>>> But I find it very hard to see why a new GUI app should be written in
>>> Swing - for that JavaFX is the obvious choice.
>>
>> Unless you want it to work in Java 7 without external dependencies.
> 
> New apps should not be written for a Java version where the common
> implementation goes out of support in April 2015.

Welcome to the real world, where people are still depolying Java 5 in a 
lot of different places.

>> Or you want native L&F.
> 
> Swing's native L&F were never really true native L&F.

A "no true Scotsman" argument doesn't help your case here.

>> Or you want accessibility.
> 
> It is scheduled for 8u40 according to:

OK, amend that to "you want accessibility *now*".

> No guarantee that it will make it.

That makes my point for me. Swing has accessibility support now and it's 
not going anywhere.

>> Or i18n via ResourceBundle.
> 
> As far as I know then JavaFX has fine support for resource bundles.

I don't see how, since I don't see how FXML could interact meaningfully 
with the ResourceBundle class. An external representation of the UI in 
some non-Java file is going to either have hardcoded label texts (no 
i18n) or need its own parallel, reinvented-square-wheel way of making 
those able to depend on locale.

And Java i18n can make other things depend on locale. Icons. Field widths 
(because 姓名 is shorter than "Arne Vajhøj" is shorter than "Abū Kāmil, 
Shujāʿ ibn Aslam ibn Muḥammad Ibn Shujāʿ"). Layouts. Parameters (left-to-
right vs. right-to-left). Even behavior (different ActionEvent handlers. 
If a particular mistake is common in a certain part of the world, can add 
an "are you sure?" for something that doesn't pop up in locales where 
most people won't need it. Scrollbar can be added for FR to a big popup 
message that won't all fit on typical screens at once in French, but will 
in Chinese. And so on.)

>> Or proper keyboard focus handling.
> 
> "proper" is rather subjective.

Dialog appears, tab tab tab type enter works is proper. Dialog appears, 
you have to click before any keyboard input works is not proper. We can 
debate what the tab order should be after JavaFX has gotten the basics 
right. :)

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

java swing question Peter <mcheung63@gmail.com> - 2014-07-21 03:15 +0800
  Re: java swing question Peter <mcheung63@gmail.com> - 2014-07-21 03:23 +0800
    Re: java swing question Jeff Higgins <jeff@invalid.invalid> - 2014-07-20 15:24 -0400
      Re: java swing question Peter <mcheung63@hotmail.com> - 2014-07-21 18:34 +0800
      Re: java swing question lipska the kat <lipskathekat@example.com> - 2014-07-21 15:56 +0100
      Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-21 21:49 -0400
        Re: java swing question Jeff Higgins <jeff@invalid.invalid> - 2014-07-22 17:35 -0400
          Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-30 22:38 -0400
      Re: java swing question Luft <edamron@spamcop.net> - 2014-08-05 12:29 -0700
        Re: java swing question Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-08-05 15:50 -0400
          Re: java swing question Joerg Meier <joergmmeier@arcor.de> - 2014-08-05 23:33 +0200
        Re: java swing question Jeff Higgins <jeff@invalid.invalid> - 2014-08-05 18:41 -0400
    Re: java swing question Roedy Green <see_website@mindprod.com.invalid> - 2014-07-20 23:04 -0700
      Re: java swing question Daniele Futtorovic <da.futt.news@laposte.net> - 2014-07-21 14:05 +0200
        Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-21 21:34 -0400
          Re: java swing question Daniele Futtorovic <da.futt.news@laposte.net> - 2014-07-22 20:50 +0200
          Re: java swing question thinbluernime <thinbluernime3@gmail.com> - 2014-07-22 23:58 +0000
            Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-22 20:21 -0400
              Re: java swing question thinbluernime <thinbluernime3@gmail.com> - 2014-07-25 04:19 +0000
                Re: java swing question Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-07-25 00:15 -0500
                Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-30 22:34 -0400
                Re: java swing question thinbluernime <thinbluernime3@gmail.com> - 2014-07-31 16:07 +0000
                Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-08-02 23:03 -0400
                Re: java swing question Joerg Meier <joergmmeier@arcor.de> - 2014-08-03 12:17 +0200
                Re: java swing question thinbluernime <thinbluernime3@gmail.com> - 2014-08-03 19:25 +0000
      Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-21 21:31 -0400
        Re: java swing question Wayne <nospam@all.invalid> - 2014-07-22 00:32 -0400
          Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-22 19:50 -0400
        Re: java swing question "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-07-22 14:04 +0100
          Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-22 21:58 -0400
            Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-22 22:00 -0400
      Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-21 21:35 -0400
    Re: java swing question Peter <mcheung63@hotmail.com> - 2014-07-21 18:33 +0800
    Re: java swing question Jeff Higgins <jeff@invalid.invalid> - 2014-07-21 17:13 -0400
      Re: java swing question Jeff Higgins <jeff@invalid.invalid> - 2014-07-21 17:40 -0400
      Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-21 21:46 -0400
        Re: java swing question Joerg Meier <joergmmeier@arcor.de> - 2014-07-28 23:47 +0200
          Re: java swing question Josip Almasi <joe@vrspace.org> - 2014-07-29 00:17 +0200
          Re: java swing question Arne Vajhøj <arne@vajhoej.dk> - 2014-07-30 21:09 -0400
    Re: java swing question Silvio <silvio@internet.com> - 2014-07-22 02:18 +0200

csiph-web