Hello everybody; I'm new here and in Java.
I am writing my first simple application and couldn't find the proper way to declare bean, that shouldn't be instantiated on app startup. My case is:
I have a main window, where is button that opens another window - for now it's ok.
I want another window (where the user will fill the data and send some to main window) opening from it. When I declare bean with another window both windows appears on startup.
Shouldn't I declare bean for that window (so for what is that XML file? Only for main frame?)
Should I create another XML file?
Should I set some property for such bean?