Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Java Platform, Standard Edition
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== javax.swing === {{Main|Swing (Java)}} [[Swing (Java)|Swing]] is a collection of routines that build on <code>java.awt</code> to provide a platform independent [[widget toolkit]]. {{Javadoc:SE|package=javax.swing|javax/swing|module=java.desktop}} uses the 2D drawing routines to render the user interface components instead of relying on the underlying native [[operating system]] GUI support. This package contains the largest number of classes (133 in all) in JDK 6. This package, along with <code>java.awt</code> also contains the largest number of enums (7 in all) in JDK 6. It supports pluggable looks and feels (PLAFs) so that widgets in the GUI can imitate those from the underlying native system. Design patterns permeate the system, especially a modification of the [[model–view–controller]] pattern, which loosens the [[coupling (computer science)|coupling]] between function and appearance. One inconsistency is that (as of J2SE 1.3) fonts are drawn by the underlying native system, and not by Java, limiting text portability. Workarounds, such as using bitmap fonts, do exist. In general, "layouts" are used and keep elements within an aesthetically consistent GUI across platforms.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)