Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Java Programming for Beginners

You're reading from   Java Programming for Beginners Learn the fundamentals of programming with Java

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781788296298
Length 318 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
SkillSprints Inc., Mark Lassoff SkillSprints Inc., Mark Lassoff
Author Profile Icon SkillSprints Inc., Mark Lassoff
SkillSprints Inc., Mark Lassoff
Arrow right icon
View More author details
Toc

Basic GUI Development

Sometimes, we write programs that are all about raw functionality. However, we often write programs that are generally used by us or other users who expect the process of their interaction with us to be streamlined. In this chapter, we will see the basic functions of the Graphical User Interface (GUI) in NetBeans. A couple of things that define truly amazing software programs are their GUI and user experience. You will learn how to create an application window with the JFrame class by setting its size, adding labels to it, and closing the application on the whole. Then comes the topic of the GUI editor, that is, palette; here, we'll see a working instance of palette and the components available in it. Finally, you'll learn how to trigger events by adding a button and adding functionality to it.

We'll cover the following topics in this chapter...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime