java binary text input
-
20-12-2019 - |
Frage
I am trying to make a Java program that translates text to binary and vice versa. However, I am struggling with the binary to text part. I figured out that you can add date and phone number formats using a JFormattedTextField. But I'm trying to make a more complicated format where the user can only type the numbers 1 and 0, and it adds a (not-selectable) dash between bytes.
(10011100-01001101 and you can copy it without copying the dash: you would copy 1001110001001101 to your clipboard instead)
I have no idea how to get the desired result. Can someone please explain how to make a format that only enables ones and zeros?
Lösung
You can find help in this tutorial.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow