From cdfb551d9ef8f3df3732c277e6aa438d018b125c Mon Sep 17 00:00:00 2001 From: Stefan Hahmann Date: Wed, 13 Nov 2024 17:28:06 +0100 Subject: [PATCH] Update RecentProjectsPanel - fix wrong positions of open buttons --- .../java/org/mastodon/mamut/launcher/RecentProjectsPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -> {