Advertisement
sergAccount

Untitled

Dec 6th, 2020
821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package app8;
  7.  
  8. import javax.swing.JFrame;
  9. import javax.swing.JPanel;
  10.  
  11. public class Okno extends JFrame{
  12.    
  13.     // конструктор класса
  14.     public Okno() {
  15.         setTitle("Mouse TEST!!!");
  16.         setBounds(10, 10, 800, 600);
  17.         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  18.         // add main panel
  19.         getContentPane().add(createPanel());
  20.         setVisible(true);
  21.     }
  22.     //
  23.     public JPanel createPanel() {
  24.         //JPanel p = new DrawPanel();
  25.         JPanel p = new JPanel();
  26.        
  27.         return p;
  28.     }    
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement