Page 1 of 1

Dialog not opening on Oxygen

Posted: Mon Oct 16, 2023 4:59 pm
by karthickmv
Hi ,

I am facing an issue with the creation of Jdialog and Jframe in oxygen xml editor. I have a framework defined in xml editor and have imported a few actions from the sample-framework project of the oxygen sdk. The actions involving fragment insertion seems to be working fine. However there seems to be an issue with the actions creating a Jframe. I get the following exception

"Couldn't execute operation: 'com.boeing.rsuite.oxygen.InsertImageOperation' for action: 'showForm' because of: null
java.awt.HeadlessException: null"

I am using xml editor 25.1.0.0. Any help on this would be really great.

Thanks,
Karthick

Re: Dialog not opening on Oxygen

Posted: Tue Oct 17, 2023 7:59 am
by Radu
Hello Karthick,
There are two "flavors" of Oxygen:
1) Oxygen XML desktop (XML Author or XML Editor) which is a desktop Java Swing-based application.
2) Oxygen XML WebAuthor which is an online web-based editor.

For which of these Oxygen flavors are you creating the framework? I assume it's for (1) because (2) implements its visual components with Javascript and has no relationship with Swing based components.
When Oxygen desktop is installed it usually has its own Java VM, how are you running Oxygen when you get that exception? Can you give me the entire stack trace of the exception? The error seems to indicate you are running it with a Java VM which is configured to run headless.

Regards,
Radu

Re: Dialog not opening on Oxygen

Posted: Tue Oct 17, 2023 12:31 pm
by karthickmv
Hi Radu,

I was actually implementing this solution on the oxygen web author. So this swing components wont work on the oxygen web author ??

Thanks & Regards,
Karthick

Re: Dialog not opening on Oxygen

Posted: Wed Oct 18, 2023 10:28 am
by cosminef
Hello,
Yes, Swing components won't work on Oxygen Web Author, wich is a Javascript web based application, so you would typically use HTML for structure, CSS for styling.
https://www.oxygenxml.com/doc/versions/ ... -waCustom/

Best Regards,
Cosmin