GUI (Part 2) - tstorrnetnz/teaching2022 GitHub Wiki
How to think like a computer scientist (HTTLACS)
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!
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:
- Install Netbeans on your own computer using the link above
- 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.
- Complete this tutorial I made on a school Sports Day event recording challenge, which is actually quite involved!
- https://www.youtube.com/watch?v=GZ9MT2myBf8 This is a long tutorial but covers a lot of Swing.
Extension
- For those who are interested, an alternative type of GUI exists called Laterna. I’ll let you explore https://github.com/mabe02/lanterna