本文整理了Java中javax.swing.JInternalFrame.isVisible()
方法的一些代码示例,展示了JInternalFrame.isVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.isVisible()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:isVisible
暂无
代码示例来源:origin: geotools/geotools
if (warningArea == null || !window.isVisible()) {
window.dispose();
代码示例来源:origin: bcdev/beam
private JInternalFrame[] getVisibleFrames(final JInternalFrame[] frames) {
ArrayList<JInternalFrame> list = new ArrayList<JInternalFrame>();
for (JInternalFrame frame : frames) {
if (frame.isVisible() && !frame.isIcon()) {
list.add(frame);
}
}
return list.toArray(new JInternalFrame[list.size()]);
}
代码示例来源:origin: antlr/antlrworks
public boolean isVisible() {
if(useDesktop) {
return jInternalFrame != null && jInternalFrame.isVisible();
} else {
return jFrame.isVisible();
}
}
代码示例来源:origin: com.numdata/numdata-swing
/**
* Returns the number of visible windows.
*
* @return Number of visible windows.
*/
public int getVisibleWindowCount()
{
int result = 0;
for ( int i = 0, componentCount = _desktop.getComponentCount(); i < componentCount; i++ )
{
final Component component = _desktop.getComponent( i );
if ( component instanceof JInternalFrame )
{
final JInternalFrame frame = (JInternalFrame)component;
if ( frame.isVisible() )
{
result++;
}
}
}
return result;
}
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
while (internalFrame != null && internalFrame.isVisible()) {
try {
this.wait(10);
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
for (int i = 0; i < l; i++) {
if (frames[i].isClosed()) continue;
if (!frames[i].isVisible()) continue;
代码示例来源:origin: org.geotools/gt2-widgets-swing
if (warningArea==null || !window.isVisible()) {
window.dispose();
代码示例来源:origin: org.geotools/gt-swing
if (warningArea==null || !window.isVisible()) {
window.dispose();
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
/**
* Calculate the required size of this desktop pane so that
* all visible intenal frames will be fully shown.
*
* @return <TT>Dimension</TT> required size.
*/
public Dimension getRequiredSize()
{
JInternalFrame[] frames = getAllFrames();
int maxX = 0;
int maxY = 0;
for (int i = 0; i < frames.length; ++i)
{
if (frames[i].isVisible())
{
JInternalFrame frame = frames[i];
int x = frame.getX() + frame.getWidth();
if (x > maxX)
{
maxX = x;
}
int y = frame.getY() + frame.getHeight();
if (y > maxY)
{
maxY = y;
}
}
}
return new Dimension(maxX, maxY);
}
代码示例来源:origin: realXuJiang/bigtable-sql
/**
* Calculate the required size of this desktop pane so that
* all visible intenal frames will be fully shown.
*
* @return <TT>Dimension</TT> required size.
*/
public Dimension getRequiredSize()
{
JInternalFrame[] frames = getAllFrames();
int maxX = 0;
int maxY = 0;
for (int i = 0; i < frames.length; ++i)
{
if (frames[i].isVisible())
{
JInternalFrame frame = frames[i];
int x = frame.getX() + frame.getWidth();
if (x > maxX)
{
maxX = x;
}
int y = frame.getY() + frame.getHeight();
if (y > maxY)
{
maxY = y;
}
}
}
return new Dimension(maxX, maxY);
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void activateInternalFrame(JInternalFrame _f) {
if (!SwingUtilities.isEventDispatchThread()) throw new RuntimeException("Not in swing thread. "
+ "Use Implementation.activateInternalFrame() instead");
if (!_f.isVisible()) {
_f.setVisible(true);
}
if (_f.isClosed()) {
try {
_f.setClosed(false);
} catch (PropertyVetoException ex) {}
}
checkInternalFrame(_f);
if (_f.isIcon()) {
try {
_f.setIcon(false);
} catch (PropertyVetoException ex) {}
}
// if(!isPalette(_f))
{
moveToFront(_f);
if (!_f.isSelected() && !isPalette(_f)) {
try {
_f.setSelected(true);
} catch (PropertyVetoException ex) {}
}
}
}
代码示例来源:origin: bcdev/beam
public void addFrame(final JInternalFrame internalFrame) {
if (!internalFrame.isVisible()) {
internalFrame.setVisible(true);
}
internalFrame.addInternalFrameListener(frameListener);
desktopPane.add(internalFrame);
addTabFor(internalFrame);
if (internalFrame.isSelected()) {
selectTabFor(internalFrame);
} else {
try {
internalFrame.setSelected(true);
} catch (PropertyVetoException ignored) {
}
}
internalFrame.addPropertyChangeListener(JInternalFrame.TITLE_PROPERTY, new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
final InternalFrameProxy placeHolder = getPlaceHolderFor(internalFrame);
final int index = tabbedPane.indexOfComponent(placeHolder);
if (index > -1) {
tabbedPane.setTitleAt(index, internalFrame.getTitle());
}
}
});
}
代码示例来源:origin: antlr/antlrworks
if(f.isVisible()) {
try {
f.setSelected(true);
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
} else if (frames[i].isVisible()) {
Point p = frames[i].getLocation();
p.x -= qmin.x;
内容来源于网络,如有侵权,请联系作者删除!