O'Reilly logo

Beginning Java 8 APIs, Extensions and Libraries Swing, JavaFX, JavaScript, JDBC and Network Programming APIs by Kishori Sharan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 1

image

Introduction to Swing

In this chapter, you will learn

  • What Swing is
  • The difference between a character-based interface and a graphical user interface
  • How to develop the simplest Swing program
  • What a JFrame is and how it is made up of different components
  • How to add components to a JFrame
  • What a layout manager is and different types of layout managers in Swing
  • How to create reusable frames
  • How to handle events
  • How to handle mouse events and how to use the adapter class to handle mouse events

What Is Swing?

Swing provides graphical user interface (GUI) components to develop Java applications with a rich set of graphics such as windows, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required