Currently I have made a class named "FundamentalClass" which contains all the methods and Database related objects. Now I have about 15 different JFrame forms and all these forms are calling and initializing the FundamentalClass when they are opened so that I can access its methods and properties like this
FundamentalClass con = new FundamentalClass();
I just wanted to know that is it the correct way of initializing class in each form when it is opened or there is another better way because in this procedure whenever the form is opened every time it initializes FundamentalClass which have a lot of methods.
I have a MainScreen form which have menus to call these 15 forms. Will it be a better idea to call and initialize FundamentalClass in MainScreen form and pass its object in every JFrame form?
Guys I am not a OOP Expert so please suggest me what would you do if you had 15 forms and all these forms had to call such class? And these forms are opened through the Menus of MainScreen.