Fixed Design bug in OACTabbedPane and functionality in OACTitleBar

This commit is contained in:
Tinglyyy
2026-02-08 12:14:58 +01:00
parent 178ec93e95
commit 3b11449cb1
4 changed files with 28 additions and 5 deletions

View File

@@ -69,11 +69,10 @@ public class OACTitleBar extends OACPanel {
* Adds a new tab.
*
* @param title tab title
* @param panel tab body
*/
public void addTab(String title) {
OACPanel placeholder = new OACPanel();
placeholder.setOpaque(false);
tabs.addTab(title, placeholder);
public void addTab(String title, OACPanel panel) {
tabs.addTab(title, panel);
}
private OACTabbedPane createTabs() {