Here you can find the source of showStaticPage(final URI uri, final Dimension size, final Point location)
public static void showStaticPage(final URI uri, final Dimension size, final Point location) throws IOException
//package com.java2s; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Point; import java.io.IOException; import java.net.URI; import javax.swing.JEditorPane; import javax.swing.JFrame; import javax.swing.JScrollPane; public class Main { /** Creates a frame with a JEditorPane with given URI. */ public static void showStaticPage(final URI uri, final Dimension size, final Point location) throws IOException { final JFrame frame = new JFrame(); frame.getRootPane().setLayout(new BorderLayout()); JEditorPane editor = new JEditorPane(uri.toString()); editor.setEditable(false);/* ww w .j a va 2 s. c om*/ JScrollPane scrollPane = new JScrollPane(editor); frame.getRootPane().add(scrollPane); frame.setAlwaysOnTop(true); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); frame.setSize(size); frame.setLocation(location); frame.setVisible(true); } }