Detecting screen size


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Detecting screen size

  1. #1
    Join Date
    Feb 2003
    Posts
    1

    Detecting screen size

    is it possible to detect the user screen size eg. 800X600 then direct them to a web site depending on thier screeen size if so how would this be done ?

    i have very little java experiacne
    so please make as clear as possible

    thanking u in advance

    world hopes
    B-mad

  2. #2
    Join Date
    Nov 2002
    Posts
    138
    Maybe this will do, though you are talking about resolution and this one is more of the size of the screen.

    Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();

    The Dimension class has the getWidth(), getHeight() methods, and other methods that would help you get what you want when it comes to size and stuff.

    Check the classes responsible, as there must be something that handles your question directly.

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