Java #N3 - Making a GUI in NetBeans

Martin Carlisle · 713K views · 2009 · 10:24

Open on YouTube

Software practice, open source & careersProgramming language designtutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when newcomers ask how to build a Swing GUI visually and want a quick NetBeans drag-and-drop walkthrough.

Recommended by 3 people across 3 different months, 2013 to 2018.

What it is

A short screencast tutorial from Martin Carlisle that builds a small Java Swing GUI for adding and subtracting two numbers. It uses the NetBeans drag-and-drop GUI designer to lay out components and wire up button behavior.

What people said

Recommends javatarz · 2013-12 · Stack Overflow · on “How to show GUI design view in java.class?”

If I understood your question correctly, you're looking for a GUI builder for Swing. Netbeans ships with the Matisse Swing GUI Builder [LINK] which will help you build GUIs easily and quickly. Tutorials aren't uncommon (such as the official tutorial [LINK] or some user created videos on YouTube [this video] ). Some folks are fine with this work flow (since it speeds up development quite a bit). Others want to use custom frameworks and have requirements to use specific layouts in which case I recommend reading about different layout managers [LINK] . Take your pick and happy development! :)

Recommends The Noobie Coder · 2016-02 · Stack Overflow · on “Add a GUI to class”

I would recommend using netbeans to start with. From there you can easily select pre created classes such as Jframes. Much easier to learn. You can create a GUI from there by dragging and dropping buttons and whatever you need. Here is a youtube tut to create GUI's in netbeans. [this video] If you decide not to go with netbeans, you are gonna have to create swing containers withing your class to make the Interface.

Recommends Shahid · 2018-09 · Stack Overflow · on “GroupLayout - simple component positioning”

Running doesn't matter. What I mean is designing UI on editor. You can drag and drop UI component. Check this out. [this video]