By Tony Bevis on Monday, 23 October 2023
Category: Java

Java programming course: 16.5 The AdministratorFrame class

The AdministratorFrame class

The frame now only needs to show ZooKeeperPanel inside a tab of a JTabbedPane. Create a class in virtualzoo.ui called AdministratorFrame:

Change the main() method of VirtualZoo to instantiate AdministratorFrame (you will need to import virtualzoo.ui):

At this point you can run the application to ensure it appears as below:

You will note that after entering some details and clicking the Save button the added zookeeper is not appearing in the list on the left. This will be addressed in the next lesson.

Next lesson: 16.6 Updating ZooKeeperList automatically

Related Posts

Leave Comments