My issue now is that I am trying to change text selection's background and/or foreground color, with the following code, and it doesn't work, it seems it has to do with the cast from AttributeSet to MutableAttributeSet.
Would you help me?
Thanks in advance
This is the Change background and Change foreground code
I'm trying to improve my java level, currently I'm practicing with swing forms
I'm working in an app that should show a subform, in which, if I type the user and password correctly, it should disappear, and the main form's WindowOpened event handler method should continue, AFTER the password form disappears, doing its job, that is in my case populatling a JTable. When running the password form, the main form should be frozen, and the code that follows below the password form's setVisible(true) call should be run only when it disappears.
What I'm getting by now is that the main form does not freeze, and the WindowOpened method does not stop on the password form setVisible(true) call.
I tried seting the password form's modalExclusionType to APPLICATION_EXCLUDE but it didn't get the expected result