Home > Default > How to do the multiple-line String at JList?

How to do the multiple-line String at JList?

October 11Hits:0
Advertisement
hey everyone,
i want to create a JList have to display multiple-line string.
i have use String a="text1"+"\n"+"text2" inside my JList...
the "\n" change to a sequare box...
how cum like that.................??
i need ur kindly helping...

Answers

Because the default renderer for a JList element is a
JLabel, and that is how JLabel behaves. The question
"how to do a multiple-line JLabel" has been asked
hundreds of times in this forum, search for that.i have search for it already but i no get it..anything!
so, can u give me the url for me? thank you!

Read other 4 answers

Tags:

Related Articles

  • How to do the multiple-line String at JList? help!October 11

    i need some code to multiple-line String at JList. i know that it is can be done by html code. example: <p>line1</p><p>line2</p> but if i use that html code... i face another problem to my JList.. it cannot set the font use the Lis

  • How to do the multiple-line String at JList?October 11

    hey everyone, i want to create a JList have to display multiple-line string. i have use String a="text1"+"\n"+"text2" inside my JList... the "\n" change to a sequare box... how cum like that.................?? i nee

  • How to Capture Multiple Line String using Regular Expression?November 30

    Hi,  I have a simple program like this: What I want to accomplish is to capture everything between >>start and >>end using a single Match Regular Expression node. It seems that setting multiple? to True or False does not help. I am using LabVI

  • String Array declaration with multiple linesOctober 11

    I have an array declaration with several indexes where it covers multiple lines. Please advise if this is the best way to declare an array declaration with multiple lines: String cityString = "San Diego, Oakland, London, New York, Dublin," + &qu

  • String with multiple linesOctober 11

    hi i have a string with multiple lines inside it eg. hello this is my string with mutiple lines inside it how could i get it to print out line by line iv used "\n" so it detects the new lines but it doesnt seem to work this is my following code

  • How to wrap the too big string name in multiple lineNovember 30

    Hi All, String s="Diwali_Photos_For_Testing_Purpose_Test" How to wrap this string into multiple lines in jsp. by setting the width of the outputText component, it is not wrapping into multiple lines. If the String s="Deputy chief executive

  • Extract/Scan for numbers from multiple lines of stringsNovember 30

    Hi All, I would like to extract numbers (the data) obtained from a serial acquisition which will be shown in multiple line of strings: $#pressure 20 [email protected] 100 #voltage 1.2 I want to extract 20,100 and 1.2 so that I can do further data manipul

  • Crystal report -How to display multiple lines in line chart?October 11

    Hi, M struggling to display multiple lines in line chart. All the values m fetching it from database into data table in below format & data type Category(String).....year(Int).....graph_values(Int).....table_value(String) Test........................

  • How to display multiple lines in a text box defined in  steploop.October 11

    Hi, I have a requirement to display data ( which is dynamic in nature. I determine data type,length etc dynamically) in a table format. I am using step loop for the same. I am facing a problem. Some field can be as long as 256 char long. Is there  an

  • How to create a view to display Multiple lines of Text using ABAP WebDynproOctober 11

    Hi, I need to create a static view page in ABAP WebDynpro that displays Static text data in multiple paragraphs. I tried to use textview, formatted text, text edit controls by binding the textcontrol to a text object that is created in so10, but the

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.605 s.