Java JFrame newDialog(JFrame owner, String title, JPanel content)

Here you can find the source of newDialog(JFrame owner, String title, JPanel content)

Description

new Dialog

License

Apache License

Declaration

public static JDialog newDialog(JFrame owner, String title, JPanel content) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class Main {
    public static JDialog newDialog(JFrame owner, String title, JPanel content) {
        JDialog theDialog = new JDialog(owner, title, true);
        theDialog.setContentPane(content);
        theDialog.pack();/*from  w  w  w  .j a va  2  s. c  om*/
        return theDialog;
    }
}

Related

  1. maxIt(JFrame jFrame)
  2. messageDialog(String string, JFrame parentFrame)
  3. metalLookAndFeel(JFrame appFrame)
  4. minimize(JFrame frame)
  5. msgBox(JFrame frame, String title, String message)
  6. newExitActionListener(final JFrame jFrame)
  7. newJFrame(Component c, String title, int w, int h)
  8. newModalDialog(JFrame owner, String title, JPanel content, JButton... buttons)
  9. optionDialog(String title, String text, String option1, String option2, int defaultOption, JFrame parentFrame)