Popup mypopup = PopupFactory.getSharedInstance().getPopup(frame, new JLabel("popupwindow"), x,y); mypopup.show();其中函数API:getPopup(Component owner, Component contents, int x, int y) Creates a Popup for the Component owner containing the Component contents.
new JLabel("popupwindow"), x,y);
mypopup.show();其中函数API:getPopup(Component owner, Component contents, int x, int y)
Creates a Popup for the Component owner containing the Component contents.