> can you tell me the difference between java and javax pacakge
Once upon a time, package java contained everything that was part of the
standard API, and javax contained not-quite-standard extensions. Of
course, once anything in javax.* becomes commonly used, moving it would
break a bunch of existing code. Thus javax.swing is actually part of
the standard API.