I have created a resource bundle with multiple languages in Intellij. I am using IntelliJ's GUI designer and it could use resources bundle to correctly i18n my texts. However, I want to read from this resource bundle inside my code.
I tried to use the read bundle code generated by GUI designer but failed. What should I do to read from this resource bundle?
You may tell IDEA to generate GUI into Java source code in the
Settings | Editor | GUI Designer, however as the https://www.jetbrains.com/help/idea/2023.3/gui-designer.html said, it does not encourage the users to use the generated code, as it somehow relies on the IDEA code librarycom.intellij.DynamicBundle:Instead, I suggest you to try follow these guides: https://www.baeldung.com/java-resourcebundle