简体   繁体   中英

implementing UI for relationship between Entities of a database via Swing-java

关系是一对一的

I want to implement UI like as image which attach my two tables; im using JAVA swing to implement a drag and drop User interface for users to generate a database xml code eg DB Designer Fork.

Have implemented design of tables just wanted to get idea how to make a line which will be attached to the table han onclick.

This example uses drawLine() to connect JInternalFrame instances in a JDesktopPane , but you can draw() any desired Shape . PointyThing illustrates a common line decoration.

Also consider an existing library, as suggested here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM