All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdc.ui.demos.swing.HtmlFrameDemo Maven / Gradle / Ivy

The newest version!
package cdc.ui.demos.swing;

import java.io.File;

import javax.swing.WindowConstants;

import cdc.ui.swing.widgets.HtmlFrame;

public class HtmlFrameDemo {
    public static void main(String[] args) {
        final HtmlFrame frame = new HtmlFrame(null);
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        frame.setTitle(HtmlFrameDemo.class.getSimpleName());
        frame.getHtmlPanel()
             .append("Hello")
             .append("
Hello
") .append("
    ") .append("
  • ") .href(new File("src/main/java/cdc/ui/demos/swing/HtmlFrameDemo.java"), "HtmlFrameDemo.java") .append("
  • ") .href(new File("src/main/java/cdc/ui/demos/swing/HtmlFrameDemo"), "Error") .append("
") .build(); frame.pack(); frame.setVisible(true); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy