Originally posted by: CedricVB
Hello,
To make my models a bit easier to work with, I'd like to spice them up with confirmation dialogs/alerts. Since this functionality wasn't available in the javascript API, I wanted to interface my CPLEX model with Java.
I've got the following code:
package vrp;
import javax.swing.*;
import ilog.opl.*;
public class Extensions {
private JFrame frame = new JFrame();
public Extensions() {
frame.setSize(400,400);
frame.setVisible(true);
}
The file loads correctly, I'm able to execute functions from my OPL file, but the window isn't shown (though it is when I try to execute the classfile directly).
Any idea if it is possible to do this?
Kind regards,
Cedric
#CPOptimizer#DecisionOptimization