Package org.beryl.gui

Examples of org.beryl.gui.MessageDialog


    try {
      Color selectedColor = JColorChooser.showDialog(((Frame) event.getSource().getDataModel().getValue("frame")).getRealWidget(), "", (Color) event.getSource().getDataModel().getValue("value"));
      if (selectedColor != null)
        event.getSource().getDataModel().setValue("value", selectedColor);
    } catch (Exception e) {
      new MessageDialog(e);
    }
  }
View Full Code Here


        public Object getValue(String key) {
          if (key.equals("value")) {
            try {
              return ImageIconFactory.getIcon((String) super.getValue("value_str"));
            } catch (Exception e) {
              new MessageDialog(e);
            }
          }
          return super.getValue(key);
        }
View Full Code Here

      MapDataModel model = (MapDataModel) event.getSource().getDataModel();
      Frame frame = (Frame) model.getValue("frame");
      AnchorEditor editor = new AnchorEditor(frame, model);
      editor.show();
    } catch (Exception e) {
      new MessageDialog(e);
    }
  }
View Full Code Here

        (Frame) event.getSource().getDataModel().getValue("frame"),
        (Element) event.getSource().getDataModel().getValue("node"),
          (WidgetUserObject) event.getSource().getDataModel().getValue("userobject"));
      }
    } catch (Exception e) {
      new MessageDialog(e);
    }
  }
View Full Code Here

  public void show() {
    try {
      dialog.initDialog(parent);
      dialog.show();
    } catch (GUIException e) {
      new MessageDialog(e);
    }
  }
View Full Code Here

      } else if (name.equals("ok")) {
        doOK();
        dialog.dispose();
      }
    } catch (Exception e) {
      new MessageDialog(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.beryl.gui.MessageDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.