Skip to content

Commit

Permalink
Update RecentProjectsPanel - fix wrong positions of open buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhahmann authored Nov 13, 2024
1 parent a206184 commit cdfb551
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> {
Expand Down

0 comments on commit cdfb551

Please sign in to comment.