Difference between a Canvas and a Scroll Pane?.

Answer Posted / sibasreeta mishra

Canvas is a component. ScrollPane is a container.
Canvas is a rectangular area where the application can draw or trap input events.
ScrollPane implements horizontal and vertical scrolling.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are static blocks in java ?

856


Are primitives objects?

802


What is the purpose of the system class in java?

788


What is singleton class and how can we make a class singleton?

883


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

939


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

752


Define array. Tell me about 2-D array.

835


What is a parameter in java?

755


Why do we create threads in java?

834


How to display all the prime numbers between 1 and 100

732


Explain the difference between map and flatmap stream operation?

1047


How strings are created in java?

817


What is a jit compiler?

890


What is exception propagation?

855


What is the difference between normal report & matrix report?

865