Java JDialog initialiseFrame(JDialog frame, JScrollPane viewport)

Here you can find the source of initialiseFrame(JDialog frame, JScrollPane viewport)

Description

initialise Frame

License

LGPL

Declaration

private static void initialiseFrame(JDialog frame, JScrollPane viewport) 

Method Source Code


//package com.java2s;
//License from project: LGPL 

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

public class Main {
    private static void initialiseFrame(JDialog frame, JScrollPane viewport) {
        frame.add(viewport);//from   ww  w  . jav a  2  s.  c  om
        frame.setSize(1100, 800);
        frame.setLocation(new Point(200, 100));
        frame.setModal(true);
        frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        frame.setVisible(true);
    }
}

Related

  1. findJDialog(Component c)
  2. fit(JDialog d)
  3. getJDialog(JComponent c)
  4. getRootJDialog(Component component)
  5. getRootJDialog(java.awt.Component c)
  6. isInsideScreen(JDialog component)
  7. jointButton(JDialog frame, final JButton button)
  8. makeJDialogCancellable(final Window w, final Action cancelAction, final boolean disposeOnCancel)
  9. messageDialog(String string, JDialog parentDialog)