O'Reilly logo

Mastering Leap Motion by Brandon Sanders

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the graphical frontend

With our skeleton framework written and laid out, we can now work on flushing out the graphical component of Leapaint. As we're using the Java programming language for this application, we will write the graphical side of things using the Java Swing API. First up is the LeapButton class.

Note

As you read this section and the remainder of this chapter, keep in mind that as this book is titled Mastering Leap Motion and not Mastering the Java Swing API, I will not be discussing the fine details of what the Swing API calls are doing or how they work.

Making a responsive button – the LeapButton class

It's time to make your first Leap-driven, visually responsive button. There are many, many different ways to go about coding ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required