question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with class field initialization, Swing UI Designer

See original GitHub issue

I 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:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
fffguocommented, May 16, 2022

I tried again,1.6.0-SNAPSHOT can solve this problem. Thank you for your repair @hsz

3reactions
fffguocommented, May 13, 2022

You can refer to the branch code: https://github.com/fffguo/qianmi-idea-plugin/tree/1.6.0-SNAPSHOT

  • The code environment is ready
  • Focus on observation of this class:com.github.qianmi.ui.setting.PluginSettingPage
  • setting -> other setting -> 千米网: This operation can reproduce
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found