• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java ImageView get position and set alignment

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic