📄 popupmenu.java
字号:
package java.awt;/** * class PopupMenu - * * Copyright (c) 1999 * Transvirtual Technologies, Inc. All rights reserved. * * See the file "license.terms" for information on usage and redistribution * of this file. * */public class PopupMenu extends Menu{public PopupMenu() { super( "");}PopupMenu ( Menu m) { super(m.label); items = m.items;}public PopupMenu( String label) { super( label);}public void show( Component c, int x, int y) { owner = c; parent = null; addNotify(); for ( ; c != null; c = c.parent) { if ( c instanceof NativeContainer ) { Toolkit.menuAssign( ((NativeContainer)c).nativeData, nativeData, x, y); return; } else if ( c instanceof NativeComponent ) { Toolkit.menuAssign( ((NativeComponent)c).nativeData, nativeData, x, y); return; } x += c.x; y += c.y; }}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -