Package javax.swing

Examples of javax.swing.JPopupMenu.show()


                    maybeShowPopup(e);
                }

                private void maybeShowPopup(MouseEvent e) {
                    if (e.isPopupTrigger()) {
                        treePopup.show(e.getComponent(), e.getX(), e.getY());
                    }
                }
            });

            // config panel
View Full Code Here


            TableColumnModel colModel = table.getColumnModel();
            int index = colModel.getColumnIndexAtX(e.getX());
            int modelIndex = colModel.getColumn(index).getModelIndex();

            if ((modelIndex + 1) == ChainsawColumns.INDEX_TIMESTAMP_COL_NAME) {
              dateFormatChangePopup.show(e.getComponent(), e.getX(), e.getY());
            }
          }
        }
      });
View Full Code Here

                    changeCloud(plugin.getId());
                }
            });
            popup.add(item);
        }
        popup.show(signInOutLink, 0, signInOutLink.getHeight() + 5);
    }

    @Override
    protected void setSignInOutText(String buttonText) {
        ((JButton) signInOutLink).setText(StringUtils.capitalize(buttonText));
View Full Code Here

      final int y = (int) ((guideLine.getPosition() + start) * zoomModel.getZoomAsPercentage());

      if (y <= me.getY() + 2 && y >= me.getY() - 2)
      {
        final JPopupMenu popupMenu = createPopupMenu(guideLine, i);
        popupMenu.show(VerticalLinealComponent.this, me.getX(), me.getY());

        break;
      }
    }
  }
View Full Code Here

      final JPopupMenu pop = ContextMenuUtility.getMenu(context, o);
      if (pop == null)
      {
        return;
      }
      pop.show(tree, e.getX(), e.getY());
    }

    public void mouseClicked(final MouseEvent e)
    {
      if (e.isPopupTrigger())
View Full Code Here

      final JPopupMenu pop = ContextMenuUtility.getMenu(getDesignerContext(), element);
      if (pop == null)
      {
        return;
      }
      pop.show(AbstractRenderComponent.this, e.getX(), e.getY());
    }
  }

  private class MouseOperationHandler extends MouseAdapter implements MouseMotionListener
  {
View Full Code Here

      tree.addSelectionPath(selPath);

      popup = conObj.getExporerPopupMenu(actionMgr);

      if (popup != null)  {
          popup.show(e.getComponent(), e.getX(), e.getY());
      }
  }
    }
}
View Full Code Here

      final int x = (int) ((guideLine.getPosition() + start) * getZoomAsMicropoints());

      if (x <= me.getX() + 2 && x >= me.getX() - 2)
      {
        final JPopupMenu popupMenu = createPopupMenu(guideLine, i);
        popupMenu.show(HorizontalLinealComponent.this, me.getX(), me.getY());
        break;
      }
    }
  }

View Full Code Here

    final JPopupMenu menu = ContextMenuUtility.createDataSourcePopup(reportDesignerContext1);
    final Object source = e.getSource();
    if (source instanceof Component)
    {
      final Component c = (Component) source;
      menu.show(c, 0, c.getHeight());
    }
    else
    {
      final Component parent = reportDesignerContext1.getView().getParent();
      menu.show(parent, 0, 0);
View Full Code Here

      menu.show(c, 0, c.getHeight());
    }
    else
    {
      final Component parent = reportDesignerContext1.getView().getParent();
      menu.show(parent, 0, 0);
    }
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.