I have Class called ConnectionDB and in this class I have Main method and another function in the class ConnectionDB,That is
private static Connection DBConnectionstring()
In this function I have Connection URL ,Drivers inside this function .
I want this function to be used in another class (GUILogin) with main function in it and Login button on it.
I want ActionListner of the Login button to get that class from ConnectionDB.
I click on the button I want to get connected to the Database.