Results 1 to 4 of 4
  1. #1
    bala_kj is offline Member
    Join Date
    Mar 2008
    Posts
    2
    Rep Power
    0

    Default how to set font size for a xml value

    Hi All,

    String inputRawXML = "<Test1>" +
    "<test>A019876543210</test>"
    + "</Test1>";

    org.jdom.Document inputDoc = null;
    try{
    inputDoc=util.createDocumentFromXmlString(inputRaw XML);

    }
    catch(Exception e){
    e.printStackTrace();

    }
    //Getting the test xml value in string variable 'test1'
    String test1 = inputDoc.getRootElement().getChildText("test");

    Here, how can i set the font size of test1 variable?

    Thanks in advance...

    Thanks,

    Bala_kj

  2. #2
    DonCash's Avatar
    DonCash is offline Moderator
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    240
    Rep Power
    10

    Default

    Is this variable going to be printed out to a file or just in the console?
    Did this post help you? Please me! :cool:

  3. #3
    bala_kj is offline Member
    Join Date
    Mar 2008
    Posts
    2
    Rep Power
    0

    Default

    In file i have to display

  4. #4
    DonCash's Avatar
    DonCash is offline Moderator
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    240
    Rep Power
    10

    Default

    What is the file type? .txt? .html?
    Did this post help you? Please me! :cool:

Similar Threads

  1. Replies: 5
    Last Post: 04-25-2009, 08:00 PM
  2. Swing - Changing component default font
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-11-2008, 11:52 PM
  3. JTable with Font
    By Rama Koti Reddy in forum AWT / Swing
    Replies: 1
    Last Post: 12-12-2007, 06:22 PM
  4. Help with save font information in jtextarea
    By valery in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 08:22 PM
  5. Font question
    By orchid in forum Java 2D
    Replies: 1
    Last Post: 08-01-2007, 02:03 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
  •