From 3310bbef3d5c3cdd9fa47d7c4cf0ca0cb6d281d5 Mon Sep 17 00:00:00 2001 From: rephormat Date: Tue, 20 Dec 2016 21:46:42 -0600 Subject: [PATCH] Closes 4pr0n/ripme#372 --- .../java/com/rarchives/ripme/ui/MainWindow.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index 049160d2..3a37f621 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -3,6 +3,7 @@ package com.rarchives.ripme.ui; import java.awt.CheckboxMenuItem; import java.awt.Color; import java.awt.Container; +import java.awt.Cursor; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Font; @@ -478,6 +479,8 @@ public class MainWindow implements Runnable, RipStatusHandler { try { String workingDir = (Utils.shortenPath(Utils.getWorkingDirectory())); configSaveDirLabel.setText(workingDir); + configSaveDirLabel.setForeground(Color.BLUE); + configSaveDirLabel.setCursor(new Cursor(Cursor.HAND_CURSOR)); } catch (Exception e) { } configSaveDirLabel.setToolTipText(configSaveDirLabel.getText()); configSaveDirLabel.setHorizontalAlignment(JLabel.RIGHT); @@ -693,7 +696,16 @@ public class MainWindow implements Runnable, RipStatusHandler { setLogLevel(level); } }); - + configSaveDirLabel.addMouseListener(new MouseAdapter() { + @Override + public void mouseClicked(MouseEvent e) { + File file = new File(Utils.getWorkingDirectory().toString()); + Desktop desktop = Desktop.getDesktop(); + try { + desktop.open(file); + } catch (Exception e1) { } + } + }); configSaveDirButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) {