Results 1 to 2 of 2
  1. #1
    cool is offline Member
    Join Date
    Nov 2010
    Posts
    20
    Rep Power
    0

    Default Display string as label

    Hi,
    I am reading a string from a file, and i want to display that string as a JLabel

    like i'll get a string from file as :

    myString = "[filename1, filename2, filename3]";

    i replaced end brackets with blank spaces,
    now i want filename1, filename2, filename3 as separate JLabels

    How can i do that???

    Sorry, may be its just a stupid question...
    But please help me finding solution for it,
    Sorry for my English.
    Thanks in advance....

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default

    Read the API for String, looking for any method that returns a String[]

    db

Similar Threads

  1. Display string inside <>
    By gokulcool in forum New To Java
    Replies: 5
    Last Post: 08-03-2010, 02:11 PM
  2. String Display problem
    By 123456 in forum New To Java
    Replies: 4
    Last Post: 06-15-2010, 01:15 PM
  3. How to display a String that contains more than one white spaces
    By thachun in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 09-27-2009, 09:16 AM
  4. Need to display the jsp variable(String) into html?
    By Arivudai Nambi in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 02-25-2009, 05:44 PM
  5. Cannot display a random string from .dat file
    By explosion242 in forum New To Java
    Replies: 2
    Last Post: 09-18-2008, 01:48 PM

Posting Permissions

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