Hello Atsuhiro-san,
I am currently improving my local knowledge of Java Swing, but
indirectly via jruby - so I kind of use ruby as a "simplifier".
I recently had a use case to find out how to respond to mouse
events, e. g. "on left mouse click, select the full entry",
typically on a JTextField widget.
Now I did google-search and got some results, but many StackOverflow
answers are outdated. So my second attempt was to visit the
great github resource here. More specifically, I actually used:
https://ateraimemo.com/Swing.html
There is a TON of information available there - it is probably
one of the best, if not the best, resource available, so thank
you for maintaining this. I haven't read through all tips so far,
only perhaps ... 1% or so. Anyway.
The first question or objective I had was: where to find mouse
related information on that website?
So I next went to this URL:
https://ateraimemo.com/?cmd=list
To try to get an overview of all commands available.
I then searched for "mouse"; results would include:
Swing/DisableMiddleMouseClickPaste
Swing/DividerMouseEvent
Swing/HorizontalMouseWheel
Swing/ListMouseSelection
Swing/MouseDrivenImageRotation
Swing/MouseInfo
Swing/MouseOverPainter
Swing/MouseWheel
Swing/MouseWheelScroll
Swing/MouseWheelTabCycling
Swing/OnlyLeftMouseButtonDrag
This is good, but it seems as if having a dedicated
widget with mouse-specific events may not exist in a
standalone-application, including doing certain
actions based on mouse events - specifically left-mouse
button click event, middle-mouse button click event,
right-mouse button click event.
Perhaps a new java-swing application could be added
that showcase all mouse-events, in a simple manner.
Your time is most likely limited so I don't want to
suggest anything that takes your time away; perhaps
a simpler application, just showing left-mouse,
middle-mouse and right-mouse event may be useful,
on a swing-widget that people may commonly interact
with (e. g. the best here is probably something the
user can input text into, as this is quite a common
task, next to clicking a button).
At any rate, thank you for reading this; please do
feel free to close this issue at any moment in time
for any reason.