List of utility methods to do JDialog Create
JDialog | createDialogForPanel(JDialog parent, JPanel panel) create Dialog For Panel JDialog newdialog = new JDialog(parent); newdialog.getContentPane().add(panel, java.awt.BorderLayout.CENTER); newdialog.pack(); return newdialog; |
JDialog | createJDialog(Component parentComponent) create J Dialog return createJDialog(parentComponent, null, true);
|
javax.swing.JDialog | createPackedJDialog(java.awt.Component content, java.awt.Component ownerComponent, String title, boolean isModal, int closeOperation) create Packed J Dialog javax.swing.JDialog rv = createJDialog(ownerComponent, title, isModal);
rv.getContentPane().add(content);
rv.pack();
rv.setDefaultCloseOperation(closeOperation);
return rv;
|