问题描述
我正在使用NetBeans用Java开发小型桌面应用程序.由于我是Java的新手,所以我主要拖放控件并使用它们.我在应用程序中使用的是JFrame,在该JFrame上放置了一个JScrollPane,用于显示一些文本信息.
I am developing a small desktop application in Java using NetBeans. Since i am new to java so i mostly drag and drop controls and work with them. What i have in my application is JFrame, on that JFrame i place one JScrollPane where i am displaying some textual information.
现在,我在上面的下方添加了另一个JScrollPane,并希望绘制一些圆角矩形,然后将这些矩形与虚线连接起来.我也想在每个矩形中放一些文字.
Now i added an other JScrollPane below the above and want to draw some rounded rectangle and then connecting those rectangles with the dotted lines. I also want to put little text in each rectangle.
我需要从哪里开始实现以上任务的指导?一些指向优秀教程的链接也将有所帮助
I need guidance from where do i start to achieve the above task? Some links to good tutorials will also be helpful
推荐答案
http://download.oracle.com/javase/tutorial/2d/basic2d/index.html
http://www.realapplets.com/tutorial/DrawExample.html
http://www.apl.jhu.edu/~hall/java /Java2D-Tutorial.html
http://www.deitel.com/articles/java_tutorials/20050923/IntroductionToJava2D_Page2.html
http://download.oracle.com/javase/tutorial/2d/basic2d/index.html
http://www.realapplets.com/tutorial/DrawExample.html
http://www.apl.jhu.edu/~hall/java/Java2D-Tutorial.html
http://www.deitel.com/articles/java_tutorials/20050923/IntroductionToJava2D_Page2.html
这篇关于Java:如何处理图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!