WEBVTT 1 00:00:01.005 --> 00:00:04.118 In this demo I'm going to look at the NetBeans IDE 2 00:00:05.111 --> 00:00:07.113 currently open in my IDE 3 00:00:07.114 --> 00:00:09.115 is a version of the adventure game program 4 00:00:09.116 --> 00:00:12.111 which has been created as a NetBeans project. 5 00:00:14.004 --> 00:00:16.001 The classes in the project are shown 6 00:00:16.002 --> 00:00:17.222 in the projects window here 7 00:00:18.111 --> 00:00:21.004 unlike BlueJ NetBeans doesn't show classes 8 00:00:21.005 --> 00:00:22.226 in the form of a class diagram. 9 00:00:25.007 --> 00:00:27.001 Note that the classes in this project 10 00:00:27.002 --> 00:00:29.004 are organised into packages 11 00:00:29.111 --> 00:00:31.117 you can see here the symbol for a package 12 00:00:31.118 --> 00:00:33.111 and the classes inside it. 13 00:00:33.222 --> 00:00:36.114 A package is a group of related classes 14 00:00:37.002 --> 00:00:40.005 the test classes in this program have been split into 15 00:00:40.007 --> 00:00:43.115 a separate package from the rest of the classes 16 00:00:43.226 --> 00:00:46.229 you'll learn more about packages in Java shortly. 17 00:00:48.225 --> 00:00:52.002 The Game class has a green arrow symbol on its icon 18 00:00:52.009 --> 00:00:54.223 and that shows that it contains the main method 19 00:00:54.225 --> 00:00:56.223 as an entry point for this program. 20 00:00:59.223 --> 00:01:02.228 The navigator window down here shows the methods 21 00:01:02.229 --> 00:01:06.112 the constructor in the currently selected class 22 00:01:08.009 --> 00:01:10.002 the editor window is up here 23 00:01:10.004 --> 00:01:12.110 and I can open more than one class for editing 24 00:01:12.113 --> 00:01:15.224 at the same time if I open the item class 25 00:01:16.002 --> 00:01:18.227 that appears as a new tab in the editor window 26 00:01:19.116 --> 00:01:21.224 note that the navigator now shows me the methods 27 00:01:21.225 --> 00:01:23.115 of the Item class. 28 00:01:26.116 --> 00:01:28.226 The output window down here is equivalent 29 00:01:28.227 --> 00:01:31.009 to the terminal window in BlueJ 30 00:01:33.113 --> 00:01:36.116 NetBeans has a lot more menu options and icons 31 00:01:36.117 --> 00:01:38.224 throughout its interface than BlueJ does 32 00:01:39.001 --> 00:01:40.222 and thats because its a lot more powerful, it 33 00:01:40.222 --> 00:01:42.224 does a lot more than BlueJ 34 00:01:43.114 --> 00:01:45.113 it can take a bit of getting used to though 35 00:01:45.220 --> 00:01:48.223 in order to learn to make full use of its capabilities. 36 00:01:50.118 --> 00:01:52.225 I'm now going to run the adventure game program 37 00:01:52.228 --> 00:01:56.002 and I can do this in a number of ways, I can right click 38 00:01:56.006 --> 00:01:58.001 and the class that has the main method 39 00:01:58.002 --> 00:01:59.113 and choose run file 40 00:02:00.115 --> 00:02:02.228 I can choose the run menu 41 00:02:03.008 --> 00:02:05.115 and the run project option 42 00:02:06.005 --> 00:02:10.114 or I can simply click the run icon here, lets do that 43 00:02:12.112 --> 00:02:15.222 and the program runs and I can interact with it 44 00:02:25.227 --> 00:02:27.229 and now the program is terminated.