KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > joshy > html > test > CustomBlockTest


1 package org.joshy.html.test;
2
3 import org.joshy.html.*;
4 import java.awt.*;
5 import javax.swing.*;
6 import org.joshy.u;
7
8 public class CustomBlockTest {
9     public static void main(String JavaDoc[] args) throws Exception JavaDoc {
10         HTMLPanel panel = new HTMLPanel();
11         LayoutFactory.addCustomLayout("custom",new XLayout());
12         panel.setDocument("demos/customblock.xhtml");
13         JFrame frame = new JFrame();
14         frame.getContentPane().add(panel);
15         frame.pack();
16         frame.setSize(200,200);
17         frame.show();
18     }
19 }
20
Popular Tags