showing awt/swing componets in fullscreen mode

hey.
I want to show swing componets (like JDialog) in fullscreen exclusive mode.

my renderingloop :


public void run()
    {      while(running)
                 {         //calculate
                            //draw
                            bufferStrategy.show();
                      Thread.yield();
}}          
                



when I place dialog.show() after // draw my program don’t respond anymore

My wild guess:

You are in FullScreen mode not Windowed
and Dialog extends Window

So there may be some conflict there.