Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does Swing 1.1 (in JDK 1.2) support right-to-left text entry?

0
Posted

Does Swing 1.1 (in JDK 1.2) support right-to-left text entry?

0

• This answer is complicated because the support in JDK 1.2 is incomplete. We do have some basic support in Swing at the JDK 1.2 level. In particular, the two styled text components, JTextPane and JEditorPane can be enabled for rtl text. The two plain text components, JTextArea and JTextField can not be enabled for rtl text. Furthermore, the rtl support in the styled text components only kicks in when you set an undocumented Document Property on the document being used by your text component. If you need to know more about how to do this, let me know. Finally, when rtl support is turned on, there are a number of bugs that make the rtl support somewhat less than industrial strength. Whether you are able to live with these restrictions will depend on your particular situation. Still, we felt it was better to get what we had into the JDK sooner rather than later. The good news is that the rtl support in JDK 1.3 is *much* better. Have a look at the beta or look for one of the release candi

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.