SDK:
- avoid backslashes in Codeless Project wizard git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9478 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
b7b06266ed
commit
49f6e62048
@ -1,4 +1,4 @@
|
||||
<?xml version="1.1" encoding="UTF-8" ?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
|
||||
<AuxValues>
|
||||
@ -21,9 +21,9 @@
|
||||
<Group type="103" groupAlignment="1" attributes="0">
|
||||
<Component id="jPanel1" alignment="0" max="32767" attributes="0"/>
|
||||
<Component id="jLabel3" alignment="0" min="-2" pref="447" max="-2" attributes="0"/>
|
||||
<Component id="jToolBar1" alignment="0" pref="447" max="32767" attributes="0"/>
|
||||
<Component id="jToolBar1" alignment="0" max="32767" attributes="0"/>
|
||||
<Component id="jLabel4" alignment="0" min="-2" pref="300" max="-2" attributes="0"/>
|
||||
<Component id="jToolBar2" alignment="1" pref="447" max="32767" attributes="0"/>
|
||||
<Component id="jToolBar2" alignment="1" max="32767" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
</Group>
|
||||
@ -70,7 +70,7 @@
|
||||
<Component id="jLabel5" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="jLabel8" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace pref="22" max="32767" attributes="0"/>
|
||||
<EmptySpace max="32767" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
|
@ -235,13 +235,13 @@ public final class CodelessProjectWizardVisualPanel1 extends JPanel {
|
||||
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
|
||||
File path=new File(jTextField1.getText());
|
||||
if(path.isDirectory()){
|
||||
FileChooserBuilder builder = new FileChooserBuilder(path.getAbsolutePath());
|
||||
FileChooserBuilder builder = new FileChooserBuilder(path.getAbsolutePath().replaceAll("\\","/"));
|
||||
builder.setDirectoriesOnly(true);
|
||||
builder.setTitle("Select Assets Folder");
|
||||
File file = builder.showOpenDialog();
|
||||
if (file != null) {
|
||||
try {
|
||||
jTextField2.setText(file.getAbsolutePath().substring(path.getAbsolutePath().length(), file.getAbsolutePath().length()));
|
||||
jTextField2.setText(file.getAbsolutePath().substring(path.getAbsolutePath().length(), file.getAbsolutePath().length()).replaceAll("\\","/"));
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user