Skip to content

Commit

Permalink
remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed Jun 25, 2024
1 parent 6e608ad commit d98125d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/com/github/creme332/view/MenuBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -31,12 +28,12 @@ public class MenuBar extends JMenuBar {

private List<JMenu> 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();
Expand Down

0 comments on commit d98125d

Please sign in to comment.