Difference between a Canvas and a Scroll Pane?.



Difference between a Canvas and a Scroll Pane?...

Answer / 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 ?    3 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is stream api in java8?

0 Answers  


What is the difference between superclass and subclass?

0 Answers  


What is the difference between add() and addElement() method in Vector Class ?

2 Answers   TCS,


What modifiers can be used with a local inner class?

2 Answers  


Which is not Object in Java?

10 Answers   Honeywell,






What is the importance of main method in Java?

0 Answers  


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

0 Answers   Fidelity,


How do you write a conditional statement?

0 Answers  


Can an interface extend a class?

0 Answers  


Explain public static void main(string args[]) in java.

0 Answers  


What is the major drawback of internal iteration over external iteration?

0 Answers  


What is collections framework?

0 Answers  


Categories