Results 1 to 2 of 2

Thread: Tab Characters Not Functioning In ListBox

  1. #1

    Thread Starter
    Addicted Member MethadoneBoy's Avatar
    Join Date
    Oct 2001
    Location
    Preferably somewhere between Keira Knightley and Diane Kruger but I'm not fussy
    Posts
    180

    Tab Characters Not Functioning In ListBox

    Hi all,

    I'm attempting to add a String to a listbox object on my GUI but for some reason the "\t" character will not appear in the list. So for example the following code -

    Code:
    String a = "HELLO" + "\t" + "\t";
    String b = a + "WORLD";
    LstDisplay.add(b);
    will produce an output like -

    HELLOWORLD

    on the listbox. Has anyone run into this before? Is there a way around this?

    Thanks
    "'Oh, hello Mr. Crick! What do you think of Jeffrey Archer?' Clip-clip-clip! Oh, come on! Who are you kidding? You wait til I'm mayor, you'll see how tough I am! Christ almighty...."

  2. #2
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    Re: Tab Characters Not Functioning In ListBox

    Is it perhaps the listbox doesn't support tabs?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width