Skip to content

Commit c7b2a90

Browse files
hansonrhansonr
authored andcommitted
Text components should not take focus if read-only. (right?)
1 parent f91f863 commit c7b2a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSTextUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ void setJSText() {
11371137

11381138
@Override
11391139
public boolean focus() {
1140-
if (!super.focus())
1140+
if (!editor.isEditable() || !super.focus())
11411141
return false;
11421142
if (haveFocus()) {
11431143

0 commit comments

Comments
 (0)