Open ongzexuan opened 11 years ago
I'm also seeing that after I type in my password, hitting the enter button does not cause the form to submit. Not sure if this constitutes a separate issue, or if it's arising from the fact that the elements are not grouped (which is the case for some other languages)
Nope, it's just that the Login button isn't focused. There's no support for grouping textfields and buttons as far as i'm aware.
Unfortunately, Java GUI is ugly. Or maybe I'm too noob. Or both. Can we bear with that?
Suggestion:
Capture the username and password via a dialog box during program start, rather than at the top of the program. This is actually a better behaviour. That way you can also have a listener run for the enter key within the dialog box, so if I hit enter it automatically goes over to login behaviour?
in LoginListener, actionPerformed, try
comboBox.setEnabled(true); btnSelectFolder.setEnabled(true); btnSelectFiles.setEnabled(true);
Combine all under another method to not lose track of important elements