Getting java pop-up in front of oXygen (ANT)
Posted: Mon May 07, 2018 5:46 am
I'm using oXygen build 2018022209 and I'm using embedded java scripts to receive user input. I can't use oXygen editor variables for this, because some of the information (like passwords) needs to be secure and, as far as I can tell, passing an editor variable through to ANT in oXygen echoes out something like this:
"/Applications/Oxygen XML Editor/tools/ant/lib/ant-launcher.jar" "-Dant.home=/Applications/Oxygen XML Editor/tools/ant" org.apache.tools.ant.launch.Launcher -f "path/to/my/build" "-Dpd="my/project/directory/editor/variable "-Dwebhelp.trial.license=no" "-Dpassword=mySecretPassword"[/code]
So, I'm using a Java popup instead like so in my ant build:
However, the pop-up box looks like this: https://github.com/joeytakeda/misc/blob ... _forum.png where the pop-up box comes in behind the oXygen window. Is there any way to get this pop-up box to go in front of the oXygen window?
Thanks!
Joey
Code: Select all
"/Applications/Oxygen XML Editor/.install4j/jre.bundle/Contents/Home/jre/bin/java" -Dapple.awt.UIElement=true -Xmx256m -classpath [code]
So, I'm using a Java popup instead like so in my ant build:
Code: Select all
<script language="javascript">
<![CDATA[
var pw = new javax.swing.JPasswordField();
var choice = javax.swing.JOptionPane.showConfirmDialog(null, pw, "Enter Password..", javax.swing.JOptionPane.OK_CANCEL_OPTION, javax.swing.JOptionPane.PLAIN_MESSAGE);
if (choice == javax.swing.JOptionPane.OK_OPTION) {
// create ant property
var pwd = pw.getText();
project.setProperty("pwd", pwd);
} else {
javax.swing.JOptionPane.showMessageDialog(null, "ERROR: User cancelled input. Aborting.");
throw "Password required!";
};
if (pwd.isEmpty()) {
javax.swing.JOptionPane.showMessageDialog(null, "ERROR: No password entered! Aborting.");
throw "Password required!!";
}
]]>
</script>
Thanks!
Joey