• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to remove the record number from GUI

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic