[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Missing post? - see this post about spam for more information.
Messages posted by: roy_mathews
Forum Index » Profile for roy_mathews » Messages posted by roy_mathews
Author Message
Hi all,

I have a JEditorPane in a JScrollPane and i am trying to scale the JEditorPane in the JScrollPane. I do not want to rescale the JScrollPane.

Basically this is what i did. I extended the JEditorPane and overrided it paintComponent method. In that method i used the Graphics2D scale method. What happens is that is seems that the JScrollPane goes completely bonkers after the scaling.

I would really appreciate any input from anyone on how to scale a JTextComponent.

The thing is that my JEditorPane is paginated and i am trying to do some scaling based on stanisalv' s paginated code.

Here is the link for the pagination

http://forum.java.sun.com/thread.jspa?forumID=57&threadID=428964

On the above link i think someone tried to combine the code on page 2
but could not get it to work.

This is the original scaling code by stanislav

http://www.developer.com/java/other/article.php/3315511

What i am trying to do is to combine both the paginated code and scaling code of stanislav together but could not get it to work.

Maybe someone could add some input on this topic as this is really driving me nuts.

ps. I have crossposted this question at sun, devshed and in hotjoe
Anyways are the links to the original question. I put the link here so you guys don't have to duplicate any answers that have already been given to me

Java Swing Forum

http://forum.java.sun.com/thread.jspa?threadID=673336

Java Programming Forum

http://forum.java.sun.com/thread.jspa?threadID=674497&messageID=3943246#3943246

devshed

http://forums.devshed.com/t299263/s.html

roy
 
Forum Index » Profile for roy_mathews » Messages posted by roy_mathews
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2012 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle