本文整理了Java中javax.swing.JWindow.setVisible()
方法的一些代码示例,展示了JWindow.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JWindow.setVisible()
方法的具体详情如下:
包路径:javax.swing.JWindow
类名称:JWindow
方法名:setVisible
暂无
代码示例来源:origin: 4thline/cling
@Override
public void dispose() {
super.dispose();
ShutdownWindow.INSTANCE.setVisible(true);
new Thread() {
@Override
public void run() {
System.exit(0);
}
}.start();
}
代码示例来源:origin: stackoverflow.com
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
} catch (IOException ex) {
ex.printStackTrace();
代码示例来源:origin: bobbylight/RSyntaxTextArea
@Override
public void setVisible(boolean visible) {
if (list.getModel().getSize()==0) {
UIManager.getLookAndFeel().provideErrorFeedback(textArea);
return;
}
super.setVisible(visible);
updateTextAreaCaret(visible);
if (visible) {
SwingUtilities.invokeLater(() -> {
requestFocus();
if (list.getModel().getSize()>0) {
list.setSelectedIndex(0);
}
list.requestFocusInWindow();
});
}
}
代码示例来源:origin: chatty/chatty
@Override
public void componentHidden(ComponentEvent e) {
infoWindow.setVisible(false);
}
};
代码示例来源:origin: undera/jmeter-plugins
private void hideHoverInfo() {
hoverWindow.setVisible(false);
xHoverInfo = -1;
yHoverInfo = -1;
}
代码示例来源:origin: com.fifesoft/autocomplete
/**
* Toggles the visibility of this tool tip.
*
* @param visible Whether this tool tip should be visible.
* @see #isVisible()
*/
public void setVisible(boolean visible) {
tooltip.setVisible(visible);
}
代码示例来源:origin: de.uni_leipzig.asv.toolbox/toolbox-utils
/**
* destroy splash screen
*/
public void hideSplash() {
this.splashScreen.setVisible(false);
this.splashScreen = null;
}
代码示例来源:origin: otros-systems/otroslogviewer
protected void hideSuggestions() {
if (suggestionWindow != null) {
suggestionWindow.setVisible(false);
}
}
代码示例来源:origin: com.google.code.findbugs/findbugs
@Override
public void setVisible(boolean b) {
super.setVisible(b);
if (!b) {
animator.interrupt();
}
}
代码示例来源:origin: igniterealtime/Spark
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
int index = list.getSelectedIndex();
if (index >= 0) {
ContactItem selection = (ContactItem)list.getSelectedValue();
textField.setText(selection.getDisplayName());
popup.setVisible(false);
}
}
}
});
代码示例来源:origin: igniterealtime/Spark
public void dispose() {
window.setVisible(false);
contactItem = null;
window.dispose();
}
代码示例来源:origin: chatty/chatty
private void reshowCompletionInfoWindow() {
if (infoWindow != null && !infoWindow.isVisible() && inCompletion) {
infoWindow.setVisible(true);
}
}
代码示例来源:origin: com.fifesoft/autocomplete
/**
* {@inheritDoc}
*/
@Override
public void setVisible(boolean visible) {
if (!visible) {
clearHistory();
}
super.setVisible(visible);
}
代码示例来源:origin: net.sf.ingenias/editor
@Override
public void setVisible(boolean b) {
// TODO Auto-generated method stub
super.setVisible(b);
if (!b)
ids.setNotBusy();
}
代码示例来源:origin: freeplane/freeplane
@Override
public void setVisible(final boolean b) {
super.setVisible(b);
if (b) {
paintImmediately();
}
}
代码示例来源:origin: chatty/chatty
private void hideCompletionInfoWindow() {
if (infoWindow != null && infoWindow.isVisible()) {
infoWindow.setVisible(false);
}
}
代码示例来源:origin: google/sagetv
public void actionPerformed(ActionEvent evt)
{
if (Sage.getBoolean("dispose_windows", false))
poppy.dispose();
else
poppy.setVisible(false);
}
});
代码示例来源:origin: google/sagetv
public void actionPerformed(ActionEvent evt)
{
if (Sage.getBoolean("dispose_windows", false))
poppy.dispose();
else
poppy.setVisible(false);
SageTV.exit();
}
});
代码示例来源:origin: org.fudaa.framework.ebli/ebli-3d
public void keyTyped(final KeyEvent _ke) {
if (_ke.getKeyChar() == 27) {
win.setVisible(false);
cwin.remove(u_.getCanvas3D());
frame_.getContentPane().add("Center", u_.getCanvas3D());
frame_.setVisible(true);
} else if (_ke.getKeyChar() == ' ') {
mag_.play();
}
}
});
代码示例来源:origin: chatty/chatty
public void show() {
if (activityTime <= 0 || ActivityTracker.getLastActivityAgo() < activityTime) {
startTimer(false);
} else {
activityListener = new MyActivityListener();
ActivityTracker.addActivityListener(activityListener);
}
startFallbackTimer();
visibleSince = System.currentTimeMillis();
window.setVisible(true);
}
内容来源于网络,如有侵权,请联系作者删除!