本文整理了Java中javax.swing.JTextArea.setEnabled()
方法的一些代码示例,展示了JTextArea.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextArea.setEnabled()
方法的具体详情如下:
包路径:javax.swing.JTextArea
类名称:JTextArea
方法名:setEnabled
暂无
代码示例来源:origin: stanfordnlp/CoreNLP
private void enableTsurgeonHelper(boolean enable) {
scriptLabel.setEnabled(enable);
tsurgeonScript.setEnabled(enable);
tsurgeonHelp.setEnabled(enable);
cancelTsurgeon.setEnabled(false);//should always be off unless we're running a script
runScript.setEnabled(enable);
tsurgeonEnabled = enable;
TregexGUI.getInstance().setTsurgeonEnabled(enable);
}
代码示例来源:origin: osmdroid/osmdroid
private void freezeUI() {
this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
this.mBtnStartBatch.setEnabled(false);
this.mTxtBatchItems.setEnabled(false);
}
代码示例来源:origin: osmdroid/osmdroid
private void unFreezeUI() {
this.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
this.mBtnStartBatch.setEnabled(true);
this.mTxtBatchItems.setEnabled(true);
}
代码示例来源:origin: wiztools/rest-client
@Override
public void enableBody() {
jp_content_type_charset.enableComponent();
jb_body.setEnabled(true);
jta.setEnabled(true);
}
代码示例来源:origin: wiztools/rest-client
@Override
public void disableBody() {
jp_content_type_charset.disableComponent();
jb_body.setEnabled(false);
jta.setEnabled(false);
}
代码示例来源:origin: jshiell/checkstyle-idea
/**
* Initialise the view.
*/
private void initialise() {
// fake a multi-line label with a text area
descriptionLabel.setText(CheckStyleBundle.message("config.inspection.description"));
descriptionLabel.setEditable(false);
descriptionLabel.setEnabled(false);
descriptionLabel.setWrapStyleWord(true);
descriptionLabel.setLineWrap(true);
descriptionLabel.setOpaque(false);
descriptionLabel.setDisabledTextColor(descriptionLabel.getForeground());
final GridBagConstraints descLabelConstraints = new GridBagConstraints(
0, 0, 3, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST,
GridBagConstraints.BOTH, JBUI.insets(4), 0, 0);
add(descriptionLabel, descLabelConstraints);
}
代码示例来源:origin: magefree/mage
txtRandomPacks.setEnabled(false);
txtRandomPacks.setLineWrap(true);
String randomPrefs = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_NEW_TOURNAMENT_PACKS_RANDOM_DRAFT, "");
代码示例来源:origin: stackoverflow.com
public class TextAreaEditor implements Editor {
private final JTextArea textArea = new JTextArea();
public void setEnabled(bool isEnabled) {
return textArea.setEnabled(isEnabled);
}
//... your own methods plus other methods from JComponent
}
代码示例来源:origin: net.sourceforge.owlapi/oboformat-included-owlapi
public void actionPerformed(ActionEvent e) {
boolean selected = checkBox.isSelected();
ontologyList.setEditable(selected);
ontologyList.setEnabled(selected);
}
});
代码示例来源:origin: com.google.code.findbugs/findbugs
private void setCanAddComments(boolean canClick, boolean canEnter) {
submitCommentButton.setEnabled(canClick || canEnter);
designationCombo.setEnabled(canClick || canEnter);
commentBox.setEnabled(canClick || canEnter);
}
代码示例来源:origin: fr.ifremer/isis-fish
@Override
public void processDataBinding() {
fieldTripTypeComment.setEnabled(isActive());
}
});
代码示例来源:origin: fr.ifremer/isis-fish
@Override
public void processDataBinding() {
fieldPopulationBasicsComment.setEnabled(isActive());
}
});
代码示例来源:origin: fr.ifremer/isis-fish
@Override
public void processDataBinding() {
fieldSetOfVesselsComment.setEnabled(isActive());
}
});
代码示例来源:origin: fr.ifremer/isis-fish
@Override
public void processDataBinding() {
fieldPopulationSeasonComment.setEnabled(getPopulationSeasonInfo() != null);
}
});
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
@Override
public void actionPerformed(ActionEvent e)
{
sleepForLabel.setEnabled(enableConnectionKeepAliveChk.isSelected());
sleepTime.setEnabled(enableConnectionKeepAliveChk.isSelected());
secondsLabel.setEnabled(enableConnectionKeepAliveChk.isSelected());
executeLabel.setEnabled(enableConnectionKeepAliveChk.isSelected());
sqlTextArea.setEnabled(enableConnectionKeepAliveChk.isSelected());
}
});
代码示例来源:origin: org.wildfly.core/wildfly-cli
@Override
public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
submitButton.setEnabled(enabled);
cmdText.setEnabled(enabled);
}
代码示例来源:origin: fr.ifremer/isis-fish
@Override
public void processDataBinding() {
fieldObservationComment.setEnabled(isActive());
}
});
代码示例来源:origin: fr.ifremer/isis-fish
@Override
public void processDataBinding() {
fieldMetierSeasonZoneComment.setEnabled(getMetierSeasonInfo() != null);
}
});
代码示例来源:origin: fr.ifremer/isis-fish
@Override
public void processDataBinding() {
fieldZoneComment.setEnabled(isActive());
}
});
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
public void setSQLAliasConnectionProperties(SQLAliasConnectionProperties props) {
this._props = props;
enableConnectionKeepAliveChk.setSelected(_props.isEnableConnectionKeepAlive());
sleepForLabel.setEnabled(_props.isEnableConnectionKeepAlive());
sleepTime.setEnabled(_props.isEnableConnectionKeepAlive());
sleepTime.setValue(props.getKeepAliveSleepTimeSeconds());
secondsLabel.setEnabled(_props.isEnableConnectionKeepAlive());
executeLabel.setEnabled(_props.isEnableConnectionKeepAlive());
sqlTextArea.setEnabled(_props.isEnableConnectionKeepAlive());
sqlTextArea.setText(props.getKeepAliveSqlStatement());
}
内容来源于网络,如有侵权,请联系作者删除!