Tooltips
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");
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);