Questions tagged [jtextpane]

A Java Swing text component that can be marked up with attributes that are represented graphically.

A Java Swing text component that can be marked up with attributes that are represented graphically. You can find how-to information and examples of using text panes in Using Text Components, a section in The Java Tutorial.

1037 questions
-4
votes
1 answer

want a java swing tableview example

We are developing a java Swing application .I want to add a table in a JTextPane, the table can be resized and shoude be support multi-span (row and column).It seems java Swing table view support this, but I cant find any example of this. Can…
husanhong
  • 15
  • 6
-5
votes
1 answer

Why could JTextPane::setText throw an Array Out of Bounds Exception?

Why could be a possible reason for: JTextPane p = new JTextPane(); p.setText("hello"); The exact code is rather long. So I'm not sure what parts I must show here. It's something like: Tab t = new Tab(jp1); t.editortxt.setText("hello"); Tab extends…
batman
  • 5,022
  • 11
  • 52
  • 82
1 2 3
69
70