Special characters: how to read them into JTable?  
Author Message
maria





PostPosted: 2003-10-18 0:33:00 Top

java-programmer, Special characters: how to read them into JTable? Hello everybody,

I would like to read String data from a file into a JTable (using Vectors).
These data contain special characters,
mainly Greek symbols. Ideally, I would also like to display subscripts as
well, if possible.

Does anybody knows how this can be done?

Thanks in advance,

Maria




 
james d.





PostPosted: 2003-10-20 7:32:00 Top

java-programmer >> Special characters: how to read them into JTable? See "Concepts: Cell Editors and Renderers"

http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

Also, consider writing your own TableModel to handle the data for your
table. Unfortunately, customizing tables isn't the easiest thing to do in
Swing.


"maria" <email***@***.com> wrote in message
news:uRUjb.320$email***@***.com...
> Hello everybody,
>
> I would like to read String data from a file into a JTable (using
Vectors).
> These data contain special characters,
> mainly Greek symbols. Ideally, I would also like to display subscripts as
> well, if possible.
>
> Does anybody knows how this can be done?
>
> Thanks in advance,
>
> Maria
>
>
>
>


 
hilizbabe





PostPosted: 2003-10-22 5:46:00 Top

java-programmer >> Special characters: how to read them into JTable? When you use JTable, you have to write all the code for loading the
file into JTable. Have a look at
QuickTable(http://dbtable.hypermart.net), a free JTable grid control,
which is built on top of JTable. With two lines of code you can load
the file into Quicktable. Make sure this file is created in unicode
text. read the api documentation of QuickTable for setDBTableLocale()
method.

Good Luck,
Liz

"maria" <email***@***.com> wrote in message news:<uRUjb.320$email***@***.com>...
> Hello everybody,
>
> I would like to read String data from a file into a JTable (using Vectors).
> These data contain special characters,
> mainly Greek symbols. Ideally, I would also like to display subscripts as
> well, if possible.
>
> Does anybody knows how this can be done?
>
> Thanks in advance,
>
> Maria