|
|
|
|
@ -32,6 +32,8 @@ public class Main implements Connector
|
|
|
|
|
private static final String dbase = "siprp";
|
|
|
|
|
private SIPRPTracker siprpTracker;
|
|
|
|
|
|
|
|
|
|
private static AvisosPanel avisos = null;
|
|
|
|
|
|
|
|
|
|
public static void main( String args[] )
|
|
|
|
|
throws Exception
|
|
|
|
|
{
|
|
|
|
|
@ -67,10 +69,11 @@ public class Main implements Connector
|
|
|
|
|
new Main().getClass().getClassLoader().getResource( "logo/logo_w400.png" )
|
|
|
|
|
).getImage() );*/
|
|
|
|
|
// window.show();
|
|
|
|
|
avisos = new AvisosPanel();
|
|
|
|
|
LoginWindow loginWindow = new LoginWindow( new Main(), "logo"+File.separator + "logo_w400.jpg",
|
|
|
|
|
new String[] { "SIPRPSoft" },
|
|
|
|
|
new String[] { "Vers\u00E3o 1.1", "(EVOLUTE 2004)" }, "",
|
|
|
|
|
"root", "UNIXLuvsU", new AvisosPanel( new Aviso[ 0 ], new Aviso[ 0 ], new Aviso[ 0 ] ) );
|
|
|
|
|
"root", "UNIXLuvsU", avisos );
|
|
|
|
|
loginWindow.setTitle( "SIPRPSoft" );
|
|
|
|
|
loginWindow.show();
|
|
|
|
|
|
|
|
|
|
@ -99,6 +102,8 @@ public class Main implements Connector
|
|
|
|
|
Properties props = new Properties();
|
|
|
|
|
props.load( classLoader.getResourceAsStream( "speedo.properties" ) );
|
|
|
|
|
PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory( props );
|
|
|
|
|
// Collection c = pmf.supportedOptions();
|
|
|
|
|
// System.out.println( "Options: " + c );
|
|
|
|
|
Singleton.setInstance( Singleton.DEFAULT_PERSISTENCE_MANAGER_FACTORY, pmf );
|
|
|
|
|
PersistenceManager pm = pmf.getPersistenceManager();
|
|
|
|
|
Singleton.setInstance( SingletonConstants.PERSISTENCE_MANAGER, pm );
|
|
|
|
|
@ -174,6 +179,7 @@ public class Main implements Connector
|
|
|
|
|
|
|
|
|
|
//Singleton.setInstance( Singleton.USERNAME, user );
|
|
|
|
|
siprpTracker = new SIPRPTracker();
|
|
|
|
|
avisos.refresh();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|