<Swing Dev> RFD: JEP: Modernize the GTK3 Look and Feel implementation for OpenJDK

Mario Torre neugens at redhat.com
Tue Nov 25 15:34:25 UTC 2014


On Tue, 2014-11-25 at 18:20 +0300, Sergey Bylokhov wrote:
> Hi, Mario.
> You are talking about low level using of gtk2/3, I am sure it will be 
> good if two look&feels will share some code, but I was talking about the 
> high level, from the users point of view. It can be one LookAndFeel, but 
> with different implementations(an old one can be dropped easily later):
> Note that if it will be different l&f, the user will be able to set one 
> of them and later the second one. This is resulting in gtk2 getting 
> loaded into a process having gtk3 already loaded, in this case we can 
> get errors like this:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=431330

Right, I see now what you mean.

Indeed, it makes totally sense. I'll amend the JEP with this
information.

So basically the idea would be to refactor the main GTKLookAndFeel class
in order to select the actual one that is available (gtk2 or gtk3) based
on native code detection.

At this point we can make them share some code as well.

Cheers,
Mario





More information about the swing-dev mailing list