Formatting Strings between C++ and Java!!!

Hi Ppl,

I am returning a string from native code in c++ in the form of:

IDName2Name3

0 ad

1 bc

When I print out the string , the formatting is preserved, but when placed in a dialog box(AWT), it displays it without the formatting 'table look'.

How do I preserve the 'table look' ?

[350 byte] By [ajaykashyap2476] at [2007-9-26 4:30:05]
# 1
For a quick fix, you can replace the spaces with tabs.String s = data.replace(' ', '\t');
tjwojo at 2007-6-29 17:42:12 > top of Java-index,Archived Forums,Java Programming...