在JFrame中使用了如下函数使之全屏运行
//取得GraphicsDevice,显示卡,此程序在有些集成显卡上不能工作 
GraphicsEnvironment ge =GraphicsEnvironment.getLocalGraphicsEnvironment(); 
GraphicsDevice gd = ge.getDefaultScreenDevice(); 
    
//显示模式:分辨率,颜色,刷新率 
DisplayMode displayMode=new DisplayMode(1024, 768, 16, 60);//DisplayMode.REFRESH_RATE_UNKNOWN);
if ( gd.isFullScreenSupported() ){ 
gd.setFullScreenWindow(this);//全屏工作 
if(gd.isDisplayChangeSupported()){ 
try{ 
gd.setDisplayMode(displayMode);//设置显示方式 
}catch(IllegalArgumentException e){
e.printStackTrace();

}
}现在要通过单击此JFrame上的一个按钮弹出一个JDialog,求教应该怎么做?
试了SetModal SetAlwaysOnTop好像都不行。。问题是该JDialog显示在了JFrame后,因JFrame占了整个屏幕所以无法看到