This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

public String[] getColumnName()  RSS feed

 
lucy hu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, all,
I put a getColumnName() method in the server like this:

and then have this method in the client too, which implements AbstractTableModel, like this:

but the table I got only has data in it, the tableheader is missing, I am using Swing 1.0.2, I don't know why, can anybody help me?
I feel so upset, there is too many things to consider for this assignment,
Regards
Lucy

[This message has been edited by lucy hu (edited January 14, 2001).]
 
Paul Smiley
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May I ask why you are using Swing 1.02? I thought Java 2 comes with 1.1.1. Are you taking the 1.1 test?
I believe that you must explicitly create the table header.
 
lucy hu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for that mistake, yes, I AM using Swing 1.1.1,
and the table header should automatically be created here.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!