velocityhtmlpanelsimulator.java

来自「oraily的Swing hacks code」· Java 代码 · 共 36 行

JAVA
36
字号

import com.jonathansimon.swing.hacks.velocityhtml.VelocityHtmlPanel;

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

/**
 * Created by IntelliJ IDEA.
 * User: Jonathan Simon
 * Date: Mar 3, 2005
 * Time: 3:41:10 PM
 * To change this template use File | Settings | File Templates.
 */
public class VelocityHtmlPanelSimulator {

    public VelocityHtmlPanelSimulator() {
        JFrame frame = new JFrame("Velocity HTML Panel Simulator");
        frame.setBounds(200,200, 500, 350);

        VelocityHtmlPanel velocityHtmlPanel = new VelocityHtmlPanel();

        frame.getContentPane().setLayout(new BorderLayout());
        frame.getContentPane().add(velocityHtmlPanel.getComponent(), BorderLayout.CENTER);

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.show();

    }


    public static void main(String[] args) {
        new VelocityHtmlPanelSimulator();
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?