How to show a dialog in fullscreen mode

My main class is a JFrame, with a JTree in the left and panel in the right.
one of the right panels has to show in fullscreen mode, here is the code:
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
                GraphicsDevice gd = ge.getDefaultScreenDevice();
                JWindow win = new JWindow(gd.getDefaultConfiguration());
                win.add(currentPanel, BorderLayout.CENTER);
                //the currentPanel here is the panel on the right of the JFrame
                gd.setFullScreenWindow(win);
                win.validate();then i want to show a dialog on the fullscreen, which u noe, we have to give (Frame, modal) to the JDialog, so i could only give the dialog the JFrame beneath the fullScreen panel as the dialog's parent......then the dialog wont be shown.....How can i show the dialog?
Best Regards

Then setUndecorated(true) and then do what the previous post said.
You probably would then want to give your user a way to get out of it.

Similar Messages

  • How to show the dialogs in Indesign?

    hi to all,
    I tried these script to show the dialogs but it doesn't work at all!
    $.writeln(app.dialogs.length);
    app.dialogs.everyItem().destroy();
    //for(var i=0;i<app.dialogs.length;i++)
    //     app.dialogs[i].destroy();               //These also i tried//
    var myDialog = app.dialogs.add({name:"Simple Dialog"});
    //Add a dialog column.
    with(myDialog.dialogColumns.add()){
    staticTexts.add({staticLabel:"This is a very simple dialog box."});
    //Show the dialog box.
    var myResult = myDialog.show();
    //If the user clicked OK, display one message;
    //if they clicked Cancel, display a different message.
    if(myResult == true){
    alert("You clicked the OK button.");
    else{
    alert("You clicked the Cancel button.");
    //Remove the dialog box from memory.
    myDialog.destroy();
    i also attaced this script with this forum...
    help me...

    Hi R_Thangaraj,
    your code works very well for me.
    Try to insert the following line at the top of your code to reactivate the user interaction level:
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    Martin

  • How to show dock in full screen mode

    Hello,
    I'm wondering how to get the dock to show up temporarily in full screen mode. When I place my cursor near the bottom of the screen in a full screen app, the dock doesn't pop up. Is this normal and if so, how do I switch between full screen apps without using gestures on the mouse? I'm really hoping that this is a bug.
    Thanks

    Alternatively you can use the same principle anywhere on the screen, you do not have to scroll to the bottom.  Simply move the cursor to the screen edge where your dock is then move the cursor the same direction again. You do have to briefly pause between the two movements but you can do this anywhere the dock is located, it does not have to be at one position on the screen.  That should speed things up a bit and prevents the dock from appearing by inadvertently scrolling to the side or the bottom.
    If you can, get a Magic Trackpad, Lion navigation works very well with one of these, I think that the days of the mouse are numbered.  The numbers of gestures available with the Magic Trackpad is extensive in Lion.

  • How to show start time in week mode on ical?

    I'm looking for a way to show the start time of an event in week mode in iCal. I know you can just click on the event but I want to be able to print and glance at it instantly.
    Any help would be great! Thks!

    Hi,
    There is a preference in iCal's Preferences to show event times. This does not transfer over to printing the calendar.
    Best wishes
    John M

  • How to show print dialog as soon as it opens in browser

    I need to open a pdf with print dialog through AcroJS. The code that I used is:
    console.show();
    var pp = this.getPrintParams();
    pp.interactive = pp.constants.interactionLevel.full;
    this.print(pp);
    In order to add the script I used iText. I made a PdfAction object which add the javascript  to the file. I used PdfWriter to set the open action as:
    writer.setOpenAction(PdfAction.javaScript(<script>));
    But it is not working. It gives the following error when I open the pdf.
    InvalidArgsError: Invalid arguments.
    Global.print:1:Doc undefined:Open
    The acrobat reader version is 7. Any help will be appreciated. Thanks in advance.

    Thanks George. Your solution worked to perfection. I was looking at all kinds of twisted scipts and all it took was an event. Thanks again.

  • How do I switch tabs in fullscreen mode in Safari iOS?

    I like FS mode in Safari, but seems to be unable to switch tabs while in fullscreen?

    Till now, it is not possible.
    Hope this solved your question!

  • How to show controller in full screen mode

    During DVD playing, switching to full screen mode the controller disappears and we can use only the bar at bottom with the essential commands. No possibility to use the rallenty, for instance, which is available opening the drawer of the main controller. The function can be activated through the key board but is not so direct. Does some body know if it is possible to have the complete controller visiblealso in full screen mode?
    Thanks

    Alternatively you can use the same principle anywhere on the screen, you do not have to scroll to the bottom.  Simply move the cursor to the screen edge where your dock is then move the cursor the same direction again. You do have to briefly pause between the two movements but you can do this anywhere the dock is located, it does not have to be at one position on the screen.  That should speed things up a bit and prevents the dock from appearing by inadvertently scrolling to the side or the bottom.
    If you can, get a Magic Trackpad, Lion navigation works very well with one of these, I think that the days of the mouse are numbered.  The numbers of gestures available with the Magic Trackpad is extensive in Lion.

  • How do i show images in full screen mode?

    How do i load a jpg or gif and shows it in an application running in fullscreen mode in the best way?
    as it is now, its g.drawImage(theImage,100,100,(image observer))
    But what object should i use for the image observer?
    The application just runs in a while like this...
    while(!quit){
    render() which gets a graphics from a bufferstrategy to draw on.
    }

    I would imagine you would use the Window that you passed to setFullScreenWindow, and override the imaegUpdate() method in your Window.

  • How do I get the titles to show when in full screen mode

    Hi I'm having a hard with my title showing when in full-screen mode for imovie.  It shows up on the edit screen but not in full screen. Why and how to I change it?

    yours is showing all the time? mine only shows when my mouse is at the bottom of the screen.
    However it also shows for me in non-fullscreen mode after i've switched to a different Space (in Leopard) and back. Have to go into fullscreen and then out of it to make it disappear.

  • How do i hide url WITHOUT hiding tabs in fullscreen mode (F11)?

    Title says it all. I want a fullscreen mode that works exactly like it did in Firefox 4.0.

    There are some hacky things you can do with the toolbar area in full screen mode. I worked on one recently to keep the Bookmarks Toolbar displayed. Hopefully someone can work out the rules for the tab bar.
    That other thread: [https://support.mozilla.org/en-US/questions/956050 How do I show the bookmarks toolbar while in fullscreen on Firefox 20? In older versions you could edit the userChrome.css file. Does that still exist?]

  • Fullscreen Mode shows blank black screen..

    Hi,
    I am panorama photographer and usually show my panos on FPP (Flash panorama player). 
    I want to show .flv movie on inside the panorama but there were some problems with fullscreen
    mode. -> When I click on the panorama fullscreen button, the flash movie turns fullscreen
    instead of the panorama.
    My workaround is laying an iframe (in which the flash movie is inserted) on the <div> layer.
    At first it seemed to be working OK but the problem is that once I click on the "movie" button,
    the panorama's fullscreen mode just show black blank screen. 
    -> "Movie" Button
    You can check my pano at: 
    http://www.panosis.com/biz/ubertree/movie_test/openvr.html
    Try  to see the panorama in fullscreen mode before watching the movie, it will work fine.
    But turning the panorama in fullscreen mode after watching the movie shows just
    blank black screen and I guess this might have something to do with HTML layer
    or iframe?
    Does anybody have a clue what the problem is?
    Thank you in advance!
    Sang-Wook

    Hi Luckey,
    One option that I do want to try, is booting the computer into safe mode. I have included the steps here for you to follow: (steps obtained from 'Windows 7 Safe Mode')
    Entering Safe Mode at start up
    Use the following steps to start Windows 7 in Safe Mode when the computer is off:
        1)Turn on the computer and immediately begin pressing the F8 key repeatedly.
        2)From the Windows Advanced Options Menu, use the arrow keys to select Safe Mode, and press  ENTER.
    ** The computer will automatically exit Safe Mode when it is shut down. **
    Once you are able to access safe mode. Try to access your Device Manager. I have included the document 'How Do I Access Device Manager in Windows?'. Please click on your operating system, and open Device Manager. Once the Device Manager window is open, please follow these steps.
    1) Click the plus sign beside keyboard
    2) Right click on the device in this section
    3) Click uninstall
    4) Click the plus sign beside Mice and other pointing devices
    5) Right click on the device in this section
    6) Click uninstall
    Once these steps have been completed, please shut down the computer completely and restart. Please let me know if you are able to fully use the keyboard and mouse after. Thank you.
    I worked on behalf of HP

  • How to I get iPhoto to stop opening in fullscreen mode?

    Every time I open iPhoto, it opens in fullscreen mode. It's as if there is a setting that has been set for it to do it(though I've checked the settings and there's no such thing). I usually exit fullscreen mode in the usual way and it cooperates, but then sure enough, the next time I open it up, it's in fullscreen mode again. Additionally, perhaps it is linked to this problem, everytime I open iPhoto, it tells me that "iPhoto has detected inconsistencies in your[my] library" and that I should "click Repair to avoid any potential problems". I've clicked repair numerous times but it still gives me the same message the next time I start the program. I've tried deleting the iPhoto plist file and that has not helped either.
    Another side note that may be similar is that Terminal always opens in fullscreen just like iPhoto.

    Alright, I fixed the problem!
    A more in depth description of the process, some credit for its origins, why it works, and how else you can use it can be found here:
    https://discussions.apple.com/message/17269094#17269094
    But basically, you do the following:
    1. Navigate to "~/Library/Saved Application State/"
    2. Find "com.apple.iPhoto.savedState"
    3. Move it to the Trash
    4. Launch iPhoto
    Also, to solve the issue involving "Repairing" the Library, I had to navigate to the file "iPhoto library" (in ~/Users/dro8654/Pictures) and edit its "Sharing & Permissions" preferences such that only MY user was allowed to "Read & Write"
    This discussion was what helped me with this:
    https://discussions.apple.com/message/17261957#17261957

  • How can I see my movie in FullScreen mode

    Hello everyone,
    I've converted all my divx and other DVD Rip (home made) with AVS Video Converter Pro in order to import them in iTunes ... I try to see one oh these movies with my Apple TV thanks to my shared iTunes Library ... it's works but the video take only 2/3 of my TV screen ... I've got a 46" and 36" but this problem appear on both.
    I want to see my movie on FullScreen mode not only 2/3
    I checked video format and it's the same as the original movie (I tried to show this movie thanks to my Playstation 3 and it works in FullScreen .... but I want to use Apple TV for all my music and movies instead my Play Station
    So is there any option or anything to do to enable FullScreen mode for my video ... do I have to convert my DivX in an other format ?
    Thanks for your help
    PS : I've got the last Apple TV and I downloaded the last upgrade early.
    Thanks & Regards
    Cyril

    How can it be possible because the resoution of my video source is the same before and after conversion process ... thanks to my ADSL Box and my PS3 the video is ok ... not with ATV ...
    Could you please give me the resolution I should have for my video in SD or HD720 ?
    All my video have converted in 768x576 ...
    Is there another way to convert my video for iTunes instead AVS Video Converter ?
    Thanks all

  • How to switch fullscreen mode with normal mode in OSMF with mediacontainer and mediaplayer?

    i use OSMF to make a video player ,use the mediacontainer and mediaplayer ,all works right but to switch from normal to fullscreen mode ,i don't know how ?
    because my videoplayer can be resized with some ratio ect 50%.
    anyone do something similar to this? any help?
    thanks very much!

    I did this:
    public function toggleFullScreen( event:Event=null ):void
    if( this.stage.displayState == StageDisplayState.NORMAL )
    // set full screen display
    this.stage.scaleMode = StageScaleMode.NO_SCALE;
    $playerInstance.width = $stage.fullScreenWidth;
    $playerInstance.height = $stage.fullScreenHeight;
    bg.height = $stage.fullScreenHeight;
    $playerInstance.addChild(controlBar2);
    LayoutMetadata($playerInstance.media.getMetadata(LayoutMetadata.LAYOUT_NAMESPACE)).scaleMo de= ScaleMode.ZOOM;
    var resultRect:Rectangle = new Rectangle(0, 0, $stage.fullScreenWidth, $stage.fullScreenHeight);
    stage.fullScreenSourceRect = resultRect;
    this.stage.displayState = StageDisplayState.FULL_SCREEN;
    else
    $playerInstance.width = 600;
    $playerInstance.height = 400;
    $playerInstance.mediaContainer.width = 600;
    $playerInstance.mediaContainer.height = 400;
    LayoutMetadata($playerInstance.media.getMetadata(LayoutMetadata.LAYOUT_NAMESPACE)).scaleMo de= ScaleMode.LETTERBOX;
    bg.height = 400;
    // set normal display
    stage.fullScreenSourceRect = null;
    this.stage.scaleMode = StageScaleMode.NO_SCALE;
    this.stage.displayState = StageDisplayState.NORMAL;

  • How was this done? Fullscreen mode?

    How did they do the fullscreen mode?
    http://www.sasokos.com
    Thanks a lot!

    type 'fullscreen' into flash help search and click on the
    first item under Programming ActionScript 3.0, 'Setting Stage
    Properties' and look at 'Working with full-screen mode'.
    Or have a look at adobe articles, for example,
    here.

Maybe you are looking for