Page 1 of 1

Oxygen is given focus (brought to the front of my open windows in my OS).

Posted: Wed Jun 14, 2023 2:02 pm
by amitkumarpandit245
Hi Team,
Do we have a method in oxygen which will bring my oxygen editor in front of all the opened windows on my OS? .
boolean open(java.net.URL url) -- This method does not seem to bring my editor in the front when I open any file in oxygen.
Thanks & Regards
Amit Kumar

Re: Oxygen is given focus (brought to the front of my open windows in my OS).

Posted: Wed Jun 14, 2023 3:07 pm
by Radu
Hi Amit,

Maybe you can try something like this to bring the Oxygen frame to front:

Code: Select all

((java.awt.Frame)ro.sync.exml.workspace.api.PluginWorkspaceProvider.getPluginWorkspace().getParentFrame()).toFront();
Regards,
Radu

Re: Oxygen is given focus (brought to the front of my open windows in my OS).

Posted: Mon Jun 19, 2023 4:10 pm
by amitkumarpandit245
Hi Radu,
I did tried this option. It does not seem to work.
((java.awt.Frame)ro.sync.exml.workspace.api.PluginWorkspaceProvider.getPluginWorkspace().getParentFrame()).toFront();
Thanks & Regards
Amit Kumar

Re: Oxygen is given focus (brought to the front of my open windows in my OS).

Posted: Tue Jun 20, 2023 9:56 am
by Radu
Hi Amit,

Maybe you can give me a general idea where in your code you used the "Frame.toFront()" idea I gave you.

Regards,
Radu