-
Notifications
You must be signed in to change notification settings - Fork 2
/
SickNick.java
27 lines (25 loc) · 688 Bytes
/
SickNick.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import java.awt.*;
import java.applet.Applet;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.event.*;
public class SickNick extends JFrame
{
public static void main(String[] args)
{
SickNick a = new SickNick();
}
public SickNick()
{
super("Sick Nick");
setSize(1280, 720);
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
HomePage b = new HomePage(); //instantiate
b.setBorder(BorderFactory.createEmptyBorder(-15, 0, 0, 0)); //insets, set top inset to -15 to compensate for default blank space
setContentPane(b);
//because some panels use null layout and have "magic numbers",
//set resizable to false
setResizable(false);
setVisible(true);
}
}