Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

JTable related questions

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

For flexibility reasons of my JTable displaying Room records I use an own model, column-model and cell-renderer.

I didn't figure out yet,

  • how to align the JLabel in the cells, being created by the cell-renderer
  • how to fit the column width to the width of its corresponding column title dynamically



  • Kind regards,
    Andy
     
    Sheriff
    Posts: 11604
    178
    Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Andy,

    That are a lot of questions

    I don't think anyone is capable to help you, unless some JTable/Swing expert is monitoring this forum. What you are trying to do is far beyond the scope of this assignment (and you'll be the only guy implementing all these fancy trimmings). I just used my own table model and that's it. So if you want your questions being answered: start a new topic with these questions in the Swing-forum

    Kind regards,
    Roel
     
    And then we all jump out and yell "surprise! we got you this tiny ad!"
    Devious Experiments for a Truly Passive Greenhouse!
    https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
      Bookmark Topic Watch Topic
    • New Topic