I did a pretty decent search, and I can't say what I'm looking for. basically I want JTable in JPanel, and for this, JPanel has to resize the JTable size itself. I know that the usual way to implement JTable is to use JScrollpane, but in this case it is not needed and it makes my program look ... dirty.
the reason why I can not find the answer that I need, every time someone asks about JTable in JPanel, someone gives them an answer to enter it in scrollpane. im aware of the benefits of using scrollpane, but in this case they are not profitable.
source share