public void editObjects(GuiUserEvent event) { GuiWindow win; try { win = GuiFactory.getInstance().createWindow("gui/Object.xml"); win.setController(this); win.show(); } catch (GDLParseException e) { e.printStackTrace(); } }
public void editExpr(GuiUserEvent event) { GuiWindow win; try { win = GuiFactory.getInstance().createWindow("gui/Expression.xml"); win.setController(this); win.show(); } catch (GDLParseException ex) { logger.error(ex.getMessage(), ex); GuiUtil.showMessage(event.window, "Error", "Error", ex.getMessage()); } }
private ObjectItemGui() { sv = ServiceFactory.getLocalService(); // sv = ServiceFactory.getSOAP_Service("http://pk86.de:8004/bitdemo.wsdl"); // sv = ServiceFactory.getSpringService(); // sv = ServiceFactory.getSOAP_Service("http://localhost:8004/bf.wsdl"); GuiFactory fact = GuiFactory.getInstance(); GuiUtil.setUiManager("Nimbus"); try { GuiWindow win = fact.createWindow("gui/Expression.xml"); win.setController(this); win.show(); } catch (Exception ex) { logger.error(ex.getMessage(), ex); GuiUtil.showEx(ex); } }
public static boolean yesNoMessage(GuiWindow parent, String title, String message) { Component pc = null; if (parent != null) { pc = parent.getComponent(); } if (JOptionPane.showConfirmDialog(pc, message, title, JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) { return true; } return false; }