Custom InputControl w/o char->string conversion

Finn Herpich finn at
Tue Mar 26 08:40:16 UTC 2019

Hi everyone,

I'll hope this is the right place to ask. I'm currently evaluating 
multiple ways to write a cross platform application with the requirement 
to be able to clear certain inputs from memory rather quickly and not 
wait for the GCs mercy.

I've tracked the JavaFx TextInputControls back to the point where the 
character from the input event is transformed into a string. Which 
happens roughly in

My questions results in, if it would be possible to write a custom 
control (or some other way) which would leave at least no traces in the 
string pool? Right now I've not enough knowledge about JavaFX internals, 
but it seems like this event handling is implemented way down the rabbit 
hole and it looks like a major afford to avoid the char->string conversion?

I would be happy about any pointers where to look/start, or if a project 
like this would be doomed from the start =).


Alice and the Builders GmbH
Grantham-Allee 2-8, 53757 Sankt Augustin
Amtsgericht – Registergericht – Siegburg
HRB 13552, Sitz Siegburg
Geschäftsführer: Michael Sczepanski, Martin Hensel, Finn Herpich

More information about the openjfx-dev mailing list