Java JDialog cascadeDialog(JDialog dialog, JDialog parent)

Here you can find the source of cascadeDialog(JDialog dialog, JDialog parent)

Description

cascade Dialog

License

Open Source License

Declaration

static public void cascadeDialog(JDialog dialog, JDialog parent) 

Method Source Code


//package com.java2s;
// it under the terms of the GNU General Public License as published by

import javax.swing.*;
import java.awt.*;

public class Main {
    static public void cascadeDialog(JDialog dialog, JDialog parent) {
        Point p = parent.getLocationOnScreen();
        p.x += 20;/*www  . j  ava 2s .  c om*/
        p.y += 20;
        dialog.setLocation(p);
    }
}

Related

  1. adaptSize(JDialog frame, int preferredWidth, int preferredHeight)
  2. addFileOnAction(AbstractButton button, final JTextField textField, final JDialog parent)
  3. alignDialogInMiddleOfScreen(JDialog dlg)
  4. applyDefaultProperties(final JDialog comp)
  5. calculatePosition(Window parent, JDialog dialog)
  6. chooseFile(final JDialog dialog, final String title)
  7. closeDialog(final JDialog dialog)
  8. commonFileDialog(JDialog parent, boolean save)
  9. configureCancelForDialog(final JDialog dialog, JButton cancelButton)