Look and feel mechanism?

Stephen Winnall steve at winnall.ch
Sun Dec 8 16:15:13 PST 2013

It may be possible to change the LOOK with CSS, but not the FEEL, which is where Java apps have traditionally failed big time.

Some things that I don’t think can be changed with CSS:

1) texts
2) order of buttons
3) escape characters for shortcuts
4) menus
5) system-level stuff (double-clicking on files, dropping files on applications, …)
6) filesystem conventions
7) ...

I think FXML can fix some of these, but not all. So it seems to me that a LaF in JFX will consist of at least:

	- one or more CSS files
	- one or more FXML files
	- some plumbing at the system level

It would be nice to have a set of proper LaFs for each major platform with an appropriate common API.


On 9 Dec 2013, at 00:20, Jasper Potts <jasper.potts at oracle.com> wrote:

> You can set skin classes from CSS so should be able to do everything you could with Swing and more. With just a CSS file and skins as and when needed. 
> Jasper
>> On Dec 8, 2013, at 3:00 PM, Jonathan Giles <jonathan.giles at oracle.com> wrote:
>> At present there are no plans to introduce any further API or
>> functionality in this area, but if there is something you are wanting
>> then you should file feature requests in Jira.
>> -- Jonathan
>>> On 9/12/2013 11:54 a.m., Pedro Duque Vieira wrote:
>>> Hi,
>>> Is there any Look and Feel mechanism in place, like the one in Swing? That
>>> doesn't appear to exist..
>>> Are there any plans to add one? You can only do so much with CSS...
>>> Thanks in advance, best regards,

More information about the openjfx-dev mailing list