DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007

    Non-applet pixel to cm/inch conversion


    I'm stuck with my java web application where I need to determine the number of character and line of text which can be fitted into a specific size of text area. For example, in a text area of 2inch * 8 inch, how many character of Arial font 12 can be fitted per row? And how many row can the text area fit? To make the situation more complicated, the requirement also allow each line to have different font type and also different font size.

    I know Java AWT can convert pixel to cm/inch, but I don't want an applet in my web application as applet will take times to load. Any Java developer out there can help me out?

  2. #2
    Join Date
    Jan 2007
    Did you check all apis of imageviewer class?

  3. #3
    Join Date
    Jul 2007
    I've gone thru the APIs but couldn't really find what I need. Maybe I miss it out or something. I'll go thru it again but do you happen to know which class actually provide this? If yes, can you kindly throw in some lights? Thanks in advance

Similar Threads

  1. applet problem:(
    By wojtek in forum Java
    Replies: 1
    Last Post: 03-26-2006, 02:02 PM
  2. JavaMail applet problem
    By Tataroz T. in forum Java
    Replies: 1
    Last Post: 10-20-2005, 06:19 AM
  3. Bouncing Ball Applet
    By nescafe in forum Java
    Replies: 1
    Last Post: 10-07-2005, 08:51 AM
  4. Replies: 3
    Last Post: 08-23-2001, 11:01 AM
  5. Replies: 0
    Last Post: 03-28-2000, 01:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.