wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Java ImageView get position and set alignment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java ImageView get position and set alignment" Watch "Java ImageView get position and set alignment" New topic
Author

Java ImageView get position and set alignment

Dmitriy Logov
Greenhorn

Joined: Feb 05, 2012
Posts: 4
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java ImageView get position and set alignment
 
Similar Threads
JavaFx 1.3, image does not load well in imageView
Adjust alignment of button in gridlayout?
Byte[] to image
Decimal digits
more than time line