本文整理了Java中javax.swing.JPanel.isVisible()
方法的一些代码示例,展示了JPanel.isVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.isVisible()
方法的具体详情如下:
包路径:javax.swing.JPanel
类名称:JPanel
方法名:isVisible
暂无
代码示例来源:origin: RipMeApp/ripme
private boolean isCollapsed() {
return (!logPanel.isVisible() &&
!historyPanel.isVisible() &&
!queuePanel.isVisible() &&
!configurationPanel.isVisible()
);
}
代码示例来源:origin: libgdx/libgdx
public void mouseClicked (MouseEvent event) {
if(!isAlwaysShown)
showContent(!contentPanel.isVisible());
}
});
代码示例来源:origin: libgdx/libgdx
public void mouseClicked (MouseEvent event) {
if(!isAlwaysShown)
showContent(!contentPanel.isVisible());
}
});
代码示例来源:origin: RipMeApp/ripme
private void upgradeProgram() {
if (!configurationPanel.isVisible()) {
optionConfiguration.doClick();
}
Runnable r = () -> UpdateUtils.updateProgramGUI(configUpdateLabel);
new Thread(r).start();
}
代码示例来源:origin: runelite/runelite
void updateTotal(XpSnapshotTotal xpSnapshotTotal)
{
// if player has gained exp and hasn't switched displays yet, hide error panel and show overall info
if (xpSnapshotTotal.getXpGainedInSession() > 0 && !overallPanel.isVisible())
{
overallPanel.setVisible(true);
remove(errorPanel);
}
SwingUtilities.invokeLater(() -> rebuildAsync(xpSnapshotTotal));
}
代码示例来源:origin: RipMeApp/ripme
private Thread ripAlbum(String urlString) {
if (!logPanel.isVisible()) {
optionLog.doClick();
代码示例来源:origin: RipMeApp/ripme
logPanel.setVisible(!logPanel.isVisible());
emptyPanel.setVisible(!logPanel.isVisible());
historyPanel.setVisible(false);
queuePanel.setVisible(false);
configurationPanel.setVisible(false);
if (logPanel.isVisible()) {
optionLog.setFont(optionLog.getFont().deriveFont(Font.BOLD));
} else {
optionHistory.addActionListener(event -> {
logPanel.setVisible(false);
historyPanel.setVisible(!historyPanel.isVisible());
emptyPanel.setVisible(!historyPanel.isVisible());
queuePanel.setVisible(false);
configurationPanel.setVisible(false);
optionLog.setFont(optionLog.getFont().deriveFont(Font.PLAIN));
if (historyPanel.isVisible()) {
optionHistory.setFont(optionLog.getFont().deriveFont(Font.BOLD));
} else {
logPanel.setVisible(false);
historyPanel.setVisible(false);
queuePanel.setVisible(!queuePanel.isVisible());
emptyPanel.setVisible(!queuePanel.isVisible());
configurationPanel.setVisible(false);
optionLog.setFont(optionLog.getFont().deriveFont(Font.PLAIN));
optionHistory.setFont(optionLog.getFont().deriveFont(Font.PLAIN));
if (queuePanel.isVisible()) {
optionQueue.setFont(optionLog.getFont().deriveFont(Font.BOLD));
代码示例来源:origin: apache/pdfbox
@Override
public void actionPerformed(ActionEvent actionEvent)
{
if (!panel.isVisible())
{
panel.setVisible(true);
panel.getParent().validate();
return;
}
reFocus();
}
};
代码示例来源:origin: Exslims/MercuryTrade
@Override
public void componentHidden(ComponentEvent e) {
advancedExpanded = specPanel.isVisible();
}
});
代码示例来源:origin: org.swinglabs.swingx/swingx-core
@Override
public void actionPerformed(ActionEvent e) {
setDetailsVisible(!detailsPanel.isVisible());
}
}
代码示例来源:origin: Exslims/MercuryTrade
@Override
public void componentShown(ComponentEvent e) {
advancedExpanded = specPanel.isVisible();
}
代码示例来源:origin: ron190/jsql-injection
this.panel.isVisible()
|| !MediatorGui.frame().getSplitHorizontalTopBottom().getTopComponent().isVisible()
&& MediatorGui.frame().getSplitHorizontalTopBottom().getBottomComponent().isVisible()
代码示例来源:origin: UNIVALI-LITE/Portugol-Studio
@Override
public void actionPerformed(ActionEvent e) {
painelTemplate.setVisible(! painelTemplate.isVisible());
}
};
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = VISIBLE_JSDOC)
@Override
public boolean getVisible() {
return super.isVisible();
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = VISIBLE_JSDOC)
@Override
public boolean getVisible() {
return super.isVisible();
}
代码示例来源:origin: locationtech/jts
public void actionPerformed(ActionEvent e) {
clearExtended();
panelExecMeta.setVisible(! panelExecMeta.isVisible());
}
});
代码示例来源:origin: mucommander/mucommander
@Override
public void performAction() {
JPanel toolBarPanel = mainFrame.getToolBarPanel();
boolean visible = !toolBarPanel.isVisible();
// Save the last toolbar visible state in the configuration, this will become the default for new MainFrame windows.
MuConfigurations.getPreferences().setVariable(MuPreference.TOOLBAR_VISIBLE, visible);
// Change the label to reflect the new toolbar state
updateLabel(visible);
// Show/hide the toolbar
toolBarPanel.setVisible(visible);
mainFrame.validate();
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
@Test
public void testPanelInitializationState() {
assertTrue(bucketPanel.getComponent().isVisible());
assertTrue(bucketPanel.getNotificationPanel().isVisible());
assertFalse(bucketPanel.getBucketListPanel().isVisible());
assertThat(bucketPanel.getNotificationLabel().getText())
.isEqualTo("To view your buckets select a Cloud Project.");
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
@Test
public void serviceAccountUi_whenNoRolesExist_isHidden() {
Set<CloudLibrary> libraries = ImmutableSet.of(TestCloudLibrary.createEmpty().toCloudLibrary());
ApplicationManager.getApplication()
.invokeAndWait(
() -> {
CloudApiManagementConfirmationDialog dialog =
new CloudApiManagementConfirmationDialog(
module, cloudProject, libraries, ImmutableSet.of(), ImmutableSet.of());
assertThat(dialog.getRolePanel().isVisible()).isFalse();
});
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
@Test
public void newInstance_withStandardEnvironment_doesHideCostWarningPanel() {
when(deploymentSource.getEnvironment()).thenReturn(AppEngineEnvironment.APP_ENGINE_STANDARD);
Disposer.dispose(editor);
editor = new AppEngineStandardDeploymentEditor(testFixture.getProject(), deploymentSource);
assertThat(editor.getCommonConfig().getAppEngineCostWarningPanel().isVisible()).isFalse();
}
内容来源于网络,如有侵权,请联系作者删除!