• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to remove the record number from GUI

 
Murali Kurukunda
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right now I am displaying the record number to the user. I want to try to and hide it. how do I do it?
I tried removeColumn() API on the JTable, but I am using the recordNumber in the booking operation. So I am getting NumberFormatExceptions since in my code I am looking to parse the Contractor Name as opposed record Number field.

Also how do I format the data inside a column , say I want to position the size of the organization in the center inside a column rather than left aligned?

Murali
 
dennis du
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am displaying the recNo in the UI too. Why should you hide it?

If you want to set a right aligned the recNo,you can use the render feature for it.
 
Murali Kurukunda
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason I want to try hiding the Record Number is I am trying to format the columns and having some extra space will make it look good. Though the record numbers are required for the App they do not server any purpose to the user, since the record numbers can change.

I guess I can just display the record numbers, but wanted to know how to hide a column.
 
dennis du
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will your record number be changed?

For me,no. the record number is just come from data file.

So I think it is not a problem whether you show it or not.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic