GUI (Part 2) - tstorrnetnz/teaching2022 GitHub Wiki

How to think like a computer scientist (HTTLACS)

Otago Workbook L2

Otago Workbook L3

Learning Aim: Be able to make a simple GUI using an IDE

Using an Integrated Development Environment (IDE) to create a GUI is usually quick, but drastically increases the possibility of not understanding how the GUI works!

Netbeans

We are going to use Netbeans as our Java IDE. You will need to download and install Netbeans from here. Ensure you download version 13. You may need to install a Java Development Kit (JDK) as well. This download has both Netbeans and the JDK bundled together in one download. When you install Netbeans, be careful to select a sensible location for your file storage location. Moving this later will cause major problems.

For you to do:

  1. Install Netbeans on your own computer using the link above
  2. Create a simple Celcius to Farenheit temperature converter using this simple tutorial. One thing you will note is that because the tutorial uses an older version of Netbeans and Java, the create project dialogue is slightly different. The default Java with Maven will work. Netbeans project dialogue
  3. Complete this tutorial I made on a school Sports Day event recording challenge, which is actually quite involved!
  4. https://www.youtube.com/watch?v=GZ9MT2myBf8 This is a long tutorial but covers a lot of Swing.

Extension

laterna