The setBackground() method is part of which of
the following class java.awt package?
Answers
Answered by
0
Answer:
The correct answer is C
Explanation:
The setBackground() method is part of the following class in java.awt package:
(a)Graphics
(b)Applet
(c)Component
(d)Container
(e)Object
Answered by
0
The setBackground() method is part of the component class in the java AWT package.
- The Component class is the abstract superclass of the non-menu-related Abstract Window Toolkit components. Class Components can likewise be stretched out straightforwardly to make a lightweight component.
- A lightweight component is a component that isn't related with a local window.
- It contains each of the classes for making UIs and for painting illustrations and pictures.
- A UI article like a button or a scrollbar is called, in AWT wording, a component. The Component class is the base of all AWT components.
- A component class is the class related to a page, component, or mixin in your Tapestry web application.
- Classes for pages, components, and mixins are completely made in an indistinguishable manner. They are unadulterated POJOs (Plain Old Java Objects), ordinarily with explanations and expectedly named strategies.
Similar questions
CBSE BOARD X,
14 days ago
Math,
14 days ago
Hindi,
14 days ago
Physics,
29 days ago
English,
7 months ago