java - displaying several lines of two-word strings on a JTextComponent with Justified alignment -
as picture below shows, i'm trying display text 1 in table of contents. "items" start @ same position. doesn't matter me wether "values" end @ same position, start @ same position, or centered in right-column of textpane. also, don't strictly need use jtextpane - if it's possible achieve effect using jtextpane, i'd most. i'd different font types items , values.
i add item/value pairs calling textpane.append("\nitem1: value1");
can change too. have tried experimenting justified alignment, can't make work in desirable way.
Comments
Post a Comment