I did not understand why there is “x” appended to “java” for few of the import packages. What is the reason? Can’t it be just java.swing.* like others java.io.*?
I did not understand why there is x appended to java for few of
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Swing was originally an extension to Java – a separately downloadable library. It became part of the “main” JRE in Java 1.2. It would have been odd for a separate library to have claimed a java.* package, hence the current situation. There are plenty of other extensions which have a similar story.
The Wikipedia article on Swing has a bit more information on its history.