Want to open a JPanel on code editor view

Hi All,

I want to open a JPanel in the code-window area. JPanel is written in *.form file extension.

On a button click I want to open the Panel in code editor view, so that user can do click action on form opened in editor view.

I tried all the relevant question snippets in the intellij-support but not working. Please let me know if I am missing something or please help me with a code snippet.

Thank you in advance. Please let me know if more information is required.