TabbedPane: Changed name in demo and added separator repaint on focus gained.

This commit is contained in:
DUDSS
2021-06-20 02:56:19 +02:00
parent 04bb6a5275
commit ad0a13004e
2 changed files with 4 additions and 2 deletions

View File

@@ -489,7 +489,9 @@ public class FlatTabbedPaneUI
contentBorderFocusListener = new FocusListener()
{
@Override
public void focusGained( FocusEvent e ) {}
public void focusGained( FocusEvent e ) {
repaintContentBorder();
}
@Override
public void focusLost( FocusEvent e ) {

View File

@@ -983,7 +983,7 @@ class TabsPanel
panel4.add(showTabSeparatorsCheckBox, "cell 2 1");
//---- activeTabBorderCheckBox ----
activeTabBorderCheckBox.setText("Active tab border");
activeTabBorderCheckBox.setText("Paint border around active tab");
activeTabBorderCheckBox.setName("activeTabBorderCheckBox");
activeTabBorderCheckBox.addActionListener(e -> activeTabBorderChanged());
panel4.add(activeTabBorderCheckBox, "cell 3 1");