展开全部
/*
* Copyright (c) cherry Co. Ltd.
* All right reserved.
*/
package com.cherry.swing;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.geom.QuadCurve2D;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import javax.swing.JFrame;
/**
* @version %I% %G%, 2016年1月7日 下午2:14:17
* @author cherry
*/
public class SmileDemo extends JFrame {
/**
*
*/
private static final long serialVersionUID = 133080909855022641L;
private static final SmileDemo mSmileDemo;
private FaceClass mSmileFaceClass;
private FaceClass mCryFaceClass;
private FaceClass[] mFaceClassArr = new FaceClass[2];
static {
mSmileDemo = new SmileDemo("含泪的微笑");
}
public SmileDemo() {
}
/**
* @param cTitle
* : 窗口标题
*/
public SmileDemo(String cTitle) {
super(cTitle);
}
/*
* (non-Javadoc)
*
* @see java.awt.Container#paintComponents(java.awt.Graphics)
*/
@Override
public void paint(Graphics g) {
super.paintComponents(g);
Graph