Der Vortrag „Java - Basic GUI Development“ von Zachary Kingston ist Bestandteil des Kurses „Java Programming for Beginners“. Der Vortrag ist dabei in folgende Kapitel unterteilt:
5 Sterne |
|
5 |
4 Sterne |
|
0 |
3 Sterne |
|
0 |
2 Sterne |
|
0 |
1 Stern |
|
0 |
... GUI that contains both a Text Field and a Progress Bar. Now, link the components so that the Progress Bar fills up after the user has placed 100 characters in the Text Field. 2) A common task that GUI designers must perform is providing a list of options that the user may only select one of. To do this, they often employ the Radio Button GUI element in conjunction with the Button ...
... a GUI that contains both a Text Field and a Progress Bar. Now, link the components so that the Progress Bar fills up after the user has placed 100 characters in the Text Field. (Hint: To update the ProgressBar each time a character was added/removed, I used the KeyTyped event.) private void myTextFieldKeyTyped(java.awt.event.KeyEvent evt) { myBar.setValue(myTextField.getText().length()); } 2) A common task that GUI designers must perform is providing a list of options that the user ...