This is because you didn't call your ButtonGrid frame in main class , Like this :
public static void main(String[] args) {
System.out.println("this prints and no window pops up. it skipped the grid/frame code");
ButtonGrid b = new ButtonGrid();
}