Se corrige un error y se sube un ejecutable
This commit is contained in:
BIN
bin/main/Main.class
Normal file
BIN
bin/main/Main.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
9
src/main/Main.java
Normal file
9
src/main/Main.java
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
package main;
|
||||||
|
|
||||||
|
public class Main
|
||||||
|
{
|
||||||
|
public static void main(String[] args)
|
||||||
|
{
|
||||||
|
visual.Login login = new visual.Login();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -34,10 +34,14 @@ public class Archivo
|
|||||||
String os = System.getProperty("os.name");
|
String os = System.getProperty("os.name");
|
||||||
if (os.contains("Windows"))
|
if (os.contains("Windows"))
|
||||||
{
|
{
|
||||||
ruta = "C:\\P.A.M\\" + archivo;
|
ruta = "C:\\P.A.M\\";
|
||||||
|
new File(ruta).mkdir();
|
||||||
|
ruta+= archivo;
|
||||||
} else if (os.contains("Linux"))
|
} else if (os.contains("Linux"))
|
||||||
{
|
{
|
||||||
ruta = System.getProperty("user.home") + "/P.A.M/" + archivo;
|
ruta = System.getProperty("user.home") + "/P.A.M/";
|
||||||
|
new File(ruta).mkdir();
|
||||||
|
ruta += archivo;
|
||||||
}
|
}
|
||||||
return ruta;
|
return ruta;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -180,10 +180,6 @@ public class Login{
|
|||||||
private void bRegistrarActionPerformed(ActionEvent evt) {
|
private void bRegistrarActionPerformed(ActionEvent evt) {
|
||||||
Registro registro = new Registro();
|
Registro registro = new Registro();
|
||||||
frame.dispose();
|
frame.dispose();
|
||||||
}
|
}
|
||||||
public static void main(String args[]) {
|
|
||||||
|
|
||||||
Login ventana = new Login();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user