Java Screen Size getDefaultMainFrameSize()

Here you can find the source of getDefaultMainFrameSize()

Description

get Default Main Frame Size

License

Open Source License

Declaration

public static Dimension getDefaultMainFrameSize() 

Method Source Code

//package com.java2s;

import java.awt.Dimension;

import java.awt.Toolkit;

public class Main {
    public static Dimension getDefaultMainFrameSize() {
        Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
        size.width = size.width * 8 / 10;
        size.height = size.height * 8 / 10;
        return size;
    }/*  w ww.  j  a v  a  2 s. c om*/
}

Related

  1. adjustPopupLocationToFitScreen(Component invoker, Dimension preferredSize, int xposition, int yposition)
  2. formatScreenSize(Dimension screenSize)
  3. getComponentWidthForResolution(int screenWidth, int desiredSize)
  4. getDefaultAppSize()
  5. getDefaultDeviceScreenSize()
  6. getDefaultScreenBounds()
  7. getDefaultScreenDevice()
  8. getDefaultScreenSize()
  9. getDefaultScreenSizeWithoutAdjustment()