this is jus a question. if you are doing a program that uses a GUI, with the radiobutton, checkboxes and so on
why do you have add an import for all the jradiobutton and jcheckbox. is is necessary to add an import for each of them
Jump to Post
You can always code the fully-qualified name
javax.swing.JRadioButtonevery time you need it, but that can be very tedious.
So you have the option to
import javax.swing.JRadioButtonat the start of your .java file and then you can just use the short name
Similarly you can …
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.