Results 1 to 4 of 4
  1. #1
    baig-sh is offline Member
    Join Date
    Nov 2011
    Posts
    35
    Rep Power
    0

    Post New Line in JAVA!

    Hi all,

    i am very glad here i got great help here with me previous thread.

    here is new prob i m facing I want show label in 2 lines like

    Always stay update
    with us.
    lab1 = new Jlabel("Always stay update with us.");
    "/n not working.

    how can i show it in 2 lines?

  2. #2
    Shoss's Avatar
    Shoss is offline Member
    Join Date
    Feb 2011
    Posts
    94
    Rep Power
    0

    Default Re: New Line in JAVA!

    Take a look here. You should be able to use html tags in your label achieve what you want.

  3. #3
    baig-sh is offline Member
    Join Date
    Nov 2011
    Posts
    35
    Rep Power
    0

    Default Re: New Line in JAVA!

    You should be able to use html tags in your label achieve what you want.
    WooooooooooooooooW Thanks man what a magic
    Thanks a Lot Shoss !!!!!

  4. #4
    jiffi is offline Member
    Join Date
    Oct 2011
    Posts
    79
    Rep Power
    0

    Default Re: New Line in JAVA!

    Quote Originally Posted by baig-sh View Post
    Hi all,



    "/n not working.

    how can i show it in 2 lines?
    That's because it's suppose to be \n not /n

Similar Threads

  1. Replies: 16
    Last Post: 09-17-2011, 03:41 AM
  2. Java- Writing a file and reading a file line by line
    By Nazneen Ali in forum New To Java
    Replies: 7
    Last Post: 07-20-2011, 08:56 AM
  3. tracing java application line by line using netbeans
    By chandrasekhar123 in forum NetBeans
    Replies: 1
    Last Post: 08-03-2010, 03:46 PM
  4. Replies: 2
    Last Post: 07-02-2010, 03:20 PM
  5. Replies: 4
    Last Post: 09-10-2009, 11:18 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
  •