Suggest improvement. This is to set the size of the object to the specified width and height. This particular program is interested only in the final result of the user's action, so the valueChanged method does something only if getValueIsAdjusting returns false. When the program is run, only two items in the list is displayed by default. Values of width and height are non-negative integers.
nest...