Abstract Window Toolkit (AWT) Question:

What is the difference between a Canvas and a Scroll Pane?

AWT Interview Question
AWT Interview Question

Answer:

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.


Previous QuestionNext Question
What is the difference between JFC & WFC?What is the difference between a MenuItem and a CheckboxMenuItem?