Laf for windows / lunix

Questions and answers for all installation-related topics for Servoy products

Laf for windows / lunix

Postby Hans Nieuwenhuis » Wed Jun 20, 2012 7:24 am

Hi,

Our solution is mainly run on Windows.
But there are a few linux users.
We use Smart Client.
They have some gui ( colors, ... ) issues.

Is it possible to automaticaly assign a different Laf for linux clients and for Windows clients,
without the user having to select a Laf.


Regards,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Laf for windows / lunix

Postby mboegem » Wed Jun 20, 2012 9:27 am

Hi Hans,

I recently bumped into this problem again and used this:
Code: Select all
var _jxSwingUI = new Packages.javax.swing.UIManager();
var _sLaFName = _jxSwingUI .getCrossPlatformLookAndFeelClassName();
_jxSwingUI .setLookAndFeel(_sLaFName); //set Look and Feel


Depending on any beans you use, you need to change more default settings (like fonts) in swing.

Hope this helps.
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1752
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Laf for windows / lunix

Postby Hans Nieuwenhuis » Wed Jun 20, 2012 9:43 am

Marc,

Thanks !!
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands


Return to Installation

Who is online

Users browsing this forum: No registered users and 6 guests