Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modify the allignment of a column in a JTable???

Status
Not open for further replies.

Murdock

Programmer
Jun 29, 2000
1
DE
Hi there ! Greatings from germany! I write a Java program with JBuilder 3 JDK 1.2. I 've created an JTable and have modified the Tablemodel to work with my DataStructure (Vector of Vectors) I can modify all things of this table, like Column Size, Headers, Fonts - but one thing i can't modify: the allignment of a column or a cell? In wich class can I do this? Where must I start to looking for? Is the Cell my target or the column. There is an automatically allignment, created by the return-class of the function - datatablemodel.getclass: Double and int will have right allignment, String will get left allignment. Now i have a cell with string, which should be displayed with center allignment and another, which should get right allignment. How can i do this. Im looking in the deep of all classes - but do'nt find the rigth methode. <br><br>Please help me! Thanks ! Heiko <br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top