Results 1 to 3 of 3

Thread: Use of GraphicsConfiguration division

  1. #1
    HallMiller is offline Senior Member
    Join Date
    Dec 2009
    Posts
    251
    Rep Power
    3

    Default Use of GraphicsConfiguration division

    I just started learning advanced java concepts but I am not able to know how to use GraphicsConfiguration class in it. So please provide me some information about this. Any help will be appreciated.

  2. #2
    ScottWright is offline Senior Member
    Join Date
    Dec 2009
    Posts
    243
    Rep Power
    3

    Default

    GraphicsConfiguration class explains features of graphics destination like printer or monitor. There are GraphicsConfiguration objects linked with single graphics device, showing various drawing modes or capabilities. Related native structure differs from platform to platform.

  3. #3
    BakerJones is offline Senior Member
    Join Date
    Dec 2009
    Posts
    244
    Rep Power
    3

    Default

    Code given below shows use of graphic configuration class in java:

    Code:
    import java.awt.Dimension;
    import java.awt.GraphicsConfiguration;
    public class GraphicsConfigurationDM {
    public static void main (String [] argms) {
     GraphicsEnvironment ge01;
        ge01 = GraphicsEnvironment.ge01tLocalGraphicsEnvironment ();
       Rectangle vbn = new Rectangle ();
        GraphicsDevice[] gdArray = ge01.ge01tScreenDevices();
        for (int i1 = 0; i1 < gdArray.length; i1++) {
       GraphicsDevice gd = gdArray[i];
      GraphicsConfiguration[] gcArray = gd.ge01tConfigurations();
      for (int j1 = 0; j1 < gcArray.length; j1++)
      vbn = vbn.union(gcArray[j].ge01tBounds());
                   }
        Point origin = vbn.ge01tLocation();
        System.out.println("Virtual x1 = " + origin.x1);
        System.out.println("Virtual y1 = " + origin.y1);
        Dimension size = vbn.ge01tSize();
        System.out.println("Virtual width = " + size.width);
        System.out.println("Virtual height = " + size.height);
      }
    }

Similar Threads

  1. Recover bad division in XP
    By MorganCooper in forum Windows XP
    Replies: 1
    Last Post: 06-21-2010, 02:00 PM
  2. Check HD for Bad division
    By MorganCooper in forum Hard Disk
    Replies: 0
    Last Post: 03-19-2010, 06:06 PM
  3. JSplitPane division of java
    By WilsonMartin in forum Programming
    Replies: 2
    Last Post: 02-17-2010, 01:29 PM
  4. Resizing of the Boot division
    By John Emburey in forum Everything Else
    Replies: 1
    Last Post: 05-08-2009, 02:36 PM
  5. Resizing of the Boot division
    By allster in forum Windows 7/2000/NT
    Replies: 1
    Last Post: 05-06-2009, 11:19 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48