This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Shame flexera
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 14, 2014
03:14 AM
Enable Exit Button in Custom Code Panel
Hi everyone, I'm doing some custom coding for Install Anywhere and I found a problem I could not wrap my head around it.
Basically I want to display a custom designed JFrame as an error dialog ( this has custom design ) with an OK button( I got this working as a Custom Code Action ) . When the OK button it is pressed I wanted to display a Custom Code Panel which would present the user with more information about the error and only with the Exit button( this is in the pre-install step, where I do all my checks ). I have found some relevant information about this, using GUIAccess, but did not manage to get this working.
This is the code I've been trying to fix.
The result of the code above is a panel where previous and next buttons are not showing, but the exit button is not shown as well.
Do you have any idea regarding this matter ?
Kind regards,
nihil
Basically I want to display a custom designed JFrame as an error dialog ( this has custom design ) with an OK button( I got this working as a Custom Code Action ) . When the OK button it is pressed I wanted to display a Custom Code Panel which would present the user with more information about the error and only with the Exit button( this is in the pre-install step, where I do all my checks ). I have found some relevant information about this, using GUIAccess, but did not manage to get this working.
This is the code I've been trying to fix.
public class PanelWithExitButton extends CustomCodePanel{
private CustomCodePanelProxy proxy = null;
public boolean setupUI(CustomCodePanelProxy proxy) {
this.proxy = proxy;
return true;
}
public void panelIsDisplayed() {
super.panelIsDisplayed();
setExitButton();
}
private void setExitButton()
{
GUIAccess gui = (GUIAccess)proxy.getService(GUIAccess.class);
gui.setNextButtonEnabled(false);
gui.setNextButtonVisible(false);
gui.setPreviousButtonEnabled(false);
gui.setPreviousButtonVisible(false);
gui.setExitButtonEnabled(true);
gui.setExitButtonVisible(true);
}
}
The result of the code above is a panel where previous and next buttons are not showing, but the exit button is not shown as well.
Do you have any idea regarding this matter ?
Kind regards,
nihil
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 12, 2014
02:34 AM
Shame on you FLEXERA!! For not replying to real users paying tons of money on licenses!
SHAME on you because you don't offer proper documentation!
SHAME on you because you don't offer proper support from developers on your OFFICIAL FORUMS !
SHAME, SHAME, SHAME!
I am really disappointed of your product ! I will NEVER recommend it to anyone else.
And it is not only me with the frustration of trying to contact support, or ask for more info, just look at all the threads on the forums with tons of problems, all problems without answers !
SHAME on you because you don't offer proper documentation!
SHAME on you because you don't offer proper support from developers on your OFFICIAL FORUMS !
SHAME, SHAME, SHAME!
I am really disappointed of your product ! I will NEVER recommend it to anyone else.
And it is not only me with the frustration of trying to contact support, or ask for more info, just look at all the threads on the forums with tons of problems, all problems without answers !