I wrote a class that extends JWindow
that serves as a kind of customizable dialog box in my application. When I need to invoke one of these windows, I create a new instance of the class; to remove the window, I call the method dispose().
The problem I am having is that the user cannot edit components that have a text box, such as JTextField
and JSpinner
. The user can click on components such as drop-down boxes
and buttons
, and this works fine, but when it comes to entering text in a text box, this does not work.
Has anyone else experienced this problem?
Thanks!