Problem with class field initialization, Swing UI Designer
See original GitHub issueI have quite a lot of forms in my plugin made using Swing UI Designer. In 2021.3 with plugin version 1.3.0 everything worked well, but when I updated the version to 2022.1 and the plugin to version 1.5.3, exceptions appeared.
After the update, when trying to create a window, an exception appears that the lateinit
class property has not been initialized. For nullable properties, the value has always become null
. For the form used on the plugin settings page, this resulted in an endless loading.
The corresponding classes for forms are written in Kotlin.
After I changed the plugin version to 1.5.2 everything started working again.
Issue Analytics
- State:
- Created a year ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Custom Create in form - Fields don't get initialized when ...
I want to create a form using the GUI Designer that contains an EditorTextField. To initialize this text field, I need to manually ......
Read more >IntelliJ IDEA UI Designer form elements initialize to null
It's a known issue when the build is delegated to Gradle. The workaround is to disable the build delegation and switch compilation to ......
Read more >How to Use Tables (The Java™ Tutorials > Creating a GUI ...
This Swing Java Tutorial describes developing graphical user interfaces (GUIs) for applications and applets using Swing components.
Read more >Comp310: Using WindowBuilder
Work-araound: Either manually move the initialization code into the initGUI() method or simply drop a component into the frame or panel and WindowBuilder...
Read more >GUI Programming Part 2 - Java Programming Tutorial
swing.ImageIcon class models an image icon. An ImageIcon is a fixed-size picture, typically small, and mainly used for decorating GUI components.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I tried again,
1.6.0-SNAPSHOT
can solve this problem. Thank you for your repair @hszYou can refer to the branch code: https://github.com/fffguo/qianmi-idea-plugin/tree/1.6.0-SNAPSHOT