Java Programming 2 - JavaFX Draw Lines With Arrow Keys (Problem 15.9)

Published: 15 October 2017
on channel: Christian Hur
3,097
30

⭕ Overview
In this video, I dive into a Java programming challenge from Chapter 15, Exercise 15.9, where we'll learn how to draw lines using the arrow keys on your keyboard. This exercise is a fantastic way to get hands-on experience with handling key events and graphical output in Java.

We'll start by setting up a basic JavaFX application that captures arrow key presses to draw lines starting from a fixed point on the application window. The challenge involves dynamically changing the end point of the line as you press different arrow keys, allowing you to "draw" directly within the window.

Throughout this tutorial, I'll walk you through the code required to set up the key event handling, update the line's position, and refresh the display to show the drawing in real-time. This project is great for beginners looking to understand more about Java's graphical capabilities and event-driven programming.

By the end of this session, you'll have a functional Java application that reacts to keyboard inputs, enhancing your understanding of JavaFX and its application in creating interactive programs.

If you find this video helpful, please give it a thumbs up, share it with your friends, and subscribe to my channel for more tutorials and insights into programming. Your support helps me create more content to assist you in your learning journey. Thank you for watching!

⭕ Chapters
0:00 - Introduction

⭕ About me
I am a Web instructor and author for Linkedin Learning (formerly Lynda.com), Packt, E-C Council, Udemy, and MC Press.

⭕ Visit my site: https://christianhur.com
⭕ My complete online training courses:
☑️ REST APIs & AJAX Operations Using Node, Express, and jQuery: https://www.udemy.com/course/rest-api...
☑️ Build Clean and Secure PHP Web Apps From Scratch: https://www.udemy.com/course/build-cl...
☑️ Angular 9 New Features: https://www.packtpub.com/web-developm...
☑️ Full-Stack Web Development with Flask: https://www.packtpub.com/web-developm...
☑️ Full-Stack Web Development with Django & Angular 8: https://www.packtpub.com/web-developm...
☑️ Angular 7 New Features: https://www.packtpub.com/web-developm...
☑️ The DOM in JavaScript, jQuery, AngularJS, and React :   / the-dom-in-javascript-jquery-angularjs-and...  
☑️ Building JSF Web Applications with Java EE 7:   / building-jsf-web-applications-with-java-ee-7  
☑️ Troubleshooting Vue.js: https://www.packtpub.com/application-...

⭕ Check out my book:
Developing Business Applications for the Web: With HTML, CSS, JSP, PHP, ASP.NET, and JavaScript is available on Amazon and MC Press.
☑️ Link: https://www.mc-store.com/collections/...


Watch video Java Programming 2 - JavaFX Draw Lines With Arrow Keys (Problem 15.9) online, duration hours minute second in high quality that is uploaded to the channel Christian Hur 15 October 2017. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 3,097 times and liked it 30 visitors.