Tips

De GENIUS
Version datée du 25 mars 2026 à 13:14 par Admin (discussion | contributions) (Page créée avec « To avoid possible non compatibility when you want to change the label of an entry widget, it is fully recommended to use the <font color=#4169E1>setNameInConfigurationFile()</font> method. For example : <syntaxhighlight lang="java"> real = new GEntryReal("Real:", 0.); </syntaxhighlight> ... will correspond int he XML saved file to the following line : <syntaxhighlight lang="xml"> <R</syntaxhighlight> </syntaxhighlight> So, if you decide to change the label i... »)
(diff) ← Version précédente | Version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

To avoid possible non compatibility when you want to change the label of an entry widget, it is fully recommended to use the setNameInConfigurationFile() method. For example :

real  = new GEntryReal("Real:", 0.);

... will correspond int he XML saved file to the following line :

<R

</syntaxhighlight>

So, if you decide to change the label in "Double" rather than "Real", the content of the XML file will be now :

<Real name="Double:">0.0E0</Real>

... and the previous saved files will be no more readable.

On the contrary, if your code is the following one:

real  = new GEntryReal("Real:", 0.);
real.setNameInConfigFile("value");

... the content of the file will be :

<!--Real:-->
<Real name="value">0.0E0</Real>