The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available. See Java Language Changes for a summary of up
Hallo, welchen Listener kann ich denn verwenden, um abzufragen, ob die Maus über einem Button liegt und wann nicht mehr. (ohne Klicken!) Sozusagen, ab wann der JButton die farbige Umrandung bekommt und wann sie wieder verschwindet.
Use the ButtonListener for both classes. There ist still room for improvements, but this is a solution based on your code, that works. The ButtonListener now takes the calling JFrame as argument to close it when needed.
Post a Comment:
Showing 0 Comments: