Idea has a console window that looks like it's implemented with JTabbedPane
Console window image:
Can change the size by hovering over it:
How do implement this UI effect in Swing?
JTabbedPane can have a similar effect, but cannot change the height with the mouse.


I solved my problem based on FlatLaf and put the code on GitHub.
https://github.com/Richard-Tang/FlatLafTabFrame
show
The key code is to change the height of the JPanel with setPreferredSize() and UpdateUI() as you drag.