本文整理了Java中javax.swing.Box.setVisible()
方法的一些代码示例,展示了Box.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Box.setVisible()
方法的具体详情如下:
包路径:javax.swing.Box
类名称:Box
方法名:setVisible
暂无
代码示例来源:origin: gov.nih.nlm.nls.lvg/lvg2010dist
public static void SetShowFile(boolean showTerm)
{
term_.setVisible(showTerm);
file_.setVisible(!showTerm);
}
// private data
代码示例来源:origin: gov.nih.nlm.nls.lvg/lvg2010dist
public static void SetShowCommand(boolean showCmd)
{
cmd_.setVisible(showCmd);
}
// set command box editable or not
代码示例来源:origin: eu.mihosoft.vrl/vrl
/**
* @param hideButtonBox the hideButtonBox to set
*/
public void setHideButtonBox(boolean hideButtonBox) {
this.hideButtonBox = hideButtonBox;
buttonBox.setVisible(!hideButtonBox);
}
代码示例来源:origin: eu.mihosoft.vrl/vrl
@Override
public void setCurrentRepresentationType(
RepresentationType representationType) {
super.setCurrentRepresentationType(representationType);
if (isOutput()) {
buttonBox.setVisible(false);
} else {
buttonBox.setVisible(true);
}
}
代码示例来源:origin: cmu-phil/tetrad
@Override
public void actionPerformed(ActionEvent e) {
// Show file list
fileListBox.setVisible(true);
basicSettingsBox.setVisible(true);
// Show options
advancedSettingsBox.setVisible(true);
// Show preview
previewContainer.setVisible(true);
// Hide summary
validationResultsContainer.setVisible(false);
// Hide step 1 backward button
settingsButton.setVisible(false);
// Show validate button
validateButton.setVisible(true);
// Hide finish button
loadButton.setVisible(false);
// Reset the list model
validatedFileListModel.clear();
// Removes all elements for each new validation
validationResults.clear();
// Also reset the failedFiles list
failedFiles.clear();
}
});
代码示例来源:origin: icza/scelight
/**
* Creates a new {@link XTabbedPane}.
*/
public XTabbedPane() {
addCenter( wrappedTabbedPane );
titlesPark.setVisible( false );
contentsPark.setVisible( false );
addNorth( titlesPark );
addSouth( contentsPark );
}
代码示例来源:origin: eu.mihosoft.vrl/vrl
@Override
public void capabilityChanged(
CapabilityManager manager, Integer bit) {
if (manager.isCapable(CanvasCapabilities.ALLOW_CONNECT)
&& isInput()) {
buttonBox.setVisible(!isHideButtonBox());
revalidate();
updateLayout();
} else {
buttonBox.setVisible(false);
revalidate();
updateLayout();
}
}
});
代码示例来源:origin: gov.nih.nlm.nls.lvg/lvg2010dist
term_.add(new JLabel("Term: "));
term_.add(termField_);
term_.setVisible(LvgGlobal.inputFromScreen_);
file_.setVisible(!LvgGlobal.inputFromScreen_);
代码示例来源:origin: gov.nih.nlm.nls.lvg/lvg2010dist
cmd_.add(new JLabel("Lvg command: "));
cmd_.add(cmdField_);
cmd_.setVisible(LvgFrame.GetShowCmd()); // init condition
GridBag.SetPosSize(gbc, 0, 3, 5, 1);
add(cmd_, gbc);
代码示例来源:origin: cmu-phil/tetrad
validationResultsContainer.setVisible(false);
代码示例来源:origin: icza/scelight
@Override
public void actionPerformed( final ActionEvent event ) {
if ( enlargementState == EnlargementState.NORMAL )
storedDividerLocation = splitPane.getHeight() == 0 ? 1 : (double) splitPane.getDividerLocation() / splitPane.getHeight();
if ( enlargementState == EnlargementState.ENLARGED )
storedDividerLocation2 = Env.MAIN_FRAME.multiPageComp.getWidth() == 0 ? 1 : (double) Env.MAIN_FRAME.multiPageComp.getDividerLocation()
/ Env.MAIN_FRAME.multiPageComp.getWidth();
enlargementState = enlargementState.next();
toolBarsBox.setVisible( enlargementState == EnlargementState.NORMAL );
Env.MAIN_FRAME.multiPageComp.getLeftComponent().setVisible( enlargementState != EnlargementState.ENLARGED_FULL );
Env.MAIN_FRAME.multiPageComp.validate();
// splitPane.getParent().validate();
eventsTableComp.setVisible( enlargementState == EnlargementState.NORMAL );
if ( enlargementState == EnlargementState.NORMAL )
splitPane.setDividerLocation( (int) ( splitPane.getHeight() * storedDividerLocation ) );
if ( enlargementState == EnlargementState.NORMAL )
Env.MAIN_FRAME.multiPageComp.setDividerLocation( (int) ( Env.MAIN_FRAME.multiPageComp.getWidth() * storedDividerLocation2 ) );
if ( enlargementState != EnlargementState.NORMAL )
chartsCanvas.requestFocusInWindow();
}
};
代码示例来源:origin: eu.mihosoft.vrl/vrl
buttonBox.setVisible(!isHideButtonBox());
内容来源于网络,如有侵权,请联系作者删除!