import javax.swing. *; What is it and what is it for? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

import javax.swing. *; What is it and what is it for?

Verify your answer

23rd Sep 2019, 2:56 AM
GalloJava
GalloJava - avatar
4 Answers
+ 2
Import javax.swing.* means: I'll break down every components for you. Import : it means you want to use or import the packages which has inbuild classes so that you can build you GUI project Javax: javax is a basic package which has number of classes to make your GUI better Swing : swing is also one of the package which is stored in javax which has number of classes like jlabel,jtextfield,jbutton,etc. *: * Is referring that user want all classes which are stored in swing
23rd Sep 2019, 4:25 AM
Chirag Kumar
Chirag Kumar - avatar
0
Importing the swing components into your scope
23rd Sep 2019, 2:57 AM
Dlite
Dlite - avatar
0
Why?
23rd Sep 2019, 2:58 AM
GalloJava
GalloJava - avatar
0
In case you need to use any of the swing classes
23rd Sep 2019, 3:01 AM
Dlite
Dlite - avatar