This commit is contained in:
AnonymousUser
2021-10-22 21:58:45 +08:00
parent b16cbf5b60
commit 59cd0a88b9
15 changed files with 355 additions and 377 deletions

View File

@@ -60,10 +60,8 @@ public class JTabbedPaneCloseButton extends JTabbedPane {
/* Button */
public class CloseButtonTab extends JPanel {
private Component tab;
public CloseButtonTab(final Component tab, String title, Icon icon) {
this.tab = tab;
setOpaque(false);
FlowLayout flowLayout = new FlowLayout(FlowLayout.CENTER, 3, 3);
setLayout(flowLayout);
@@ -79,7 +77,7 @@ public class JTabbedPaneCloseButton extends JTabbedPane {
/* ClickListener */
public class CloseListener implements MouseListener
{
private Component tab;
private final Component tab;
public CloseListener(Component tab){
this.tab=tab;