ÀûÓÃJFreeChartÉú³É¼òµ¥Öù״ͼ(Java)
package barchartdemo1;
import java.awt.Font;
import java.io.FileOutputStream;
import java.io.IOException;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartUtilities;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.CategoryAxis;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.CategoryDataset;
import org.jfree.data.category.DefaultCategoryDataset;
/**
*
* @author Administrator
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
CategoryDataset ds = getDataSet();
JFreeChart chart = ChartFactory.createBarChart3D(
"Ë®¹û²úÁ¿Í¼", //ͼ±í±êÌâ
"Ë®¹û", //Ŀ¼ÖáµÄÏÔʾ±êÇ©
"²úÁ¿", //ÊýÖµÖáµÄÏÔʾ±êÇ©
ds, //Êý¾Ý¼¯
PlotOrientation.VERTICAL, //ͼ±í·½Ïò
true, //ÊÇ·ñÏÔʾͼÀý£¬¶ÔÓÚ¼òµ¥µÄÖù״ͼ±ØÐëΪfalse
false, //ÊÇ·ñÉú³ÉÌáʾ¹¤¾ß
false); //ÊÇ·ñÉú³ÉurlÁ´½Ó
CategoryPlot categoryplot = (CategoryPlot) chart.getPlot();
NumberAxis numberaxis = (NumberAxis) categoryplot.getRangeAxis();
CategoryAxis domainAxis = categoryplot.getDomainAxis();
/*------ÉèÖÃXÖá×ø±êÉϵÄÎÄ×Ö-----------*/
domainAxis.setTickLabelFont(new Font("sans-serif", Font.PLAIN, 11));
/*------ÉèÖÃXÖáµÄ±êÌâÎÄ×Ö------------*/
domainAxis.setLabelFont(new Font("ËÎÌå", Font.PLAIN, 12));
/*------ÉèÖÃYÖá×ø±êÉϵÄÎÄ×Ö-----------*/
numberaxis.setTickLabelFont(new Font("sans-serif", Font.PLAIN, 12));
/*------ÉèÖÃYÖáµÄ±êÌâÎÄ×Ö------------*/
numberaxis.setLabelFont(new Font("ºÚÌå", Font.PLAIN, 12));
/*------Õâ¾ä´úÂë½â¾öÁ˵ײ¿ºº×ÖÂÒÂëµÄÎÊÌâ-----------*/
chart.getLegend().setItemFont(new Font("ËÎÌå", Font.PLAIN,
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
×°ÁËwin7ÒÔºóÖØÐÂÅäÖÃÁËjavaµÄ»·¾³±äÁ¿¡£
Ê×ÏÈ£¬JDKºÍJREµÄÇø±ð£ºjdk£¨java development toolkit£© jre£¨java run environment£©£¬Ç°Õß¾ÍÏñÊǸöjavaµÄ±àÒëÆ÷£¬ºóÕßÌṩһ¸öÔËÐл·¾³£¬javaÐéÄâ»ú°É¡£Ò»°ãÖ»ÓÃ×°jdk¾ÍÐÐÁË£¬ÀïÃæ×Ô¶¯»áÓиöjre¡£
ÎҵĹý³Ì£º
1. ÏȽâѹEclipse£¬ÔËÐÐÐèÒªÐéÄâ»ú
2. °²×°jre6£¬²»ÓÃÈκΠ......
1¡¢±àдһ¸ö¼òµ¥µÄÎı¾±à¼Æ÷£¬ÒªÇ󣺾ßÓдò¿ª¡¢±£´æ¡¢Ð½¨£¬Õ³Ìù¡¢¸´ÖƵȹ¦ÄÜ£»¾ßÓÐÒ»¸ö¹¤¾ßÌõ¡£
1.1¡¢³ÌÐòÔ´Â루²Î¼ûmenu.java£©£º
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.URL;
public class menu extends JFrame impl ......
Õ⼸ÌìÒ»Ö±ÔÚÑо¿FlexÖÐRemoteObjectÓëjavaµÄ½»»¥ÎÊÌ⣬¿ÉÒ»Ö±²»³É¹¦£¬½ñÌìÖÕÓڳɹ¦ÁË£¬µ«ÊÇ»¹ÓÐһЩÒÉ»ó£¬Ó¦¸Ã¼ÌÐøŬÁ¦¡£
ÏÂÃæÊÇÎҵľ¹ýºÍÅöµ½µÄ´íÎó£º
£¨1£©ÏÂÔغͰ²×°lcds.
ÔÚ°²×°Ä¿Â¼Ï»áÓÐÈçÏÂÎļþ£¬ÆäÖÐlcds.war¿ÉÒÔ×÷ΪÎÒÃÇ¿ª·¢FlexÓëjava½»»¥µÄÄ£°æ£¬°ÑÕâ¸öÎļþ¿¼µ½ÄãtomcatµÄwebappsÏ£¨µ±È»ÕâÖÖÇé¿öÊÇÄ ......
ÔÚJavaÖÐÈç¹ûList ½áºÏ´æÈ¡µÄÊÇÐí¶àÀàÐͲ»Í¬µÄÊý¾ÝÈçint,String ÀàÐͶ¼ÓУ¬ÄÇôÈçºÎʹÓÃJSTL±í´ïʽѻ·»ñÈ¡List¼¯ºÏÖеÄÔªËØÄØ£¿
È磺¼ÙÈçList list=new ArrayList(); int a=1; String b="sss"; String c="ddddddd";……ÔÚServletÖРʹÓÃSession ±£´æ
session.set ......