[SOLVED] swing dialogbox size
I'm using netbeans. I'm making a swing application, and I have 1 thing I need help with and a suggestion about something else.
1. In my main JFrame, I have a menu bar with File Edit and Help menus. I have a Menu Item that says "About..." in the Help menu. I have a dialogbox that I am going to put version, information etc. in. In the dialog box Code properties, in After-All-Set Code, I had put aboutdialog.setVisible(false);, but when I take it away and run program it isn't there anyway so I think since it's an "other component", its default state is hidden. So then in the about menu item's action performed event, I put aboutdialog.setVisible(true);, when I run the program, when I click the about menu item, the dialog is always in the top-left corner and is very small, only like 10 height 20 width probably. I have tried changing all the properties that have to do with this and it doesnt work. How can I get the DialogBox to start out same spot as the main JFrame and have it's size be the same that I set in the Design view? Please and Thankyou tell me what's wrong.
2. Not as urgent, I have other components of the project, JFrame's also. I have buttons on the main app that I will link to them, but how will I do this? How can I make them come up? or can I call their main method? And then would i make the Main app get closed and that new one appear? Or can I make them all kind of go onto the same area... thanks in advance.