Client Preferences Forgets Look and Feel Theme

If I delete the .Servoy folder from my documents and settings folder and then download a new client servoy creates a new .Servoy folder that contains a servoy_client preferences file. The client loads with the KunstoffNotebookTheme. If I then go into preferences and change the locale date format and reload the client it remembers the new date format but forgets the look and feel theme. Even if I go back to preferences and reset the look and feel theme it will not remember it. If I look in the preferences file in the .Servoy folder it has a line that says:

141.142.139.1008080_lnf.theme=

with nothing following the equal sign.

Problem has been present for a long time and I pointed out before and you said you cannot reproduce it. Hoping my explanation is more clear this time.

John McCann
Servoy Client
Version R2 2.1-build 310
Java version 1.4.2_05-b04 (Windows 2003)

Still can’t reproduce it.

I delete the servoy_client.properties from the .servoy dir.

go to : http://demo.servoy.com:8080/index.html

start the crm solution.

Open the preference dialog.

change the theme (which is empty at myplace!) to KunststoffPresentationTheme

change the dateformat to dd-MMM-yyyy

press ok

closes servoy client.

look into the newly created servoy_client.properties:

demo.servoy.com8080_lnf.theme=com.incors.plaf.kunststoff.themes.KunststoffPresentationTheme
demo.servoy.com8080_selectedlnf=com.incors.plaf.kunststoff.KunststoffLookAndFeel
locale.dateformat=dd-MMM-yyyy

so the theme is saved nicely. And used the next time i startup.

Johan,

I have installed it on about 20 machines and they all have the problem. So it is quite reproducible. Must be something slightly different on how we are approaching it. Try this on Windows XP.

toss out the .Servoy folder

go to http://149.142.139.141.:8080 and download the solution

Look at the preferences and note that:
The LAF theme is set to KunststoffNotebookTheme
and the date format is set to dd-MM-yyyy

Now change the date format to MM/dd/yyyy.

Close the client and then reopen it.

On reopening I predict the LAF theme is blank and you will not be able to reset it.

John McCann

The username and password are both “demo”.

ahh it does happen when you set a theme the first time from the server.. I can change it fine after that. But it doesn’t get saved the first time you you startup.. It doesn’t remember it for that specific ip:port address (the default lnf.theme is set then.)
will look why it doesn’t set it the first time for the right server..

it was only the case when you did open the preference dialog and pressed there ok.
So it was a problem with saving the setting you get from the server. I have fixed it (2.1.1)

Johan,

Thanks. I think the most important thing is that it downloads the preferences from the server correctly. Most of my users are not so computer savy and wouldn’t even know what the prefences menu item might do.

Hopefully having a test site up will help me do a better job of demonstrating some of these small problems.

Thanks for all you help

John McCann