Package xnap.gui.menu

Examples of xnap.gui.menu.UserMenu


  setLayout(new BorderLayout(5, 5));

  JPanel jpUsers = new JPanel(new BorderLayout());

  // user popup
  UserMenu jm = new UserMenu(this, true);
  jm.add(acWhois);
  jm.addSeparator();

  // user table
  wtm = new WhoisTableModel();
  jtaUsers = wtm.createJTable();
  jtaUsers.addMouseListener(new PopupListener(jm));
View Full Code Here


    boxTop.add(jcbBlinkOnChatMessage);

    // users
    JPanel jpUsers = new JPanel(new BorderLayout());

    UserMenu jm = new UserMenu(this, true);
     
    utm = new ChatUserTableModel("user", userData);
    jta = utm.createJTable();
    utm.addTableModelListener(this);
    MouseListener ml = new PopupListener(jm);
View Full Code Here

    private void initialize()
    {
  JPanel jpHotlist = new JPanel(new BorderLayout());

  // hotlist popup
  UserMenu jm = new UserMenu(this, true);
  jm.add(new JMenuItem(acRemove));
  jm.addSeparator();

  // hotlist table
  htm = new HotlistTableModel();
  jtaHotlist = htm.createJTable();
  jtaHotlist.addMouseListener(new PopupListener(jm));
View Full Code Here

  jmDownloads.add(deleteAction);
  jmDownloads.addSeparator();
  jmDownloads.add(acOpenFile);
  jmDownloads.add(new OpenFileWithMenu(this));;
  jmDownloads.addSeparator();
  jmDownloads.add(new UserMenu(this));
  if (!filtered) {
      jmDownloads.addSeparator();
      jmDownloads.add(clearAction);
  }


  // download table
  if (filtered) {
      ttmDownloads = new FilteredTransferTableModel
    (DownloadQueue.getInstance(), "download");
  }
  else {
      ttmDownloads = new TransferTableModel
    (DownloadQueue.getInstance(), "download",
     XNap.tr("Download Table"));
  }
  jtaDownloads = ttmDownloads.createJTable();
  jtaDownloads.setShowGrid(false);
  jtaDownloads.addFocusListener(new FocusSelectionListener());
  MouseListener mlDownloads = new PopupListener(jmDownloads);
  jtaDownloads.addMouseListener(mlDownloads);
  jtaDownloads.addMouseListener
      (new DoubleClickListener(acRSOAction, jtaDownloads));
  jtaDownloads.getInputMap().put
      (KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), acRSOAction);
  jtaDownloads.getActionMap().put(acRSOAction, acRSOAction);

  jtaDownloads.getInputMap().put
      (KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), deleteAction);
  jtaDownloads.getActionMap().put(deleteAction, deleteAction);

  jtaDownloads.getInputMap().put
      (KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), acEditFilter);
  jtaDownloads.getActionMap().put(acEditFilter, acEditFilter);

  jspDl = new JScrollPane()
  jspDl.setViewportView(jtaDownloads);

  // upload popup
  JPopupMenu jmUploads = new JPopupMenu();
  jmUploads.add(new JMenuItem(new StartAction()));
  jmUploads.add(new JMenuItem(abortAction));
  if (!filtered) {
      jmUploads.addSeparator();
      jmUploads.add(new JMenuItem(clearAction));
  }
  jmUploads.addSeparator();
  jmUploads.add(new JMenuItem(acOpenFile));
  jmUploads.add(new OpenFileWithMenu(this));
  jmUploads.addSeparator();
  jmUploads.add(new UserMenu(this));

  // upload table     
  if (filtered) {
      ttmUploads = new FilteredTransferTableModel(UploadQueue.getInstance(),
              "upload");
View Full Code Here

  popup.add(acSearchRepository);
  if (prefs.getSearchResultOpenAction().length() > 0) {
      popup.add(new SearchResultOpenAction());
  }
  popup.addSeparator();
  popup.add(new UserMenu(this));

  // first panel
  Box boxOne = new Box(BoxLayout.X_AXIS);

  // erase button
View Full Code Here

TOP

Related Classes of xnap.gui.menu.UserMenu

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.