
ad.AgentDesktopExample Maven / Gradle / Ivy
The newest version!
package ad;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import org.jdesktop.application.Application;
import org.swixml.jsr296.SwingApplication;
public class AgentDesktopExample extends SwingApplication {
@Override
protected void startup() {
try {
JDialog dialog = super.render(new JDialog(), "ad/AgentDesktop.xml");
super.show(dialog);
} catch (Exception e) {
JOptionPane.showMessageDialog(null, "error on startup " + e.getMessage(), "ERROR", JOptionPane.ERROR_MESSAGE);
// Exit to application
//exit();
}
}
public static void main( String[] args ) {
Application.launch(AgentDesktopExample.class, args);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy