OpenLiberty/liberty-tools-intellij

Update UI with Kotlin UI instead of Java swing/.form files, Jetbrains has deprecated Java swing classes and methods.

Opened this issue · 2 comments

Jetbrains deprecated UI classes and methods we used in LTI UI development.

  • ComponentPanelBuilder
  • PanelGridBuilder
  • UI.PanelFactory.panel(JComponent)
  • UI.PanelFactory.grid()

These deprecated classes/ methods are used in MicroProfilePropertiesView and MicroProfileJavaView, which are coming under lsp4mp4ij component.

Question - Both UI.PanelFactory.grid() and UI.PanelFactory.panel(JComponent) are deprecated. The reason given is "Provides incorrect spacing between components and out-dated. Fully covered by Kotlin UI DSL, which should be used instead. PanelGridBuilder will be removed after moving Kotlin UI DSL into platform API package". Will IntelliJ stop supporting JSwing and '.form' files in the near future?

Reply from Jetbrains slack channel "AFAIK we will not stop supporting .form-based UI, but using Kotlin UI DSL is the preferred and supported way"

MicroProfilePropertiesView and MicroProfileJavaView, these classes are used to display Microprofile settings in IntelliJ. But currently we are not using these in our LTI plugin.

Settings screen from intellij-quarkus
image