Java GUI Framework Question: Download Questions PDF
How to draw lines between JLabels on a JPanel?
![Java GUI Framework Interview Answer Java GUI Framework Interview Question](https://globalguideline.com/public/images/interview/11.png)
Answer:
You are apparently trying to draw a graph by using normal widgets to draw the nodes of your graph. This is not a good idea. Consider using the Java 2D API (nowadays part of J2SE) to draw the complete graph. Have a look at java.awt.geom for predefined shapes. Also check out Sun's 2D Programmer's Guide
Download Java GUI Framework Interview Questions And Answers
PDF
Previous Question | Next Question |
How to to write a diagram editor. How to start? | How to draw a tree? |