JAVA - JFrame not looking proper when called from action listener
问题 I have a problem with one of my frames not looking as it should, when it is called upon the press of a button. The frame looks as if it was rendered improperly, the label text in it is shortened, however when i move the same line of code outside the action listener, it works as it should. I have a sort of main menu, with two buttons, only the Generate Menu works at the moment, it looks like this: https://i.imgur.com/k1Ne5v9.png The code for the action listener: runMenuButt.addActionListener