Hi, i'm working in a big project and i am using internal frames however i came a cross several questions (first time doing it in java).
What is the best way to work with the internal frames? this is how my classes are managed:
--mainFrame (this is the desktop frame)
----method for loginFrame (method where internal frame is created)
----method for mainFrame's menu (where it is created)
so basically i have methods to create internal frames in the mainFrame class, i thought about creating a different classes for each internal frame but i have a problem when adding the action listeners because what i want the buttons to do. in some cases i need to modify the mainFrame or some of its variables from the action listener in a button in an internal frame but how do i interact back and forth with the desktopframe (mainFrame) from internal frames made in another class? or is the best approach to just make the actual frames in different classes and handle the Action Listeners in the mainFrame?
i'm lost since is the first time i'm trying to make a project involving desktop frames/ internal frames in java and it is seriously different from .net u_u i will appreciate your advices in what are the best approaches to do this
PD: this involves databases and i was also wondering, is it better to leave the connections open through the entire application or just open the connections when needed and close them when done over and over and over?