- make codeless project wizard normalize input paths

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10283 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 817d6d9982
commit 02e2e66873
  1. 3
      sdk/jme3-core/src/com/jme3/gde/core/codeless/CodelessProjectWizardVisualPanel1.java

@ -35,6 +35,7 @@ import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.JPanel;
import org.openide.filesystems.FileChooserBuilder;
import org.openide.filesystems.FileUtil;
public final class CodelessProjectWizardVisualPanel1 extends JPanel {
@ -223,6 +224,7 @@ public final class CodelessProjectWizardVisualPanel1 extends JPanel {
builder.setTitle("Select Project Folder");
File file = builder.showOpenDialog();
if (file != null) {
file = FileUtil.normalizeFile(file);
jTextField1.setText(file.getAbsolutePath() + File.separator);
panel.fireChangeEvent();
}
@ -238,6 +240,7 @@ public final class CodelessProjectWizardVisualPanel1 extends JPanel {
builder.setTitle("Select Assets Folder");
File file = builder.showOpenDialog();
if (file != null) {
file = FileUtil.normalizeFile(file);
try {
jTextField2.setText(file.getAbsolutePath().substring(pathName.length(), file.getAbsolutePath().length()));
panel.fireChangeEvent();

Loading…
Cancel
Save