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

User interface: Demo - Clojure Tutorial

From the course: Code Clinic: Clojure

Start my 1-month free trial

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.

Contents