Skip to content

Commit 2fd9bf6

Browse files
authored
Merge pull request #8787 from mbien/fix-mnemonic-editor-regression
Fix regression in MnemonicEditor#setValue
2 parents 5ffb836 + 0282d0e commit 2fd9bf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/form/src/org/netbeans/modules/form/editors/MnemonicEditor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,11 @@ public void setAsText(String text) throws IllegalArgumentException {
133133
public void setValue(Object newValue) throws IllegalArgumentException {
134134
if (newValue instanceof Integer) {
135135
super.setValue(newValue);
136+
return;
136137
} else if (newValue instanceof Character) {
137138
char c = (Character) newValue;
138139
super.setValue((int)c);
140+
return;
139141
} else if (newValue instanceof String) {
140142
String text = (String) newValue;
141143
if (text.length() >= 1) {

0 commit comments

Comments
 (0)