Results 1 to 3 of 3

Thread: Full screen

  1. #1
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Posts
    130
    Rep Power
    0

    Default Full screen

    I have to do an application "full screen" but I don't know how can I do that, and I didn't find something to do it, especially because I use jdk1.3.1 and I can't to use the latest jdk because I use some methods that in the new jdk are deprecate.
    Can you help me?l.

  2. #2
    Ed
    Ed is offline Senior Member
    Join Date
    Jun 2007
    Posts
    110
    Rep Power
    0

    Default

    It works in JDK 1.3.1 AND 5.0
    It creates a windows with the same size of the screen.

    Java Code:
        Window frame = new Window(new Frame()) ;
        Toolkit toolkit = Toolkit.getDefaultToolkit() ;
        Dimension dim = toolkit.getScreenSize() ;
        
        frame.setBounds(0, 0, dim.width, dim.height) ;
    
        ....
    
        frame.setVisible(true) ;

  3. #3
    bbq
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Posts
    132
    Rep Power
    0

    Default

    the example is correct
    but if you want use toFront() method to put close up
    Last edited by bbq; 07-02-2007 at 06:52 AM.

Similar Threads

  1. new screen
    By tha_crazy in forum New To Java
    Replies: 4
    Last Post: 02-16-2011, 11:46 AM
  2. Full Forms of Java Tech
    By Gajesh Tripathi in forum New To Java
    Replies: 1
    Last Post: 10-18-2007, 10:59 AM
  3. Replies: 1
    Last Post: 08-07-2007, 06:04 AM
  4. how to set full screen dimensions
    By valery in forum New To Java
    Replies: 1
    Last Post: 08-03-2007, 07:08 PM
  5. Clear screen in java
    By lenny in forum New To Java
    Replies: 1
    Last Post: 07-30-2007, 10:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •