Full Screen Java Application - possible?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Full Screen Java Application - possible?

  1. #1
    Ganymed Stanek Guest

    Full Screen Java Application - possible?


    I'd like to do a Full Screen Slide Show - it doesn't matter if i realise it
    as a real java application or a applet.

    How can I get rid of the windows controls to have it really full screen?

  2. #2
    Ako Guest

    Re: Full Screen Java Application - possible?


    Try this i havent tried it myself so i dont know if it works or not


    Frame openWin = new Frame();
    openWin.setBackground(Color.black);
    openWin.hide();
    ////////////////////////////////////

    //<!------Detect screen size
    Dimension SIZE = Toolkit.getDefaultToolkit ().getScreenSize();

    int SCREEN_WIDTH = SIZE.width;
    int SCREEN_HEIGHT = SIZE.height;

    GFX_window = new Window(openWin);
    GFX_window.setBounds
    (0,0,SCREEN_WIDTH,SCREEN_HEIGHT+20);
    GFX_window.show();
    GFX_window.requestFocus();




    Good luck,


    Ako



    "Ganymed Stanek" <ganymed@stanek.ch> wrote:
    >
    >I'd like to do a Full Screen Slide Show - it doesn't matter if i realise

    it
    >as a real java application or a applet.
    >
    >How can I get rid of the windows controls to have it really full screen?



  3. #3
    Justin Campbell Guest

    Re: Full Screen Java Application - possible?


    Assuming that this method works (I am unsure if it will or will not), this
    code makes several assumptions about the user's environment.

    1) The user has a visible task bar.
    2) The user has positioned their task bar on the bottom of the screen.
    3) The task bar will always be 20 pixels high.

    If one or more of these are incorrect, your result will be undefined. No
    doubt there will be some sort of Exception thrown for attempting to go outside
    valid screen boundaries.

    Best of luck.

    Justin Campbell

    "Ako" <ays73@hotmail.com> wrote:
    >
    >Try this i havent tried it myself so i dont know if it works or not
    >
    >
    >Frame openWin = new Frame();
    >openWin.setBackground(Color.black);
    >openWin.hide();
    >////////////////////////////////////
    >
    >//<!------Detect screen size
    >Dimension SIZE = Toolkit.getDefaultToolkit ().getScreenSize();
    >
    >int SCREEN_WIDTH = SIZE.width;
    >int SCREEN_HEIGHT = SIZE.height;
    >
    >GFX_window = new Window(openWin);
    >GFX_window.setBounds
    >(0,0,SCREEN_WIDTH,SCREEN_HEIGHT+20);
    >GFX_window.show();
    >GFX_window.requestFocus();
    >
    >
    >
    >
    >Good luck,
    >
    >
    >Ako
    >
    >
    >
    >"Ganymed Stanek" <ganymed@stanek.ch> wrote:
    >>
    >>I'd like to do a Full Screen Slide Show - it doesn't matter if i realise

    >it
    >>as a real java application or a applet.
    >>
    >>How can I get rid of the windows controls to have it really full screen?

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center