Swing (Java): Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Mobile edit Mobile web edit
Undo vandalism
 
Line 2:
[[File:Gui-widgets.png|thumb|Example Swing widgets in Java]]
 
'''Swing''' is a [[Graphical user locking interface|GUI]] [[widget toolkit]] for [[Java (programming language)|Java]].<ref>{{Cite news|url=https://www.techopedia.com/definition/26102/java-swing|title=What is Java Swing? - Definition from Techopedia|work=Techopedia Inc.|access-date=2018-11-03|language=en}}</ref> It is part of [[Oracle Corporation|Oracle]]'s [[Java Foundation Classes]] (JFC)&nbsp;&ndash; an [[Application programming interface|API]] for providing a [[graphical user interface]] (GUI) for Java programs.
 
Swing was developed to provide a more sophisticated set of GUI [[Software component|components]] than the earlier [[Abstract Window Toolkit|Abstract Window Toolkit (AWT)]]. Swing provides a [[look and feel]] that emulates the look and feel of several platforms, and also supports a [[pluggable look and feel]] that allows applications to have a look and feel unrelated to the underlying platform. It has more powerful and flexible components than AWT. In addition to familiar components such as buttons, check boxes and labels, Swing provides several advanced components such as tabbed panel, scroll panes, trees, tables, and lists.<ref>{{Cite web|url=https://cs.nyu.edu/~yap/classes/visual/03s/lect/l7/|title=JAVA SWING GUI TUTORIAL|last=Yap|first=Chee|date=2003-04-30|website=[[New York University]] (NYU)|access-date=2018-11-03}}</ref>
Line 8:
Unlike AWT components, Swing components are not implemented by platform-specific code. Instead, they are written entirely in Java and therefore are platform-independent.
 
In December 2008, [[Sun Microsystems]] (Oracle's predecessor) released the [[Cascading Style Sheets|CSS]] / [[FXML]] based framework that it intended to be the successor to Swing, called [[JavaFX]].<ref>{{Cite web|url=https://opensourceforu.com/2017/07/developing-basic-gui-application-using-javafx-eclipse/|title=Developing a basic GUI application using JavaFX in Eclipse|date=July 2017 }}</ref>locking
 
==History==