java.lang.Object
javax.swing.Popup
- See Also:
- Top Examples, Source Code,
PopupFactory
public void hide()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Popup()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[734]Pop up menu
By Anonymous on 2005/04/28 14:22:00 Rate
component.addMouseListener ( new MouseAdapter ( ) {
public void mousePressed ( MouseEvent evt ) {
if ( evt.isPopupTrigger ( ) ) {
menu.show ( evt.getComponent ( ) , evt.getX ( ) , evt.getY ( ) ) ;
}
}
public void mouseReleased ( MouseEvent evt ) {
if ( evt.isPopupTrigger ( ) ) {
menu.show ( evt.getComponent ( ) , evt.getX ( ) , evt.getY ( ) ) ;
}
}
} ) ;
protected Popup(Component owner,
Component contents,
int x,
int y)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void show()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples