Java Window Setup (Facet Class)
package dymetric;
import java.awt.*;
import javax.swing.*;
public class Facet extends JFrame {
public Container face;
public ButtonandCanvasPanels components;
public ImageIcon logo;
public Facet() {
super("A window that will hold a Canvas and Button");
setSize(780,400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setResizable(true);
logo = new ImageIcon(getClass().getResource("studyingPays.png"));
this.setIconImage(logo.getImage());
face = this.getContentPane();
face.setBackground(Color.PINK);
components = new ButtonandCanvasPanels();
face.add(components.button_panel, BorderLayout.NORTH);
face.add(components.canvas_panel, BorderLayout.CENTER);
}
}