Re: Swing component to display String[]
On Sun, 16 Oct 2005 16:47:30 GMT, "Steve" <steve@xxxxxxxxx> wrote or
quoted :
>Is there any built-in Java GUI components that will display the contents of
>a String array? I'm simply looking to display a vertical list, I'm not
>looking for any user interaction with this list.
A JTable is the usual solution. You could use an array of JLabels in
a JScrollPane. You could use a JTextArea with one String per line.
If you want to play games with fonts and colours, you could use a
Canvas/JPanel and drawString
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.
Relevant Pages
- Re: Swing component to display String[]
... > Is there any built-in Java GUI components that will display the contents ... > a String array? ... I'm simply looking to display a vertical list, ... > looking for any user interaction with this list. ... (comp.lang.java.programmer) - Swing component to display String[]
... Is there any built-in Java GUI components that will display the contents of ... I'm simply looking to display a vertical list, ... (comp.lang.java.programmer) - Re: Need Help deleting record from text file
... On a second run you should be able to load 10870 filenames from the folder into a VB String array in less than a quarter of a second on most modern machines, so if that part of your existing code takes much longer than that amount of time then there is definitelty room for further improvement. ... Just inserting the file names from your String array into a VB ListBox for display purposes can take a couple of seconds, and if you need to display such a list so that the user can scroll throught it there are very much faster methods than a standard ListBox. ... (microsoft.public.vb.general.discussion) - Re: working LDAP query, well almost.. 800A000D
... it as an string array with one value, or a Null if there is no value ... MVP Directory Services ... The following script should get 2 properties form the Administrator ... It does display the sAMAccountName but throws an error when it tries to ... (microsoft.public.scripting.vbscript) - RE: max table columns in Repeater control
... Based on my understanding, you want to display a string array every 5 items ... Instead of using Repeater control, I think DataList may be more suitable ... (microsoft.public.dotnet.framework.aspnet) |
|