0

I have to re-engineer a Java program which uses the old version 5 of JGraph. I have to replace this package with the new version 6.
It was possible in version 5 to create a cell with an HTML-Object, so I could change the style of a cell into a style which looks like a database table.
Is it possible to change the style of a mxCell like this with user object oder other methods in the new version?

naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259
TobiasH
  • 83
  • 1
  • 8

1 Answers1

1

You can create custom vertices that may use any Swing components when rendering. Create a custom vertex that uses a Swing component that supports HTML (and a good number of them do). Displaying the HTML label string directly to the component will cause it to render the HTML correctly.

naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259
Frodo Baggins
  • 8,290
  • 6
  • 45
  • 55