Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package zadatak09;
- import java.awt.Color;
- import javax.swing.JFrame;
- public class Zadatak09 extends JFrame {
- public static void main(String[] args) {
- new Zadatak09();
- }
- public Zadatak09() {
- setSize(500, 500);
- setLocationRelativeTo(null);
- getContentPane().setBackground(Color.GRAY);
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement