[oXygen-user] Display my own Swing component
Oxygen XML Editor Support
support at oxygenxml.com
Mon Apr 9 00:58:42 CDT 2012
Hi Florent,
Just create your own "javax.swing.JDialog" and show it like:
> JDialog myDialog = new JDialog((JFrame)pluginWorkspaceAccess.getParentFrame(), true);
> myDialog.setSize(500, 500);
> myDialog.getContentPane().add(myJPanel);
> //The modal dialog blocks here until the user closes it.
> myDialog.setVisible(true);
> //Then get results from the dialog and use them
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 4/8/2012 2:30 PM, Florent Georges wrote:
> Hi,
>
> I developed a plugin for the standalone XML Editor (that is, a
> workspace access plugin extension), and I'd like to display a dialog
> box. I know the methods Workspace.show*(), but I'd really like to
> display my own box, in order to ask the user to fill in fields and
> provide some infos.
>
> How can I get the Swing container where I can display my own window?
>
> Regards,
>
More information about the oXygen-user
mailing list