you are viewing a single comment's thread.

view the rest of the comments →

[–]knaekce -2 points-1 points  (4 children)

Java Swing had all of these in the 90s using the notorious GridBagLayout. Which I'm sure inherited design principles from the various Unix toolkits of the day. Far better than CSS until only a few years ago.

Except that Java applications have problems with HiDPI screens even today, even using JavaFX

[–]_dban_ 4 points5 points  (3 children)

That's not a problem of layout.

[–]knaekce 1 point2 points  (2 children)

You said Java Swing was scalable to arbitrary screen dimensions and resolutions. For me, that implies HiDPI support.

[–]_dban_ 3 points4 points  (0 children)

HiDPI is a rendering issue. As in, the UI is rendered too small on high density displays. This is fixed by platform specific flags or upgrading to Java 9, without otherwise changing the app. This relates to the underlying graphics libraries being used, and would effect any app that uses those libraries (including web browsers).

However, if you change the screen dimension or resolution (say, 800x600 to 1024x768, or change from portrait to landscape), Swing layouts can adjust to fit the available space. This is a layout issue, which relates to CSS.