diff --git a/src/main/java/org/mastodon/mamut/launcher/RecentProjectsPanel.java b/src/main/java/org/mastodon/mamut/launcher/RecentProjectsPanel.java index a5a1dad28..167cc9e1f 100644 --- a/src/main/java/org/mastodon/mamut/launcher/RecentProjectsPanel.java +++ b/src/main/java/org/mastodon/mamut/launcher/RecentProjectsPanel.java @@ -93,11 +93,11 @@ private void remakeGUI( final Consumer< String > projectOpener ) ta.setEditable( true ); ta.setLineWrap( true ); ta.addMouseListener( new MouseDblClickOpenPath( ta.getText() ) ); - listPanel.add( ta, "" ); + listPanel.add( ta ); final JButton btnOpen = new JButton( MastodonIcons.LOAD_ICON_SMALL ); btnOpen.addActionListener( l -> projectOpener.accept( ta.getText() ) ); // Recent projects will be updated in the launcher method. - add( btnOpen ); + listPanel.add( btnOpen ); final JButton btnClear = new JButton( MastodonIcons.REMOVE_ICON ); btnClear.addActionListener( l -> {