本文整理了Java中javax.swing.JWindow.isVisible()
方法的一些代码示例,展示了JWindow.isVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JWindow.isVisible()
方法的具体详情如下:
包路径:javax.swing.JWindow
类名称:JWindow
方法名:isVisible
暂无
代码示例来源:origin: com.fifesoft/autocomplete
/**
* Returns whether this tool tip is visible.
*
* @return Whether this tool tip is visible.
* @see #setVisible(boolean)
*/
public boolean isVisible() {
return tooltip.isVisible();
}
代码示例来源:origin: com.jidesoft/jide-oss
/**
* Gets the visibility of this popup.
*
* @return true if popup is visible
*/
public boolean isVisible() {
return _delegate != null ? _delegate.isVisible() : false;
}
代码示例来源:origin: org.protege/protege-editor-owl
public void keyReleased(KeyEvent e) {
if (e.getKeyCode() != KeyEvent.VK_UP && e.getKeyCode() != KeyEvent.VK_DOWN) {
if (popupWindow.isVisible() && !lastTextUpdate.equals(textComponent.getText())) {
lastTextUpdate = textComponent.getText();
updatePopup(getMatches());
}
}
}
};
代码示例来源:origin: protegeproject/protege
public void keyReleased(KeyEvent e) {
if (e.getKeyCode() != KeyEvent.VK_UP && e.getKeyCode() != KeyEvent.VK_DOWN) {
if (popupWindow.isVisible() && !lastTextUpdate.equals(textComponent.getText())) {
lastTextUpdate = textComponent.getText();
updatePopup(getMatches());
}
}
}
};
代码示例来源:origin: edu.stanford.protege/protege-editor-owl
public void keyReleased(KeyEvent e) {
if (e.getKeyCode() != KeyEvent.VK_UP && e.getKeyCode() != KeyEvent.VK_DOWN) {
if (popupWindow.isVisible() && !lastTextUpdate.equals(textComponent.getText())) {
lastTextUpdate = textComponent.getText();
updatePopup(getMatches());
}
}
}
};
代码示例来源:origin: edu.stanford.protege/org.protege.editor.owl
public void keyReleased(KeyEvent e) {
if (e.getKeyCode() != KeyEvent.VK_UP && e.getKeyCode() != KeyEvent.VK_DOWN) {
if (popupWindow.isVisible() && !lastTextUpdate.equals(textComponent.getText())) {
lastTextUpdate = textComponent.getText();
updatePopup(getMatches());
}
}
}
};
代码示例来源:origin: chatty/chatty
private void hideCompletionInfoWindow() {
if (infoWindow != null && infoWindow.isVisible()) {
infoWindow.setVisible(false);
}
}
代码示例来源:origin: org.riedelcastro/whatswrong
public WindowMenuItem(final JWindow window, String text) {
super(text, window.isVisible());
addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
window.setVisible(!window.isVisible());
}
});
}
代码示例来源:origin: chatty/chatty
private void reshowCompletionInfoWindow() {
if (infoWindow != null && !infoWindow.isVisible() && inCompletion) {
infoWindow.setVisible(true);
}
}
代码示例来源:origin: org.cytoscape/splash
public void hideScreen() {
if ((window != null) && window.isVisible())
window.dispose();
}
}
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
@Override
public void mouseDragged(MouseEvent e) {
DesktopIconHoverPreviewWidget.this.isInDrag = true;
if (DesktopIconHoverPreviewWidget.this.previewWindow.isVisible()) {
DesktopIconHoverPreviewWidget.this.syncPreviewWindow(false);
DesktopIconHoverPreviewWidget.this.previewWindow.dispose();// setVisible(false);
}
}
}
代码示例来源:origin: com.fifesoft.rtext/fife.common
@Override
public void actionPerformed(ActionEvent e) {
if (popupWindow!=null && popupWindow.isVisible()) {
int index = fileList.getSelectedIndex();
int size = fileList.getModel().getSize();
index = (index<size-1) ? (index+1) : 0;
fileList.setSelectedIndex(index);
fileList.ensureIndexIsVisible(index);
}
}
});
代码示例来源:origin: org.riedelcastro/whatswrong
public void actionPerformed(ActionEvent e) {
window.setVisible(!window.isVisible());
}
});
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
public void offer(JTabbedPane tabPane, int tabIndex,
BufferedImage componentSnap) {
if (TabPagerManager.this.currTabbedPane != tabPane) {
// has since been cancelled
return;
}
if (!this.previewWindow.isVisible()) {
// has since been hidden
return;
}
this.previewControl.setPreviewImage(componentSnap, true);
}
}
代码示例来源:origin: com.fifesoft.rtext/fife.common
@Override
public void actionPerformed(ActionEvent e) {
if (popupWindow!=null && popupWindow.isVisible()) {
int index = fileList.getSelectedIndex();
index = (index>0) ? (index-1) :
(fileList.getModel().getSize()-1);
fileList.setSelectedIndex(index);
fileList.ensureIndexIsVisible(index);
}
}
});
代码示例来源:origin: cpesch/RouteConverter
private void show() {
if (!window.isVisible())
window.setVisible(true);
}
代码示例来源:origin: com.fifesoft.rtext/fife.common
@Override
public void actionPerformed(ActionEvent e) {
if (popupWindow!=null && popupWindow.isVisible()) {
int index = fileList.getSelectedIndex();
if (index>0) {
int visRows = fileList.getVisibleRowCount();
index = Math.max(index-visRows, 0);
fileList.setSelectedIndex(index);
fileList.ensureIndexIsVisible(index);
}
}
}
});
代码示例来源:origin: cytoscape/application
/**
* DOCUMENT ME!
*/
public static void hideSplash() {
if ((splashWindow != null) && splashWindow.isVisible()) {
splashWindow.setVisible(false);
if (splashContent != null) {
splashWindow.getContentPane().remove(splashContent);
splashContent = null;
}
}
}
}
代码示例来源:origin: halirutan/IntelliJ-Key-Promoter
private void handleWindowEvent() {
// To paint tip over dialogs
if (myTipWindow != null && myTipWindow.isVisible()) {
myTipWindow.setVisible(false);
myTipWindow.setVisible(true);
myTipWindow.repaint();
}
}
代码示例来源:origin: protegeproject/protege
private void completeWithPopupSelection() {
if (popupWindow.isVisible()) {
Object selObject = popupList.getSelectedValue();
if (selObject != null) {
if (selObject instanceof OWLEntity) {
insertWord(getInsertText(selObject));
}
else {
insertWord(getInsertText(selObject));
}
hidePopup();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!