From the course: Code Clinic: Clojure
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
User interface: Demo - Clojure Tutorial
From the course: Code Clinic: Clojure
User interface: Demo
- [Instructor] Let's take a look at our completed program. First, I'm going to right-click on the file, go to REPL, and click Load File in REPL to load in our new code. Now I'll toggle over to the REPL and type ui-main false to start up the UI. Now with my program open, I'm gonna click Choose source directory, click images, click Choose, and for the target directory, I'll click target-images. With those selected, I can see that my Submit button is enabled, and now I'll click Submit. Now I'll close the program and, leaving the REPL, I'm gonna look in our target-images folder. I can see now that our eight images are placed into the target-images folder under various folders. And image eight is in the B folder for the Bride and Bridegroom caption, so I can see that our program works. Now, with the GUI complete, I'll come down here to the main function and call it -main. This will allow a line again to compile the program so that we can run it from the command line if we want to.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Recursion and directories2m 7s
-
Solution overview1m 51s
-
Parsing EXIF data8m 13s
-
Searching directories2m 38s
-
Creating files and directories10m 4s
-
User interface: Create a window5m 34s
-
User interface: Create components4m 27s
-
User interface: Listen for actions5m 40s
-
User Iiterface: Wire up listeners3m 27s
-
User interface: Demo1m 6s
-
-