From d98125d441cca21cc5757340ba293555a53d53ce Mon Sep 17 00:00:00 2001 From: creme332 <65414576+creme332@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:35:11 +0400 Subject: [PATCH] remove unused imports --- src/main/java/com/github/creme332/view/MenuBar.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/github/creme332/view/MenuBar.java b/src/main/java/com/github/creme332/view/MenuBar.java index 430182d7..2061571e 100644 --- a/src/main/java/com/github/creme332/view/MenuBar.java +++ b/src/main/java/com/github/creme332/view/MenuBar.java @@ -19,9 +19,6 @@ import com.github.creme332.model.MenuItemModel; import com.github.creme332.model.MenuModel; -import com.github.creme332.utils.IconLoader; -import com.github.creme332.utils.exception.InvalidIconSizeException; -import com.github.creme332.utils.exception.InvalidPathException; import org.kordamp.ikonli.bootstrapicons.BootstrapIcons; @@ -31,12 +28,12 @@ public class MenuBar extends JMenuBar { private List jmenus = new ArrayList<>(); - public MenuBar(MenuModel[] menus) throws InvalidIconSizeException, InvalidPathException { + public MenuBar(MenuModel[] menus) { setPreferredSize(new Dimension(getWidth(), 70)); setBorder(new EmptyBorder(new Insets(7, 0, 7, 0))); setBackground(new Color(248, 248, 248)); - + // add menus to menubar for (MenuModel menuModel : menus) { JMenu menu = new RoundedMenu();