Tooltips

De GENIUS
Révision datée du 5 mai 2017 à 12:06 par Admin (discussion | contributions)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

GENIUS proposes very simply the possibility to add tooltips using the setToolTipText method ...

GEntryInt  valI = new GEntryInt("Integer :", 123);

valI.setToolTipText("This is an integer");


ToolTip.jpg


Note that it is also possible to manage tooltips for widget list as GComboBox. Here it is very simple too as we can see it on the example below:

String[] list = new String[3];
list[0] = "Choice 0";
list[1] = "Choice 1";
list[2] = "Choice 2";
		
String[] infos = new String[3];
infos[0] = "Information on choice 0";
infos[1] = "Information on choice 1";
infos[2] = "Information on choice 2";
		
GComboBoxWithLabel test = new GComboBoxWithLabel("test:", 0,  list);
test.setTooltipsList(infos);


ToolTipList.jpg


Return to the introduction ↑ Go to the next page →