File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java ImageView get position and set alignment

 
Dmitriy Logov
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://docs.oracle.com/javase/6/docs/api/javax/swing/text/html/ImageView.html

JEditorPane contains within itself the ImageView. I can get the size and alignment:


I need to get the coordinates x/y (absolute or relative) and change the y alignment to 0.75. How can I do this?

http://javasourcecode.org/html/open-source/jdk/jdk-6u23/javax/swing/text/html/ImageView.java.html
lines 258-267 and 111
How i can change private float vAlign; value ?

http://tutorials.jenkov.com/java-reflection/private-fields-and-methods.html#methods


error: vAlign has private access in ImageView
Why is this not working?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic