本文整理了Java中javax.swing.JTextField.setDisabledTextColor()
方法的一些代码示例,展示了JTextField.setDisabledTextColor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.setDisabledTextColor()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:setDisabledTextColor
暂无
代码示例来源:origin: libgdx/libgdx
private void uiStyle() {
nameText.setCaretColor(Color.WHITE);
packageText.setCaretColor(Color.WHITE);
gameClassText.setCaretColor(Color.WHITE);
destinationText.setCaretColor(Color.WHITE);
sdkLocationText.setCaretColor(Color.WHITE);
nameLabel.setForeground(Color.WHITE);
packageLabel.setForeground(Color.WHITE);
gameClassLabel.setForeground(Color.WHITE);
destinationLabel.setForeground(Color.WHITE);
sdkLocationLabel.setForeground(Color.WHITE);
sdkLocationText.setDisabledTextColor(Color.GRAY);
projectsLabel.setForeground(new Color(255, 20, 20));
extensionsLabel.setForeground(new Color(255, 20, 20));
subProjectsPanel.setOpaque(true);
subProjectsPanel.setBackground(new Color(46, 46, 46));
for (JPanel extensionPanel : extensionsPanels) {
extensionPanel.setOpaque(true);
extensionPanel.setBackground(new Color(46, 46, 46));
}
}
代码示例来源:origin: protegeproject/swrlapi
private void setErrorStatusText(@NonNull String status)
{
this.statusTextField.setDisabledTextColor(Color.RED);
this.statusTextField.setText(status);
}
代码示例来源:origin: intellij-dlanguage/intellij-dlanguage
@Override
public void updateVersion() {
final String pathText = pathField.getText();
final String version = StringUtil.isEmpty(pathText) ? "" : getVersion(pathText);
versionField.setText(version);
if(DtoolUtils.versionPredates(version, this.latestVersion)) {
versionField.setToolTipText(String.format("A newer version of %s is available", this.command));
versionField.setDisabledTextColor(UIManager.getColor("Focus.color"));
} else {
versionField.setDisabledTextColor(UIManager.getColor("ComboBox.disabledForeground"));
versionField.setToolTipText(null); // turns the tool tip off
}
}
代码示例来源:origin: protegeproject/swrlapi
private void setIncompleteStatusText(@NonNull String status)
{
this.statusTextField.setBorder(yellowBorder);
this.statusTextField.setDisabledTextColor(Color.BLACK);
this.statusTextField.setText(status);
}
代码示例来源:origin: protegeproject/swrlapi
private void setInformationalStatusText(@NonNull String status)
{
this.statusTextField.setBorder(loweredBevelBorder);
this.statusTextField.setDisabledTextColor(Color.BLACK);
this.statusTextField.setText(status);
}
代码示例来源:origin: stackoverflow.com
JComboBox cb = ...;
...
cb.setEditable(true);
ComboBoxEditor editor = cb.getEditor()
JTextField etf = (JTextField)etf.getEditorComponent()
etf.setDisabledTextColor(UIManager.getColor("ComboBox.foreground"));
etf.setBackground(UIManager.getColor("ComboBox.background"));
// editor.setItem(format(obj));
cb.setEnabled(false);
代码示例来源:origin: protegeproject/swrlapi
this.ruleTextTextArea.setPreferredSize(new Dimension(300, 300));
this.commentTextField.setDisabledTextColor(Color.BLACK);
this.commentTextField.setBorder(this.loweredBevelBorder);
this.statusTextField.setDisabledTextColor(Color.BLACK);
this.statusTextField.setEnabled(false);
this.statusTextField.setBorder(this.loweredBevelBorder);
代码示例来源:origin: edu.toronto.cs.savant/savant-core
inputField.setDisabledTextColor(new java.awt.Color(255, 255, 255));
outputField.setDisabledTextColor(new java.awt.Color(255, 255, 255));
代码示例来源:origin: intellij-dlanguage/intellij-dlanguage
/**
* Enables the apply button if anything changed.
*/
@Override
public boolean isModified() {
for (final Tool t : properties) {
if (t.isModified()) {
t.setDirty(true);
if(StringUtil.isNotEmpty(t.pathField.getText()) && !StringUtil.containsIgnoreCase(t.pathField.getText(), t.command)) {
t.versionField.setText(String.format("Not a valid %s binary", t.command));
t.versionField.setDisabledTextColor(UIManager.getColor("Focus.color"));
} else {
t.updateVersion();
return true;
}
} else if (t.isDirty()) {
t.updateVersion();
t.setDirty(false);
}
}
return
propertiesComponent.getBoolean("USE_NATIVE_CODE_COMPLETION") != chkNativeCodeCompletion
.isSelected()
|| propertiesComponent.getBoolean("DISABLE_SYNTAX_ERROR_FORMATTER_WARNING")
!= disableFormatterSyntaxErrorCheckBox.isSelected();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-core
jTFname.setEnabled(false);
jTFname.setBackground(this.getBackground());
jTFname.setDisabledTextColor(Color.black);
代码示例来源:origin: FellowTraveler/otapij
jTextField1.setDisabledTextColor(resourceMap.getColor("jTextField1.disabledTextColor")); // NOI18N
jTextField1.setName("jTextField1"); // NOI18N
代码示例来源:origin: FellowTraveler/otapij
jTextField1.setDisabledTextColor(resourceMap.getColor("jTextField1.disabledTextColor")); // NOI18N
jTextField1.setName("jTextField1"); // NOI18N
内容来源于网络,如有侵权,请联系作者删除!