Save this video free

UNC COMP 301 - F26/Lec 20 - MVC (Cont.) - Songs Playlist example

Muhammad Sayeed Ghani · 1:15:12 · Watch on YouTube

Part of UNC Chapel Hill COMP 301. See all 19 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Muhammad Sayeed Ghani walks through a JavaFX songs playlist application to show how MVC divides playlist data, user-request handling, and interface rendering. The design uses Song and playlist model interfaces, an Observer pattern to refresh views after model changes, and an alternate MVC architecture where views call a controller that validates input and delegates operations to the model.

Key takeaways

Chapters

0:00 Lecture Plan: Finish MVC with a JavaFX Playlist
2:09 Playlist Demo: Add, Delete, Move, and Shuffle Songs
4:19 MVC Responsibilities and the Code Walkthrough Roadmap
8:15 Classic and Alternate MVC, and Why the Model Comes First
11:55 Song Interface: Three Read-Only Attributes
16:00 Song Implementation and Model-Level Rating Integrity
20:49 Playlist Model Interface: Index-Based Operations
25:07 Observer Interface: Updating Views After Model Changes
28:38 Concrete Playlist Model: Songs, Observers, and Constructors
32:16 App Wiring and the InitialPlaylist Factory
36:56 Model Mutations: Move, Shuffle, and Notify Observers
42:56 Controller Interface: Translate View Actions into Model Calls
50:48 Controller Implementation: Boundary Checks and Graceful Validation
59:02 JavaFX View Structure: FXComponent and the Main Window
1:07:14 ControlsView and SongView: JavaFX Events Reach the Controller

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:01 today. Uh well hopefully everybody is well on their way to getting assignment number eight part one completed. Uh so what we're going to discuss today and perhaps continuing on with this lecture in the next uh on Tuesday we should be finishing up essentially the original scheduled uh topics for this course. And so that's the good news. Um while we have missed a couple of lectures however um we have actually covered essentially the entire course uh by the end of this lecture or perhaps Tuesday however um we would have still have a few lectures left so I haven't quite decided what topics I'm going to cover in those but I'll probably

0:49 introduce a few topics which might be a bit more relevant for you uh once you go into the industry after a few years hopefully um or perhaps Perhaps I'll go back and take a look at some of the topics that we perhaps didn't spend as much time on uh in the in the early lectures and focus on those. But we'll see. So today um we'll go on and take a look at a larger slightly larger uh model view controller application which is a songs playlist. All right. And what we'll do initially is take a look at the actual code uh well actually at the running code and see if we can understand that and once we have an idea of how the application actually runs and

1:37 the user interface we'll go ahead and um walk through the entire code. Now I'm not going to do any live coding. This is uh that would take far too long and it probably introduce a lot of errors. Uh it is pretty large piece of code. uh what I'm simply going to do is going to

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Muhammad Sayeed Ghani.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.