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

A visual GUI editor tool – palette

The Java programming language, a GUI extension library such as Swing, and a development environment – a powerful one such as NetBeans – can be a really strong combo. Now we're going to take a look at how to create GUIs using a GUI editor like the one found in NetBeans.

To follow along, I highly recommend that you utilize the NetBeans IDE for this section.

So, to get started, let's create a Java application like we normally would and give it a name and we're good to go. We're going to start off by simply deleting the default Java file that NetBeans provides and instead ask NetBeans to create a new file. We're going to ask it to create a JFrame Form for us:

We'll give this JFrame form a name and keep it in the same package. When NetBeans creates this file, even though it's a .java file, the...

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 $19.99/month. Cancel anytime