]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/MigrationTools/org/tianocore/migration/FirstPanel.java
modify ui title
[mirror_edk2.git] / Tools / Source / MigrationTools / org / tianocore / migration / FirstPanel.java
index 83cf9b60d2d56b9dd82645b709e781d01ffe89b4..7241c1b331afd2644bdfe151da0ef0221570e422 100644 (file)
@@ -158,7 +158,8 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList
 \r
        //---------------------------------------------------------------------------------------//\r
 \r
-       public String getFilepath() {\r
+       public String getFilepath(String title) {\r
+               fc.setDialogTitle(title);\r
                if (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\r
                        log.append(fc.getSelectedFile().getAbsolutePath() + "\n");\r
                        return fc.getSelectedFile().getAbsolutePath();\r
@@ -170,7 +171,8 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList
 \r
     public void actionPerformed(ActionEvent e) {\r
         if ( e.getSource() == moduleButton ) {\r
-               modulepath = getFilepath();\r
+               modulepath = getFilepath("Please choose a starting path");\r
+               moduletext.setText(modulepath);\r
         }\r
         if ( e.getSource() == goButton ) {\r
                try {\r