本文整理了Java中javax.swing.JLabel.isVisible()
方法的一些代码示例,展示了JLabel.isVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.isVisible()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:isVisible
暂无
代码示例来源:origin: apache/pdfbox
void updateCounterLabel(int now, int total)
{
if (!counterLabel.isVisible())
{
counterLabel.setVisible(true);
}
if (total == 0)
{
counterLabel.setText(" No match found ");
nextAction.setEnabled(false);
return;
}
counterLabel.setText(" " + now + " of " + total + " ");
}
代码示例来源:origin: violetumleditor/violetumleditor
/**
* @return true is button's text is visible.
*/
public boolean isTextVisible() {
return this.textLabel.isVisible();
}
代码示例来源:origin: com.synaptix/SynaptixWidget
public boolean isShowLabel() {
return nbLabel.isVisible();
}
代码示例来源:origin: com.l2fprod.common/l2fprod-common-shared
public boolean isIconVisible() {
return iconLabel.isVisible();
}
代码示例来源:origin: lbalazscs/Pixelitor
public boolean isVisible() {
return label.isVisible();
}
代码示例来源:origin: com.synaptix/SynaptixWidget
public boolean isShowLabel() {
return nbLabel.isVisible();
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
public void actionPerformed(ActionEvent ae) {
m_jStatusBar.setVisible(!m_jStatusBar.isVisible());
} // actionPerformed
} // class ActionViewStatusbar
代码示例来源:origin: Waikato/weka-trunk
@Override
public void actionPerformed(ActionEvent ae) {
m_jStatusBar.setVisible(!m_jStatusBar.isVisible());
} // actionPerformed
} // class ActionViewStatusbar
代码示例来源:origin: com.synaptix/SynaptixSwing
public void setShowCalendar(boolean showCalendar) {
this.showCalendar = showCalendar;
label.setVisible(showCalendar && label.isVisible());
}
代码示例来源:origin: com.synaptix/SynaptixSwing
public void setShowCalendar(boolean showCalendar) {
this.showCalendar = showCalendar;
label.setVisible(showCalendar && label.isVisible());
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
public void setInfo(String info) {
this.infoButton.setVisible(true);
this.infoButtonPadding.setVisible(infoButton.isVisible());
this.info = info;
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = VISIBLE_JSDOC)
@Override
public boolean getVisible() {
return super.isVisible();
}
代码示例来源:origin: org.cytoscape/work-swing-impl
public void setTaskTitle(final String taskTitle) {
final String currentTitle = titleLabel.getText();
if (currentTitle == null || currentTitle.length() == 0) {
titleLabel.setText(taskTitle);
super.setTitle("Cytoscape: " + taskTitle);
} else {
if (!subtitleLabel.isVisible()) {
subtitleLabel.setVisible(true);
delayedPack(); // component visibilities change -- update dialog size to reflect this
}
subtitleLabel.setText(taskTitle);
}
}
代码示例来源:origin: robo-code/robocode
@Override
public boolean isReady() {
if (getVersionLabel().isVisible()) {
String text = getVersionField().getText();
if (text.length() == 0 || !text.matches("([a-zA-Z0-9.])*[a-zA-Z0-9]+")) {
return false;
}
}
return getDescriptionArea().getText().length() != 0;
}
代码示例来源:origin: Multibit-Legacy/multibit-hd
@Override
public void actionPerformed(ActionEvent e) {
// Toggle the visibility of the current log details
currentLogLabel.setVisible(!currentLogLabel.isVisible());
currentLogScrollPane.setVisible(!currentLogScrollPane.isVisible());
pack();
}
};
代码示例来源:origin: org.jdtaus.core/jdtaus-core-utilities
public void run()
{
if ( !indeterminate )
{
state.panel.getProgressBar().setValue( progress );
}
if ( progressDescription != null )
{
final String oldText = state.panel.getProgressDescriptionLabel().getText();
final String newText = progressDescription.getText( getLocale() );
if ( oldText == null || !oldText.equals( newText ) )
{
state.panel.getProgressDescriptionLabel().setText( newText );
if ( !state.panel.getProgressDescriptionLabel().isVisible() )
{
state.panel.getProgressDescriptionLabel().setVisible( true );
}
}
}
else if ( state.panel.getProgressDescriptionLabel().isVisible() )
{
state.panel.getProgressDescriptionLabel().setVisible( false );
}
}
代码示例来源:origin: com.github.insubstantial/flamingo
@Override
public void paint(Graphics g, JComponent c) {
Color bg = this.buttonPanel.getBackground();
g.setColor(bg);
g.fillRect(0, 0, c.getWidth(), c.getHeight());
for (int i = 0; i < this.buttonPanel.getGroupCount(); i++) {
Rectangle groupRect = this.groupRects[i];
this.paintGroupBackground(g, i, groupRect.x, groupRect.y,
groupRect.width, groupRect.height);
if (this.groupLabels[i].isVisible()) {
Rectangle groupTitleBackground = this.groupLabels[i]
.getBounds();
this.paintGroupTitleBackground(g, i, groupRect.x,
groupTitleBackground.y - getGroupInsets().top,
groupRect.width, groupTitleBackground.height
+ getGroupInsets().top + getLayoutGap());
}
}
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
public void testDebuggableModuleSelected() {
mockLoggedInUser();
binding = mock(ProjectDebuggeeBinding.class);
when(binding.buildResult(any(Project.class))).thenReturn(new CloudDebugProcessState());
ProjectRepositoryValidator repositoryValidator = mock(ProjectRepositoryValidator.class);
SyncResult syncResult = mockSyncResult(false, true);
when(repositoryValidator.checkSyncStashState()).thenReturn(syncResult);
CloudAttachDialog dialog = initDialog();
dialog.setProjectRepositoryValidator(repositoryValidator);
selectProjectWithDebuggableModules();
ValidationInfo error = dialog.doValidate();
assertNull(error);
assertFalse(warningMessage.isVisible());
assertFalse(warningHeader.isVisible());
assertFalse(syncStashCheckbox.isVisible());
assertTrue(targetSelector.isEnabled());
dialog.close(0);
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
@Test
public void noAvailableBomVersions_hidesBomUi() {
when(mavenService.getAllBomVersions()).thenReturn(ImmutableList.of());
MavenTestUtils.getInstance()
.runWithMavenModule(
testFixture.getProject(),
module -> {
mavenCloudApiUiExtension.createCustomUiComponents();
BomComboBox bomComboBox = mavenCloudApiUiExtension.getBomComboBox();
bomComboBox.populateBomVersions(testFixture.getProject(), module1);
assertThat(mavenCloudApiUiExtension.getBomSelectorLabel().isVisible()).isFalse();
assertThat(mavenCloudApiUiExtension.getBomComboBox().isVisible()).isFalse();
});
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
public void testNoModulesFound() {
CloudAttachDialog dialog = initDialog();
mockLoggedInUser();
selectEmptyProject();
ValidationInfo error = dialog.doValidate();
assertNotNull(error);
assertEquals(NO_MODULES_FOUND_WARNING, error.message);
assertFalse(warningMessage.isVisible());
assertFalse(warningHeader.isVisible());
assertFalse(targetSelector.isEnabled());
dialog.close(0);
}
内容来源于网络,如有侵权,请联系作者删除!