OpenLiberty / liberty-tools-intellij

IntelliJ IDEA extension for Liberty
https://plugins.jetbrains.com/plugin/14856-open-liberty-tools
Eclipse Public License 2.0
12 stars 24 forks source link

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

Open aparnamichael opened 2 months ago

aparnamichael commented 2 months ago

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

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

aparnamichael commented 2 months ago

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"

aparnamichael commented 1 month ago

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