I need an easy way to implement JScrollPane where I can add JTextAreas. This should work as a commentary system, as you can see on youtube and here on Stackoverflow.
it should be in java code, and if theres another other easy way, I would like to know about it.
List<Comment> comments = businessLogicRepair.getComments(oid, "Internal"); for (Comment comment : comments) { jInternalCommentScrollPane.add(new JTextArea(comment.getText())); }
My comment objects contain:
public Comment(String id, String type, String text, String author, String postDate, String repairId) { super(id); this.type = type; this.text = text; this.author = author; this.postDate = postDate; this.repairId = repairId; }
I save comments in a database and I can easily get them. The problem is the exponential part.
thanks for the help
source share