swing 新应用

关于自定义table, jTabbedPane等

 

jtabbedPane 无边框

UIManager.put("TabbedPane.contentBorderInsets", new Insets(0, 0, 0, 4));  

 

 

JFreechart 应用

http://blog.csdn.net/thomas0yang/article/details/6273519

 

jFreechart 横坐标换行

http://topic.csdn.net/u/20081229/11/8886df6d-30ac-4b5e-a7f3-6a4c8ed5991d.html

http://topic.csdn.net/u/20070112/09/c0c385f8-e852-4c4b-9bf7-fe3b87e55957.html

 

http://www.iteye.com/topic/201899

 

 

改变jfreechart 线条颜色

import java.awt.*;
import org.jfree.chart.*;
import org.jfree.chart.plot.*;
         ...
        //to modify the color of the lines :
         Plot plot = jfreechart.getPlot();
         plot.setDrawingSupplier(getSupplier());
         ...

    private static Color myBlue=new Color(0,128,255);
    public static DefaultDrawingSupplier getSupplier(){
        return new DefaultDrawingSupplier(
                new Paint[] {
             myBlue,
                     Color.green,
                     Color.red,
                     Color.orange,
                     Color.magenta,
                     Color.cyan,
                     Color.pink,
                     Color.gray,
                     Color.yellow,
                     ChartColor.DARK_RED,
                     ChartColor.DARK_GREEN,
                     ChartColor.LIGHT_RED,
                     ChartColor.DARK_YELLOW,
                     ChartColor.DARK_MAGENTA,
                     ChartColor.DARK_CYAN,
                     Color.lightGray,
                     ChartColor.LIGHT_RED,
                     ChartColor.LIGHT_BLUE,
                     ChartColor.LIGHT_GREEN,
                     ChartColor.LIGHT_YELLOW,
                     ChartColor.LIGHT_MAGENTA,
                     ChartColor.LIGHT_CYAN},
                 DefaultDrawingSupplier.DEFAULT_OUTLINE_PAINT_SEQUENCE,
                             DefaultDrawingSupplier.DEFAULT_STROKE_SEQUENCE,
                             DefaultDrawingSupplier.DEFAULT_OUTLINE_STROKE_SEQUENCE,
                             DefaultDrawingSupplier.DEFAULT_SHAPE_SEQUENCE
                             );

 

你可能感兴趣的:(swing)