CodeProject.TV will close July 31. Remember to ensure you’ve watched or download your videos! Full details here.

Layouts, Buttons and Text Areas: Mastering Java Swing Part 3

8m 10s
Caveofprogramming

Cave of Programming

After working as a software developer and contractor for over 14 years for a whole bunch of companies including CSC, Proquest, SPSS and AT&T in the UK and... Read more

In this tutorial we'll start looking at layouts, buttons and text areas in Java Swing.

How to add components to your main window. One of the hardest things about Swing programming is dealing with layout managers. This tutorial begins a gentle introduction to using layout managers to layout your components in a resize-friendly way.

BorderLayout and introducing layout managers
JButton
JTextArea
Customising JFrame with your own derived class