Chat Tutorial in NetBeans/Deploy GUI Client: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>SimonSmall Added GUI client deployment |
imported>SimonSmall m Added Category NetBeans |
||
| (15 intermediate revisions by the same user not shown) | |||
| Line 40: | Line 40: | ||
You can check what is held in the database. This allows you check which users have been registered, and may be useful later when developing a game; you can make sure the data is being saved correctly. See [[H2_database_control|here]]. |
You can check what is held in the database. This allows you check which users have been registered, and may be useful later when developing a game; you can make sure the data is being saved correctly. See [[H2_database_control|here]]. |
||
== Additional test == |
|||
Open two terminal / command windows, and run the GUI client in both (or just a second one if there is still one opened and connected). Use both the test1 and test2 users to connect to the game server. Note how any message typed into a client and sent by the Say button will be echoed in both clients. |
|||
= Explanation = |
|||
The GUI client View class contains the code to build the GUI screen layout, although this was created using the GUI layout tool in NetBeans. The screen has a simple layout with only the input fields and buttons that are required. Look at the code created for the GUI screen, and note how much easier it was to create that screen than it would have been to write the code manually. |
|||
The code that was used in the Test class for the text client has been included, with some minor changes, in the code for the Connect button and that for the Say button. |
|||
There are a few things that now need to be done to make this into a usable Chat utility. These are covered in the final part of this tutorial. |
|||
[[Category:NetBeans]] |
|||