I set it to visible, do everything that needs to be done such as size and layout , and it won't show up when i click run. Anyone know why? I have looked on other view classes i have done in the past and dont see anything different
package model;
import java.awt.*;
import javax.swing.*;
import java.lang.reflect.Method;
@SuppressWarnings("serial")
public class View extends JFrame {
private static final int FRAME_WIDTH = 1000;
private static final int FRAME_HEIGHT = 800;
private static final int FRAME_X_ORIGIN = 250;
private static final int FRAME_Y_ORIGIN = 250;
private JButton solveButton;
private static Controller myController;
public View(Controller controller)
{
myController = controller;
this.setVisible(true);
this.setLayout(null);
this.setSize(FRAME_X_ORIGIN, FRAME_Y_ORIGIN);
Container contentPane;
this.setTitle("NQueens");
this.setResizable(false);
this.setBackground(Color.WHITE);
solveButton = new JButton("Solve");
solveButton.setBounds(500,460,80,80);
this.add(solveButton);
this.setVisible(true);
}
}