JAVA - Cisco Telnet Applet touchTab
On April 27,2022 by Tom Routley[JAVA] Cisco Telnet Applet touchTab
Issue
I am working to modify a Java applet that allows me to make telnet (I use Telnet JTA) coupled to a Socks proxy. It works great, but I have a problem with the Tab key. In fact I control of Cisco equipment and therefore the Tab key is vital!
My Problem is if I press tab, I lose focus on the applet, and I have to click on it again.
I tried several solutions, in Javascript, by modifying the applet with the KeyEvent, requestFocus, setFocusTraversalKeysEnabled ... Nothing helps.
It's been 4 days that I'm on it and I'm starting to lose patience.
I must have a design problem, so my questions are:
- How to handle the Tab key as if I support it, the power key in the console and telnet that the focus remains on this applet?
- Java or Javascript?
The applet is on GNU https://githubom/thinkberg/jta
Thank you!
Solution
https://bugs.javaom/bugdatabase/view_bug.do?bug_id=4650902
This Is not a bug. It's a change made in the Focus API specification. I did not like this change Because The compatibility with Previous version WAS broked.
Purpose if you use this code, Probably Will your application works fine: "getFocusCycleRootAncestor (). SetFocusTraversalKeysEnabled (false)"
The traversal keys like Will Work In The previous JVM versions.
It works perfectly (in HTML / Applet and appletviewer)!
Note
Solved by ahmet0851
Article Recommendations
Latest articles
Popular Articles
Archives
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- January 2021
Leave a Reply