I am trying to change the shape of the tabs in a JTabbedPane
. Using setTabComponentAt(0, someComponent);
doesn't change the exterior of the tab, which is a rectangle with a diagonal top-left corner. What may be done to change the shape?
You can put html tags into the first parameter of addTab method as following :
MyJTabbedPane.addTab("<html><h1 style='padding:20px;'>TEST</h1></html>", new JPanel());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With