public static String FrameTitle = "Заголовок окна", FrameLabel = "Лейбл окна", btn_1 = "Кнопка 1", btn_2 = "Кнопка 2", btn_3 = "Кнопка 3"; The application works, but is it customary to write this in Java? It’s just inconvenient for each variable to write "public static String ...". But also record
public static String FrameTitle = "Заголовок окна", FrameLabel = "Лейбл окна", btn_1 = "Кнопка 1", btn_2 = "Кнопка 2", btn_3 = "Кнопка 3"; looks unreadable. Are there any other, maybe more correct options?
staticwithoutfinal- but are they not constants after all? And finally - should these values really bepublic? - RegentpublicI won't get to them from other classes? I have these lines in a separate class, and indeed I plan to create all the lines in it - if you suddenly have to change them, you will not need to look for them somewhere in the code. - Daniel