Non-applet pixel to cm/inch conversion


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Non-applet pixel to cm/inch conversion

  1. #1
    Join Date
    Jul 2007
    Posts
    2

    Non-applet pixel to cm/inch conversion

    Hi,

    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
    Posts
    145
    Did you check all apis of imageviewer class?

  3. #3
    Join Date
    Jul 2007
    Posts
    2
    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, 03:02 PM
  2. JavaMail applet problem
    By Tataroz T. in forum Java
    Replies: 1
    Last Post: 10-20-2005, 07:19 AM
  3. Bouncing Ball Applet
    By nescafe in forum Java
    Replies: 1
    Last Post: 10-07-2005, 09:51 AM
  4. Replies: 3
    Last Post: 08-23-2001, 12:01 PM
  5. Replies: 0
    Last Post: 03-28-2000, 02: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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