本文整理了Java中javax.swing.JLabel.setVisible()
方法的一些代码示例,展示了JLabel.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.setVisible()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:setVisible
暂无
代码示例来源:origin: wildfly/wildfly
private void showMsg(String msg) {
err_msg.setText(msg);
err_msg.setVisible(true);
}
代码示例来源:origin: chewiebug/GCViewer
public void setGCResource(GCResource gcResource) {
textAreaLogHandler.reset();
progressBar.setVisible(true);
progressBar.setValue(0);
cancelButton.setVisible(true);
messageLabel.setVisible(false);
gcResource.getLogger().addHandler(textAreaLogHandler);
this.gcResource = gcResource;
}
代码示例来源:origin: chewiebug/GCViewer
/**
* Invoked when task's progress property changes.
*/
@Override
public void propertyChange(PropertyChangeEvent evt) {
final String eventPropertyName = evt.getPropertyName();
if ("progress".equals(eventPropertyName)) {
progressBar.setValue((int)evt.getNewValue());
}
else if ("state".equals(eventPropertyName)) {
if (SwingWorker.StateValue.STARTED == evt.getNewValue()) {
// don't clear textArea here, because event comes late!
}
else if (SwingWorker.StateValue.DONE == evt.getNewValue()) {
progressBar.setValue(100);
final int nErrors = textAreaLogHandler.getErrorCount();
messageLabel.setText(LocalisationHelper.getString("datareader_parseerror_dialog_message", nErrors));
messageLabel.setVisible(true);
progressBar.setVisible(false);
cancelButton.setVisible(false);
}
}
}
代码示例来源:origin: runelite/runelite
@Override
public void mousePressed(MouseEvent mouseEvent)
{
currentView = null;
backBtn.setVisible(false);
detailsTitle.setText("");
rebuild();
}
代码示例来源:origin: RipMeApp/ripme
openButton.setVisible(false);
statusLabel.setVisible(true);
pack();
boolean failed = false;
代码示例来源:origin: magefree/mage
btnSwitchHands.setVisible(handCards.size() > 1);
boolean change = (handCardsOfOpponentAvailable != (game.getOpponentHands() != null));
if (change) {
btnSwitchHands.setVisible(!handCards.isEmpty());
this.txtPhase.setText(game.getPhase().toString());
} else {
this.txtPhase.setText("");
this.txtStep.setText(game.getStep().toString());
} else {
logger.debug("Step is empty");
this.txtSpellsCast.setVisible(true);
this.txtSpellsCast.setText(' ' + Integer.toString(game.getSpellsCastCurrentTurn()) + ' ');
} else {
this.txtSpellsCast.setVisible(false);
代码示例来源:origin: skylot/jadx
private void loadFinishedCommon() {
setCursor(null);
resultsTable.setEnabled(true);
progressPane.setVisible(false);
TextSearchIndex textIndex = cache.getTextIndex();
if (textIndex == null) {
warnLabel.setText(NLS.str("msg.index_not_initialized"));
warnLabel.setVisible(true);
}
}
}
代码示例来源:origin: magefree/mage
public void showDeckElements(boolean show) {
this.lblPlayerDeck.setVisible(show);
this.txtPlayerDeck.setVisible(show);
this.btnGenerate.setVisible(show);
this.btnPlayerDeck.setVisible(show);
}
代码示例来源:origin: runelite/runelite
northPanel.setBorder(new EmptyBorder(1, 0, 10, 0));
title.setText("Screen Markers");
title.setForeground(Color.WHITE);
title.setVisible(false);
代码示例来源:origin: magefree/mage
protected void sizePlayerPanel(boolean smallMode) {
if (smallMode) {
avatar.setVisible(false);
btnPlayer.setVisible(true);
timerLabel.setVisible(true);
panelBackground.setPreferredSize(new Dimension(PANEL_WIDTH - 2, PANEL_HEIGHT_SMALL));
panelBackground.setBounds(0, 0, PANEL_WIDTH - 2, PANEL_HEIGHT_SMALL);
} else {
avatar.setVisible(true);
btnPlayer.setVisible(false);
timerLabel.setVisible(false);
panelBackground.setPreferredSize(new Dimension(PANEL_WIDTH - 2, PANEL_HEIGHT));
panelBackground.setBounds(0, 0, PANEL_WIDTH - 2, PANEL_HEIGHT);
}
}
代码示例来源:origin: runelite/runelite
detailsTitle.setText(currentView);
backBtn.setVisible(true);
rebuild();
});
代码示例来源:origin: magefree/mage
insertArrow.setVisible(false);
cardContent.add(insertArrow, new Integer(1000));
filterPopup.setPreferredSize(new Dimension(300, 300));
makeButtonPopup(filterButton, filterPopup);
filterButton.setVisible(false);
代码示例来源:origin: RaiMan/SikuliX2
public void setTitle(String title){
titleBar.setText(title);
titleBar.setVisible(true);
}
代码示例来源:origin: magefree/mage
this.btnAddLand.setVisible(false);
this.btnAddLand.setVisible(true);
this.txtTimeRemaining.setVisible(true);
this.btnSubmit.setVisible(true);
this.btnSubmitTimer.setVisible(true);
if (mode == DeckEditorMode.SIDEBOARDING) {
this.deckArea.setOrientation(/*limitedBuildingOrientation = */true);
this.deckArea.showSideboard(true);
this.lblDeckName.setVisible(false);
this.txtDeckName.setVisible(false);
this.txtTimeRemaining.setVisible(false);
代码示例来源:origin: nodebox/nodebox
public void clearError() {
errorLabel.setText("");
errorLabel.setVisible(false);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
public void profilingSessionFinished() {
enableThreadsMonitoringButton.setEnabled(false);
enableThreadsMonitoringButton.setVisible(false);
enableThreadsMonitoringLabel1.setVisible(false);
enableThreadsMonitoringLabel2.setVisible(true);
}
代码示例来源:origin: magefree/mage
private void setLabelText(JLabel label, String text) {
if ((text != null) && !text.equals("")) {
label.setText(String.format(HTML_TEMPLATE, text));
label.setVisible(true);
} else {
label.setText("");
label.setVisible(false);
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
public void profilingSessionStarted() {
enableThreadsMonitoringButton.setEnabled(true);
enableThreadsMonitoringButton.setVisible(true);
enableThreadsMonitoringLabel1.setVisible(true);
enableThreadsMonitoringLabel2.setVisible(false);
}
代码示例来源:origin: magefree/mage
private void setLabelText(JLabel label, String text) {
if ((text != null) && !text.equals("")) {
label.setText(String.format(HTML_TEMPLATE, text));
label.setVisible(true);
} else {
label.setText("");
label.setVisible(false);
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
public void profilingSessionFinished() {
enableLockContentionButton.setEnabled(false);
enableLockContentionButton.setVisible(false);
enableLockContentionLabel1.setVisible(false);
enableLockContentionLabel2.setVisible(true);
}
内容来源于网络,如有侵权,请联系作者删除!