sergAccount

Untitled

Nov 29th, 2020
418
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 calcapp;
  7.  
  8. import javax.swing.JFrame;
  9. import javax.swing.JPanel;
  10.  
  11. public class Okno extends JFrame {
  12.     // конструктор класса
  13.     public Okno() {
  14.         setTitle("Калькулятор");
  15.         setBounds(10, 10, 800, 600);
  16.         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  17.         // add main panel
  18.         getContentPane().add(createPanel());
  19.         setVisible(true);
  20.     }
  21.     //
  22.     public JPanel createPanel() {
  23.         JPanel p = new JPanel();
  24.  
  25.         return p;
  26.     }
  27. }
  28.  
RAW Paste Data