Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java ImageView get position and set alignment

 
Dmitriy Logov
Greenhorn
Posts: 4
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic