473,327 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

No solutions???

I have the following problem that is still unsolved since one month:

when in the content (StyledDocument) of a JTextPane two digits are following
each other - what you can test very easy - they should not be displayed as
normal (from left to right), but from top to bottom. That means they should
have the same x-coordinates, but different y-coordinates.

I think I have to change the Viewfactory or the Editorkit... Please Help

I need this to display fractions and vectors (math.).
Jul 17 '05 #1
2 1568

"Daniel Forster" <tr*@zhwin.ch> wrote in message
news:ca**********@newshispeed.ch...
I have the following problem that is still unsolved since one month:

when in the content (StyledDocument) of a JTextPane two digits are following each other - what you can test very easy - they should not be displayed as
normal (from left to right), but from top to bottom. That means they should have the same x-coordinates, but different y-coordinates.

I think I have to change the Viewfactory or the Editorkit... Please Help

I need this to display fractions and vectors (math.).


I'm not an expert in Java GUIs, however it sounds like JTextPane may not be
appropriate for what you want to do. I would suggest a more 'graphics'
oriented pane where you have the option of positioning text fonts at any
desired (x,y) location and not be forced into the line by line format that
JTextPane seems to be, at least by default, written for.

l8r, Mike N. Christoff

Jul 17 '05 #2
I agree - use a JPanel and the drawstring method of the graphics

"Michael N. Christoff" <mc********@sympatico.caREMOVETHIS> wrote in message
news:hF********************@news20.bellglobal.com. ..

"Daniel Forster" <tr*@zhwin.ch> wrote in message
news:ca**********@newshispeed.ch...
I have the following problem that is still unsolved since one month:

when in the content (StyledDocument) of a JTextPane two digits are following
each other - what you can test very easy - they should not be displayed as normal (from left to right), but from top to bottom. That means they

should
have the same x-coordinates, but different y-coordinates.

I think I have to change the Viewfactory or the Editorkit... Please Help

I need this to display fractions and vectors (math.).


I'm not an expert in Java GUIs, however it sounds like JTextPane may not

be appropriate for what you want to do. I would suggest a more 'graphics'
oriented pane where you have the option of positioning text fonts at any
desired (x,y) location and not be forced into the line by line format that
JTextPane seems to be, at least by default, written for.

l8r, Mike N. Christoff

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Martin | last post by:
I am reading through Koenig and Moo's "Accelerated C++" and attempting the exercises. Are there any sample solutions somewhere? It's all very well me doing a solution, which seems to work, but for...
4
by: Bob Morvay | last post by:
I am interested in any .NET enabled portal solutions that are in the same class as the J2EE BEA Weblogic portal solution. Can anyone point me to articles comparing the available portal solutions...
3
by: Dmitry Shafranov | last post by:
Hi. Does anybody know a website with solutions to 3rd edition of Bjarne Stroustrup's *The C++ Programming Language*. I have already purchased David Vandevoorde's *C++ Solutions,* but unfortunately...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
11
by: Romram | last post by:
I was asked to submit atleast 5 solutions for the following problem: By Replacing/Adding or deleting only one character from the following code snippet, make it print tttttttttttttttttttt (20...
3
by: Jerad Rose | last post by:
This is regarding Visual Studio 2003 (framework 1.1). We have several projects/libraries. Of course, many of these reference each other. If we only had one solution, we would simply add all of...
5
by: Thirsty Traveler | last post by:
I would like to organize my development environment into a master solution containing solution folders with child solutions. That way, individual solutions can be built on a product by product...
0
by: aydeggy | last post by:
I am Ajibade Ayodeji by name and I am a Software Engineer working with an Electronic payment Solution development company based in Nigeria. I have developed several solutions on the Nurit Lipman...
12
by: coolcatjon | last post by:
Hey guys- I've decided to learn me some C, as any hacker must :) So I've got a C compiler handy, and I've downloaded the book by Kernergan and Richie that was recommended to me... One bad...
7
by: Cirene | last post by:
I am an asp.net developer and I respect all of your opinions in this newsgroup. Any opinions on how good Network Solutions is (support, hosting, speed, reliability, etc...)? Thanks!
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.