1. Write code that creates a list with the following items: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
2. Write code that adds a scroll bar to the list you created in your answer to previous question.
3. Assume that the variable myList references a JList component, and selection is a String variable. Write code that assigns the selected item in the myList component to the selection variable.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here