• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

How to add the another keyboard layout to the custom on-screen keyboard

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there. I very hope on your help. I found an on-screen keyboard on javaFX. On the assignment, I need to add support for the Ukrainian language. Change the language I knotted on the button metaKey. The problem is that when you try to hang a listener on this button (toggleButton), because of the lambda-based handler, all the code breaks. I understand logically what needs to be added, but the functionality is not enough knowledge. Push me please in the desired direction. Thanks in advance.

Here is the actual code:
VirtualKeyboard

The Main.class
VirtualKeyExample
 
Saloon Keeper
Posts: 15714
367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

Many users are reluctant to go off-site to check out code. Can you post the relevant snippets here? When you do, please surround the code in code tags like [code]this[/code].
 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your github code, you have eliminated the import statements.  Please include them, as it makes the code much harder to read and can also change the meaning of the code.

So, to combine what Campbell and I said, post the entire code listing here, with import and package statements, and UseCodeTags (that's a link).
 
Denis Nikashin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your advice, but I can't do it, because my post is very long. I can show link on GitHub repo with source code its I want to change. I'm so sorry.
link on GitHub repo with virtualKeyBoard
 
Denis Nikashin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your advice, but I can't do it, because my post is very long. I can show link on GitHub repo with source code its I want to change. I'm so sorry.
link on GitHub repo with virtualKeyBoard

Also here is a link to my post on another forum, however it is Russian-speaking
link
 
Knute Snortum
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I got your code to execute, but I don't know what the problem is.  In particular, what does this mean?

Change the language I knotted on the button metaKey. The problem is that when you try to hang a listener on this button (toggleButton), because of the lambda-based handler, all the code breaks.


Could you post the listener code that breaks all the code?
 
Denis Nikashin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your answer, but I managed to find another solution. However, it does not completely solve the problem. I can change languages, but one language remains inactive. To achieve this, I changed the method of the ShiftaleButton (). I attached my new solution as a file to this message. Thanks.
 
Denis Nikashin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
O, I didn't manage to correctly issue my post, but the rest of the code has not changed.
 
Knute Snortum
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I can't tell if you still have issues or is it all good?
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic