1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-11 16:34:04 +02:00

Add the footer question

This commit is contained in:
MetaPrime
2025-04-17 18:02:26 -07:00
parent a3d679cf3b
commit dfbf7784e5

View File

@@ -1156,7 +1156,6 @@ public final class MainWindow implements Runnable, RipStatusHandler {
aboutContent.append("- ").append(ripper).append("\n"); aboutContent.append("- ").append(ripper).append("\n");
} }
aboutContent.append("\nDo you want to visit the project homepage on Github?");
aboutTextArea.setText(aboutContent.toString()); aboutTextArea.setText(aboutContent.toString());
// Ensure the scroll pane starts at the top // Ensure the scroll pane starts at the top
@@ -1168,6 +1167,9 @@ public final class MainWindow implements Runnable, RipStatusHandler {
aboutPanel.add(titleLabel, BorderLayout.NORTH); aboutPanel.add(titleLabel, BorderLayout.NORTH);
aboutPanel.add(scrollPane, BorderLayout.CENTER); aboutPanel.add(scrollPane, BorderLayout.CENTER);
JLabel footerLabel = new JLabel("Do you want to visit the project homepage on Github?", JLabel.CENTER);
aboutPanel.add(footerLabel, BorderLayout.SOUTH);
int response = JOptionPane.showConfirmDialog(null, aboutPanel, mainFrame.getTitle(), int response = JOptionPane.showConfirmDialog(null, aboutPanel, mainFrame.getTitle(),
JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE, new ImageIcon(mainIcon)); JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE, new ImageIcon(mainIcon));
if (response == JOptionPane.YES_OPTION) { if (response == JOptionPane.YES_OPTION) {