Which is control in swing that is combination of textfield and dropdown list
Answers
Answered by
4
A component is an independent visual control. Swing Framework contains a large set of components which provide rich functionalities and allow high level of customization. They all are derived from JComponent class. All these components are lightweight components. This class provides some common functionality like pluggable look and feel, support for accessibility, drag and drop, layout, etc.
A container holds a group of components. It provides a space where a component can be managed and displayed. Containers are of two types:
Top level Containers
It inherits Component and Container of AWT.
It cannot be contained within other containers.
Heavyweight.
Example: JFrame, JDialog, JApplet
Lightweight Containers
It inherits JComponent class.
It is a general purpose container.
It can be used to organize related components together.
Example: JPanel
A container holds a group of components. It provides a space where a component can be managed and displayed. Containers are of two types:
Top level Containers
It inherits Component and Container of AWT.
It cannot be contained within other containers.
Heavyweight.
Example: JFrame, JDialog, JApplet
Lightweight Containers
It inherits JComponent class.
It is a general purpose container.
It can be used to organize related components together.
Example: JPanel
mujaffar:
answer in 1 word
d)ToolTip
Answered by
0
Answer:
A Component is control in swing that is combination of textfield and dropdown list.
Explanation:
- Rich Controls - Swing offers a wide variety of advanced controls such as Tree, TabbedPane, Slider, Colorpicker, and Table Controls.
- Highly Customizable - Visual appearance is independent of internal rendering, so Swing controls can be customized in a very easy way.
- Provides both additional functionality and additional components to AWT replacement components.
- Swing components are platform independent.
- Swing components can use different look and feels.
- Swing components use the Model-View-Controller (MVC) paradigm and can provide a much more flexible user interface.
- Swing components are the basic building blocks of your application.
- We know that Swing is a GUI widget toolkit for Java.
- All applications have a basic interactive interface for the user.
- For example, buttons, check boxes, radio buttons, text boxes, etc.
#SPJ3
Similar questions