<%@ page language="java"  contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsp/common/jsp_init.jsp" %>
<body>

<%! public org.opengion.fukurou.util.MemoryMonitor demo = null;
	public int count = 0;
%>

<%	if( demo == null ) {
		demo = new org.opengion.fukurou.util.MemoryMonitor();
		javax.swing.JFrame f = new javax.swing.JFrame("Java2D Demo - GifMemoryMonitor");
		f.getContentPane().add("Center", demo);
		f.pack();
		f.setSize(new java.awt.Dimension(200,200));
		f.setVisible(true);
		f.addNotify();
		demo.surf.start();
	}
%>

<%
	int num = Integer.parseInt( request.getParameter( "NUM" ) );
	if(  count <= num ) {
		count ++;
		String ref = request.getParameter( "Ref" );
		response.setHeader( "Refresh",ref );
		out.println( "Refresh [" + ref + "]........" );
	}
%>
<p>Now Counter [ <%= count %>/<%= num %> ] </p>
<p><%= new java.util.Date() %></p>
<img src="/example/filetemp/monitor.gif" alt="monitor" >

</body>
</html>
