From the course: Learn Java with Swing
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Swing from scratch - Java Tutorial
From the course: Learn Java with Swing
Swing from scratch
- [Instructor] To create our Swing applications, we can use an integrated development environment that provides a WYSIWYG editor, or we can write our Swing code from scratch. Some IDEs come with a WYSIWYG editor, where WYSIWYG stands for what you see is what you get. But it's not necessary to write Swing programs using this editor. One of the big benefits of using that type of editor, though, is the ability and ease to organize your components on the page. Without it, all components must be placed using layouts in your code. When working with Swing, you must first decide on your UI layout. Then you have to place the components in the correct order. Also, without using the WYSIWYG editor, you will have to add all your event handling manually. Here's a screenshot of the application we're going to try to create using NetBeans, but without using the WYSIWYG editor. So it's simply going to have a title in the frame and it says Hello World for Swing. It'll have a button that says Click Me…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.