cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
3X-Man
Level 6

How to disable Previous or Next button?

Hi,

in the Pre-install section I have a panel with a rule.
If the rule is true, I want to display the panel but I would like to disable the Next and Previous button to force the user to cancel.
How is it possible?

Thanks,

X.
Labels (1)
0 Kudos
(2) Replies
pv7721
Level 20

You can use a Show Message dialog if a certain rule is true, and with a button which would Cancel and Exit.
0 Kudos
3X-Man
Level 6

For those who might be interested.
The solution I've found using a CustomCodePanel:
[FONT="Courier New"]
public class MyPanel extends CustomCodePanel
{
[...]
private CustomCodePanelProxy proxy;

public boolean setupUI(CustomCodePanelProxy customCodePanelProxy)
{
[...]
proxy = customCodePanelProxy;

return true;
}

public void panelIsDisplayed()
{
postInitUI(); // should not be called in setupUI
}

private void postInitUI() {
GUIAccess gui = (GUIAccess)proxy.getService(GUIAccess.class);
Frame frame = gui.getFrame();

gui.setExitButtonVisible(true);
gui.setNextButtonVisible(false);
gui.setPreviousButtonVisible(false);
}


[/FONT]
0 Kudos