JDialog within JPanel Form
velidandas <[email protected]> Tue, 11 Dec 2007 23:59:29 -0800 (PST)
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Message-ID | <[email protected]> |
Hi, I need to create new model dialog. I have an application with single JFrame Form(mainFrame) causing code too large error as the initComponents() method has more than 8000 lines. To get rid of this, I created a new JPanel Form(abcPanel) and within this added a new JDialog (abcPanelDlg). Now, I could not set the data for the text field in abcPanelDlg of abcPanel class from mainFrame class. None of the fields/UI elements of abcPanelDlg are visible from mainFrame class, but abcPanel and abcPanelDlg are visible. If I am doing something wrong above, please let me know how to create a model dialog in a separate class rather having it in mainFrame class. I tried adding a dialog in another JFrame Form and was able to set the data, but not sure what properties are to be set to make the JFrame to be used as JDialog, also not sure whether I can use JFrame as JDialog or not. Please suggest me a solution. Thanks & Regards, Srinivas. -- View this message in context: http://www.nabble.com/JDialog-within-JPanel-Form-tp14290507p14290507.html Sent from the Netbeans - UI mailing list archive at Nabble.com.