I do a program using swing. The point is that everything is interconnected in a class because of ActionListeners, then everything is in one file. Something to look for or change in it is extremely inconvenient. How to organize a class and remove all classes from it, but so that they see all the variables of my current class?
You can appreciate the scale of the tragedy here .