daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Jan 24th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.awt.Dimension;
  2. import java.awt.Toolkit;
  3. import javax.swing.*;
  4.  
  5. public class Kek {
  6.     public static void main(String[] args) {
  7.         Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
  8.         double width = dim.getWidth();
  9.         double height = dim.getHeight();
  10.         System.out.println(width);
  11.         System.out.println(height);
  12.         int xt = (int) width;
  13.         int xy = (int) height;
  14.         JFrame win = new JFrame();
  15.         win.setTitle("Добро пожаловать снова");
  16.         win.setBounds(0,0,xt,xy);
  17.         win.setVisible(true);
  18.        
  19.             }
  20. class createWin {
  21.     //Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
  22.     int shi;
  23.     int vys;
  24.     int glyb;
  25. }
  26. }
  27. //отдельный метод ко
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top