You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
351 B
Java
19 lines
351 B
Java
package peery.window;
|
|
|
|
import java.awt.Component;
|
|
|
|
import javax.swing.JFrame;
|
|
|
|
public class Window extends JFrame{
|
|
|
|
public Window(String name, int width, int height, Component display){
|
|
this.setSize(width, height);
|
|
this.setName(name);
|
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
this.add(display);
|
|
|
|
this.setVisible(true);
|
|
}
|
|
|
|
}
|