Java Swing custom shapes (2D Graphics)

前端 未结 3 1632
清歌不尽
清歌不尽 2021-01-15 15:23

I need to draw custom shapes. Now when a user clicks on several points on the panel I create a shape using a polygon.

public void mouseClicked(MouseEvent e)          


        
3条回答
  •  忘掉有多难
    2021-01-15 15:55

    The ImageJ project has a particularly nice implementation of a Polygon tool with adjustable vertices, as seen here and here.

提交回复
热议问题