O'Reilly logo

Java Gently, Third Edition by Judith Bishop

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 10. Graphics and user interfaces

Graphics and user interfaces

10.1 Introduction to the awt and Swing

10.2 Putting graphics in a window

10.3 Laying out a GUI

Introduction to the awt and Swing

The real world has been converted to wysiwyg [1] and GUI [2] interfaces, and Java is fully equipped to provide these options. The GUI part is provided inside two packages called java.awt – abstract windowing toolkit – and javax.swing. From now on we will call them the awt (pronounced ‘ought’) package and Swing, and know that they are Java’s platform-independent approach to user interfacing.

These packages are also completely driven from within the Java language. That means that any graphical ...

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