Method setLocation(int x, int y)
Return type: void
Member of:
javax.swing.JPopupMenu
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
this.setLocation((int)componentToLocateUppon.getLocationOnScreen().getX(), (int)componentToLocateUppon.getLocationOnScreen().getY());
2
selectorMenu.setLocation(x, y + getYPopupLocation());
3
menu.setLocation(mevt.getX() + pt.x, mevt.getY() + pt.y);
4
popup.setLocation(newPt.x, newPt.y);
5
popupMenu.setLocation(this.getX() + this.diagramView.getX() + this.diagramView.getWidth() - popupMenu.getWidth(),
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.