user4853107
user4853107

Reputation:

Table columns aren't appearing

Simple as the title says. They just won't appear. I don't know why. BTW, The table is added on a panel that has setLayout(null); So, I don't know if that affects it. I just really don't know where the problem is coming from. I'm completely clueless.

DELETED

Upvotes: 0

Views: 31

Answers (1)

MadProgrammer
MadProgrammer

Reputation: 347334

Change DisplayTab.add(table); to DisplayTab.add(scrollPane); and make use of appropriate layouts

Avoid using null layouts, pixel perfect layouts are an illusion within modern ui design. There are too many factors which affect the individual size of components, none of which you can control. Swing was designed to work with layout managers at the core, discarding these will lead to no end of issues and problems that you will spend more and more time trying to rectify

Upvotes: 1

Related Questions