Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31035
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Is the API of JavaFX pixel-based? |
| Date | 2015-02-03 14:43 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <mar8io$knu$1@dont-email.me> (permalink) |
| References | <pixels-20150203115719@ram.dialup.fu-berlin.de> <maqnh5$8v4$1@dont-email.me> <tutorial-20150203161247@ram.dialup.fu-berlin.de> <maqrfe$qei$1@dont-email.me> <Pixels-20150203173814@ram.dialup.fu-berlin.de> |
On 02/03/2015 11:41 AM, Stefan Ram wrote:
> Jeff Higgins <jeff@invalid.invalid> writes:
>> This is all achievable with JavaFX as with any GUI APIs that
>> I'm familiar with. It may not be "out of the box" behavior.
>> Can you point to a GUI API with such default behavior?
>
> As you wrote: HTML+JavaScript should have it as a default.
>
> Otherwise, I'm not a GUI specialist, I only know rudiments
> of some toolkits.
>
> Maybe someone knows a JavaFX tutorial in the spirit of
> »No magic pixel value« programming.
>
> In my own tutorial, I already avoid magic pixel values.
> Here is a program from my own tutorial:
>
> public final class Main extends javafx.application.Application
> { public void start( final javafx.stage.Stage primaryStage )
> { final javafx.scene.layout.VBox vbox = new javafx.scene.layout.VBox();
> final javafx.scene.control.TextField text = new javafx.scene.control.TextField( "text" );
> vbox.getChildren().add( text );
> final javafx.scene.control.TextField text1 = new javafx.scene.control.TextField( "text1" );
> vbox.getChildren().add( text1 );
> primaryStage.setScene( new javafx.scene.Scene( vbox ));
> primaryStage.show(); }}
>
>
<http://en.wikipedia.org/wiki/Landolt_C>
Looking at the Golovin-Sivtsev Table, (at the left)
I'm able to make out most of the Landolt C
optotypes in the seventh line at my normal
viewing distance. At some point, some "magic"
numbers will be necessary - size of device pixel,
a SWAG at the visual acuity of a perhaps "standard"
viewer, another SWAG at perhaps a "standard"
viewing distance, guestimates of "standard" device
and environment light levels - not sure what else.
Then after all that you can give a gui designer
free rein to use relative placements and sizes.
Looking back over this and other newsgroups
concerning GUIs - it seems to me that some are
real particular about absolute control over
layout, sizing, coloring, etc, etc, and would hate
programming in the style you ask for. And then others
like you wish for.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Is the API of JavaFX pixel-based? Jeff Higgins <jeff@invalid.invalid> - 2015-02-03 09:52 -0500
Re: Is the API of JavaFX pixel-based? Jeff Higgins <jeff@invalid.invalid> - 2015-02-03 10:59 -0500
Re: Is the API of JavaFX pixel-based? Jeff Higgins <jeff@invalid.invalid> - 2015-02-03 14:43 -0500
Re: Is the API of JavaFX pixel-based? Jeff Higgins <jeff@invalid.invalid> - 2015-02-04 09:05 -0500
Re: Is the API of JavaFX pixel-based? Jeff Higgins <jeff@invalid.invalid> - 2015-02-04 09:21 -0500
Re: Is the API of JavaFX pixel-based? Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-02-05 06:18 +0800
Re: Is the API of JavaFX pixel-based? Arne Vajhøj <arne@vajhoej.dk> - 2015-02-04 19:46 -0500
Re: Is the API of JavaFX pixel-based? Arne Vajhøj <arne@vajhoej.dk> - 2015-02-04 19:49 -0500
csiph-web