Java 3D: How to Display a GUI When Mona Lisa's Eye Is Clicked (with Source Code)

Опубликовано: 05 Июнь 2026
на канале: fukinotou11d
114
0

#Java3Dtutorial #GUIcomponents #password
This video explains how to create a GUI, how to make it appear when Mona Lisa's right eye is clicked, and how to make it disappear when the Sign_up or Log_in button is clicked.

Source code described in this video:
https://sites.google.com/view/flying-... (new Google Site)

Source code described in
"Java 3D: How to Display a Message on the Screen When Mona Lisa's Eye Is Clicked"
https://sites.google.com/view/flying-... (new Google Site)

Source code described in
"Java 3D: How to Create an Art Museum in Blender and Import it"
https://sites.google.com/view/flying-... (new Google Site)


For how to clear TextFields, I referred to the following site:
https://stackoverflow.com/questions/1...


Image files I used:

1) Mona Lisa
https://en.wikipedia.org/wiki/Mona_Lisa
By C2RMF: Galerie de tableaux en tres haute definition: image page - Cropped and relevelled from File:Mona Lisa, by Leonardo da Vinci, from C2RMF.jpg. Originally C2RMF: Galerie de tableaux en tres haute definition: image page, Public Domain, https://commons.wikimedia.org/w/index...

2) The Dance Class
https://ccsearch.creativecommons.org/...

3) A Girl with Pearl Earring
https://en.wikipedia.org/wiki/Girl_wi...
By Johannes Vermeer - http://www.mauritshuis.nl Museum page Info, Public Domain, https://commons.wikimedia.org/w/index...

4) Picture frame
https://pixabay.com/en/picture-frame-...


Illustration I used:

1) Emoji (Public Domain)
Webpage and license:
http://gahag.net/tag/%E9%A9%9A%E3%81%8F/


To learn more:
About Java 3D:

Free online books:
Dr. Andrew Davison's "Killer Game Programming in Java":
http://fivedots.coe.psu.ac.th/~ad/jg
Dr. Andrew Davison's "Pro Java 6 3D Game Development":
http://fivedots.coe.psu.ac.th/~ad/jg2


About Java:
   • Java Programming Tutorial - 2 - Running a ...  
https://www3.ntu.edu.sg/home/ehchua/p...


To use the KeyNavigatorBehavior class in this source code, I used the following code:

1) Part of code from BackgroundApp.java included in the source bundle
that accompanies Sun Microsystems' Java 3D API Tutorial
Copyright (c) 1996-2000 Sun Microsystems, Inc. All Rights Reserved.

Copy of the above tutorial:
https://web.cs.ucla.edu/classes/cs269...
Change ch0.pdf to ch1.pdf-ch7.pdf in the address bar to display other chapters.

Example source code:
http://www.interactivemesh.org/off/do...


Thank you for watching my video, and I appreciate the people who have posted wonderful free software, images, and Java 3D tutorials that allowed me to make the video.