Java   View all facts   Glossary   Help
syntactic unit > scoping unit > package > java.awt.swing
Next packagejava.io    Uppackage    Previous packagejava.awt.event   

java.awt.swing
subjectfact 
java.awt.swinghas been renamed to javax.swing in Swing 1.1 (for JDK 1.1) and for the core package in JDK 1.2source: java.sun.com, 2001-10-19 11:37:11.0
is operating-system independent; a program using it will run under any operating system without changesadded by: JK, source: On To Java, 2001-10-19 11:37:11.0
is a subtopic of Example Packages2001-10-19 11:37:11.0
is a subtopic of Graphical User Interfaces2001-10-19 11:37:11.0
is an instance of packageadded by: JK, 2001-10-19 11:37:11.0
was introduced in Java 2added by: JK, source: On To Java, 2001-10-19 11:37:11.0
packagecan be imported by using the import statement    2001-10-19 11:37:38.0
contains 0 or more classes and 0 or more interfaces2001-10-19 11:37:38.0
defines a name space    2001-10-19 11:37:38.0
groups classes or interfaces by function2001-10-19 11:37:38.0
has a name2001-10-19 11:37:38.0
has purpose
  • to avoid naming conflicts
  • to control access
2001-10-19 11:37:38.0
has purpose to group together related classes into a subsystem    2001-10-19 11:37:38.0
is specified by a file that begins with a package statement2001-10-19 11:37:38.0
is stored as a set of class files in a directory2001-10-19 11:37:38.0
see also package name2001-10-19 11:37:38.0
to create you put a class in it or put an interface in it by putting a package statement at the top of the source file in which the class or interface is defined2001-10-19 11:37:38.0
to import you use the import statement with the asterisk wildcard character2001-10-19 11:37:38.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0

Next packagejava.io    Uppackage    Previous packagejava.awt.event