Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Markup Language question  RSS feed

 
jared jorgenson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to render a JTable but it is not displaying correctly.
My code is
<TABLE NAME="Asset" ORIENTATION="South">
<TR>
<TD TEXT="CVO23-9"/><TD TEXT="Chase"/>
<TD TEXT="CVO16-2"/><TD TEXT="Providian"/>
<TD TEXT="CGO23-3"/><TD TEXT="Transamerica"/>
<TD TEXT="CTO23-8"/><TD TEXT="Ford"/>
</TR>
</TABLE>
What am I doing wrong?
[ September 05, 2002: Message edited by: jared ]
[ September 05, 2002: Message edited by: jared ]
[ September 05, 2002: Message edited by: jared ]
 
Ezequiel Cuellar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must add the column names before the text nodes. The syntax for the table is:
<TABLE NAME="TestTable" ORIENTATION="Center">
<TC TEXT="Column A"/>
<TR><TD TEXT="A"/></TR>
</TABLE>
Specific error descriptions are provided in the java console.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"jared" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Thanks! and welcome to the JavaRanch!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!