コード例 #1
0
 @Override
 public void displayAddProductView() {
   DialogBox dialogBox = new DialogBox(_parent, "Add Product");
   AddProductView dialogView =
       new AddProductView(_parent, dialogBox, getBarcode(), container, getEntryDate());
   dialogBox.display(dialogView, false);
 }
コード例 #2
0
  /** Show a dialog asking for the friend name */
  public void start() {
    if (this.trayIcon == null) {
      // no user message if we aren't on windows
      if (System.getProperty("os.name").startsWith("Win")) DialogBox.error(tr("err.noTray"));
      else Logging.getLogger().info("Not on windows, running MainInterface instead of QuickLaunch");

      PluginManager.getInstance().run(MAIN_INTERFACE, new ConnectInfo[0]);
      Client.getInstance().setStartupPlugin(MAIN_INTERFACE);
      return;
    }

    addMenuToTray();

    this.trayIcon.addMouseListener(this);
    this.trayIcon.setVisible(true);
    this.trayIcon.showInfo(tr("lucane.is.ready"), "Lucane Groupware");
  }