openlectures / ol-youtube

YouTube manipulation for OL
0 stars 1 forks source link

Combine grouped GUI elements on/off under single control #23

Open ongzexuan opened 11 years ago

ongzexuan commented 11 years ago

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

kenlimmj commented 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)

yichenshen commented 11 years ago

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.

linanqiu commented 11 years ago

Unfortunately, Java GUI is ugly. Or maybe I'm too noob. Or both. Can we bear with that?

kenlimmj commented 11 years ago

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?