Solved

JEditorPane TAB JDK 1.2.2

Posted on 2000-03-23
3
340 Views
Last Modified: 2008-02-20
How do I change the default width of a tab stop in a JEditorPane in JDK1.2.2

The default seems to be 8, I want 2 or 4.

Thanks.
0
Comment
Question by:cmain
  • 2
3 Comments
 
LVL 2

Expert Comment

by:mwibbels
ID: 2648819
If you're using PlainDocument for the document model (if you're not sure call getDocument() on the JEditorPane and see what you get) there is an attribute called 'tabSizeAttribute', if you set that on your document you can set the tab size.

See the documentedtion for javax.swing.text.PlainDocument
0
 
LVL 1

Author Comment

by:cmain
ID: 2649017
Got it thanks.
if (wantPoints())
  answer();

0
 
LVL 2

Accepted Solution

by:
mwibbels earned 100 total points
ID: 2649110
answer();
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java Server Faces parameter pass? 6 48
object oriented programming comparison 5 69
factorial example 4 39
tomcat not starting 6 45
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now