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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • 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,
    Posts: 11604
    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,
    And then we all jump out and yell "surprise! we got you this tiny ad!"
    Devious Experiments for a Truly Passive Greenhouse!
      Bookmark Topic Watch Topic
    • New Topic