What is wrong with my Java code?

So I’m trying to make a school planner for a school project. This is still a pretty early build so it’s not great. But for some reason it doesn’t matter what you type in the number input it only edits the first column and no other.(Be mindful I have only programmed it to edit the first two so far) I have no idea why it’s doing this because the code clearly said to only edit the first column if the number is 1. Yet doesn’t matter if I type 1 or 2 it only fills in the first one.

haven’t read through the whole codebase, but one suspicious thing going on is you’re using = assignment in if conditions. you gotta use == or === for comparison.