本文整理了Java中javax.swing.Popup.hide()
方法的一些代码示例,展示了Popup.hide()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Popup.hide()
方法的具体详情如下:
包路径:javax.swing.Popup
类名称:Popup
方法名:hide
暂无
代码示例来源:origin: magefree/mage
@Override
public void componentHidden(ComponentEvent e) {
if (tooltipPopup != null) {
tooltipPopup.hide();
}
}
代码示例来源:origin: apache/geode
public void showPopupText(int x, int y, int xOnScreen, int yOnScreen) {
LifelineState state = getStateAt(x, y);
if (state == mouseoverState) {
return;
}
if (mouseover != null) {
mouseover.hide();
}
if (state == null) {
mouseover = null;
mouseoverState = null;
} else {
Component popupContents = state.getPopup();
mouseoverState = state;
mouseover =
PopupFactory.getSharedInstance().getPopup(this, popupContents, xOnScreen + 20, yOnScreen);
mouseover.show();
}
}
代码示例来源:origin: magefree/mage
@Override
public void focusLost(FocusEvent arg0) {
if (tooltipPopup != null) {
tooltipPopup.hide();
}
this.repaint();
}
代码示例来源:origin: ron190/jsql-injection
this.popup.hide();
if ((parent != null) && parent.getBorder() == SHADOW_BORDER) {
parent.setBorder(this.oldBorder);
代码示例来源:origin: magefree/mage
/**
* Hides the text popup window
*/
public void hideTooltipPopup() {
this.tooltipCard = null;
if (tooltipPopup != null) {
tooltipPopup.hide();
}
if (jPopupMenu != null) {
jPopupMenu.setVisible(false);
}
try {
if (SessionHandler.getSession() == null) {
return;
}
// set enlarged card display to visible = false
Component popupContainer = MageFrame.getUI().getComponent(MageComponents.POPUP_CONTAINER);
popupContainer.setVisible(false);
} catch (Exception e2) {
LOGGER.warn("Can't set tooltip to visible = false", e2);
}
}
代码示例来源:origin: magefree/mage
@Override
public void mouseEntered(MouseEvent arg0) {
if (!tooltipShowing) {
if (tooltipPopup != null) {
tooltipPopup.hide();
}
PopupFactory factory = PopupFactory.getSharedInstance();
int x = (int) this.getLocationOnScreen().getX() + (permanent.isTapped()?Config.dimensions.frameHeight:Config.dimensions.frameWidth);
int y = (int) this.getLocationOnScreen().getY() + 40;
tooltipPopup = factory.getPopup(this, tooltipText, x, y);
tooltipPopup.show();
//hack to get tooltipPopup to resize to fit text
tooltipPopup.hide();
tooltipPopup = factory.getPopup(this, tooltipText, x, y);
tooltipPopup.show();
tooltipShowing = true;
}
}
代码示例来源:origin: magefree/mage
private void showTooltipPopup(final TransferData data, final Component parentComponent, final Point parentPoint) {
if (data.component != null) {
tooltipDelay = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_SHOW_TOOLTIPS_DELAY, 300);
if (tooltipDelay == 0) {
return;
}
}
if (cardInfoPane == null) {
PopupFactory factory = PopupFactory.getSharedInstance();
if (data.locationOnScreen == null) {
if (data.component == null) {
return;
}
data.locationOnScreen = data.component.getLocationOnScreen();
}
data.popupText.updateText();
tooltipPopup = factory.getPopup(data.component, data.popupText, (int) data.locationOnScreen.getX() + data.popupOffsetX, (int) data.locationOnScreen.getY() + data.popupOffsetY + 40);
tooltipPopup.show();
// hack to get popup to resize to fit text
tooltipPopup.hide();
tooltipPopup = factory.getPopup(data.component, data.popupText, (int) data.locationOnScreen.getX() + data.popupOffsetX, (int) data.locationOnScreen.getY() + data.popupOffsetY + 40);
tooltipPopup.show();
} else {
sumbitShowPopupTask(data, parentComponent, parentPoint);
}
}
代码示例来源:origin: magefree/mage
if (!tooltipShowing) {
if (tooltipPopup != null) {
tooltipPopup.hide();
tooltipPopup.show();
tooltipPopup.hide();
tooltipPopup = factory.getPopup(this, tooltipText, (int) this.getLocationOnScreen().getX() + Config.dimensions.frameWidth, (int) this.getLocationOnScreen().getY() + 40);
tooltipPopup.show();
代码示例来源:origin: org.netbeans.api/org-openide-explorer
private void ensureOldPopupsHidden() {
for (int i=0; i < popups.length; i++) {
if (popups[i] != null) {
popups[i].hide();
popups[i] = null;
}
}
}
代码示例来源:origin: chatty/chatty
private void hideFixedChatInfo() {
if (popup != null) {
popup.hide();
popup = null;
}
}
}
代码示例来源:origin: org.cytoscape/filter2-impl
/**
* Resets / hides Popup window.
*/
public void resetPopup() {
if (popup != null) {
popup.hide();
}
this.popup = null;
}
代码示例来源:origin: cytoscape.coreplugins/quickfind
/**
* Resets / hides Popup window.
*/
public void resetPopup() {
if (popup != null) {
popup.hide();
}
this.popup = null;
}
代码示例来源:origin: magefree/mage
@Override
public void mouseExited(MouseEvent arg0) {
if (getMousePosition(true) != null) {
return;
}
if (tooltipPopup != null) {
tooltipPopup.hide();
tooltipShowing = false;
ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.TARGET);
ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.PAIRED);
ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.BANDED);
ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.SOURCE);
ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.ENCHANT_PLAYERS);
}
}
代码示例来源:origin: com.github.insubstantial/flamingo
void hideTipWindow() {
if (tipWindow != null) {
tipWindow.hide();
tipWindow = null;
tipShowing = false;
tip = null;
dismissTimer.stop();
}
}
代码示例来源:origin: chatty/chatty
public void hide() {
if (popup != null) {
popup.hide();
popup = null;
lastShown = System.currentTimeMillis();
}
if (preparingToShow) {
preparingToShow = false;
showTimer.stop();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-visualizers
private void hideCellTipWindow() {
if (cellTipPopup != null) {
if (cellTipWindow != null) {
cellTipWindow.removeMouseListener(this);
cellTipWindow = null;
}
cellTipPopup.hide();
cellTipPopup = null;
cellTip = null;
}
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-extra
void hideTip() {
if (popup != null) {
popup.hide();
popup = null;
DataTipManager.get().setTipWindow(null, null);
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
private void hideCellTipWindow() {
if (cellTipPopup != null) {
if (cellTipWindow != null) {
cellTipWindow.removeMouseListener(this);
cellTipWindow.removeMouseWheelListener(this);
cellTipWindow = null;
}
cellTipPopup.hide();
cellTipPopup = null;
cellTip = null;
}
}
代码示例来源:origin: stackoverflow.com
Popup popup = new Popup();
// add content (you can add as many nodes as you want)
popup.getContent().add(new Label("Hello Popup!"));
// show (move this to the double-click listener)
popup.show(primaryStage);
// hide (move this to the click listener)
popup.hide();
代码示例来源:origin: org.codehaus.mevenide/nb-project
private void hidePopup() {
field.getInputMap().remove(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0));
field.getInputMap().remove(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0));
if (popup != null) {
popup.hide();
popup = null;
}
}
内容来源于网络,如有侵权,请联系作者删除!