Java Graphics Settings getSecondWindowConfiguration()

Here you can find the source of getSecondWindowConfiguration()

Description

get Second Window Configuration

License

Open Source License

Declaration

private static GraphicsConfiguration getSecondWindowConfiguration() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;

public class Main {
    private static GraphicsConfiguration getSecondWindowConfiguration() {
        GraphicsDevice[] screens = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();

        if (screens.length < 2) {
            return null;
        }/*ww w . ja  v a2s  . c om*/

        return screens[1].getDefaultConfiguration();
    }
}

Related

  1. getDefaultGraphicsConfiguration()
  2. getMaxWindowBounds(final GraphicsConfiguration gc, final boolean applyScreenInsets)
  3. getRenderingHints(final Graphics2D g2d, final Map hintsToSave, Map savedHints)
  4. getRenderingHints(Graphics2D g2d, Map hintsToSave, RenderingHints savedHints)
  5. getRenderingHints(Graphics2D g2d, RenderingHints hintsToSave, RenderingHints savedHints)
  6. getTransparentGraphicsConfiguration()
  7. gradientFillShape(Graphics2D g, Color startColor, Color endColor, Shape shape)
  8. gradientPaint(Graphics2D g2d, Point2D startPosition, Color startColor, Point2D endPosition, Color endColor, int sx, int sy, int ex, int ey)
  9. setClip(Graphics g, Rectangle clipBounds)