Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Toolkit;

public class Main {
    public static void fullWindow(Frame frame) {
        //      Get the size of the screen
        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
        frame.setSize(dim.width, dim.height);

        // Move the window
        frame.setLocation(0, 0);
    }
}