JAVA: How can I bring a FileDialog to the foreground by default?

Help please. How can i bring a FileDialog to the foreground by default? The code below does not put the dialog in the foreground. I’ve tried all the obvious methods but nothing seams to work.

Many thanks in Advance

import lotus.domino.*;

import java.awt.*;

public class JavaAgent extends AgentBase {

public void NotesMain() {



	try {

		Session session = getSession();

		AgentContext agentContext = session.getAgentContext();



       	FileDialog fd = new FileDialog(new Frame(),"Save As.. V0.2",FileDialog.SAVE);

        	//fd.setVisible(true);

          	// fd.requestFocus();

        fd.setFile("test.txt");

      		// fd.toFront();

      	fd.show();







	} catch(Exception e) {

		e.printStackTrace();

	}

}

}