I have an SWT application which is quite complex at the moment. And I want to make the app able to switch interface languages without restarting. What is the best way to do it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Control API (which is the superclass for all SWT components) has a method redraw(), which, I assume, calls the create contents method again and should provide the result you are looking for.
EDIT: I just tested this by making a button and setting its text to a random number after each push, and it works without any aesthetic side-effects.