Java Swing Primer Tutorial

Java Swing Primer Tutorial

Java Swing Primer Tutorial

Here is a tutorial that uses Swing functionality in Java to create a GUI (Graphical User Interface) program on a Mac laptop. Below is some information from Wikipedia regarding the Java Swing functionality:

Swing is the primary Java GUI widget toolkit. It is part of Oracle’s Java Foundation Classes (JFC) β€” an API for providing a graphical user interface (GUI) for Java programs.

Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT). Swing provides a native 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.

Unlike AWT components, Swing components are not implemented by platform-specific code. Instead they are written entirely in Java and therefore are platform-independent. The term “lightweight” is used to describe such an element.[citation needed]

This program just performs a simple Guessing Game.

Let’s see some Java Swing code for this, and how it works …

Download programming source code and rename to GuessingGame.java
But of course regarding all the information above It Don’t Mean A Thing (if it ain’t got that swing).

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Event-Driven Programming, GUI, Tutorials and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>