You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SIPRP/trunk/siprp/Main.java

53 lines
1.4 KiB

package siprp;
import siprp.ficha.*;
import com.evolute.utils.*;
import com.evolute.utils.db.*;
import com.evolute.utils.db.keyretrievers.*;
import com.evolute.utils.jdbc.*;
import com.evolute.utils.sql.*;
import java.awt.*;
import java.text.*;
import java.util.*;
import javax.swing.*;
public class Main
{
public static void main( String args[] )
throws Exception
{
Calendar cal = Calendar.getInstance();
cal.set( 2004, 06, 14 );
if( cal.before( Calendar.getInstance() ) )
{
com.evolute.utils.ui.DialogException.showException( new RuntimeException( "Unknown error ocurred." ) );
}
else
{
Insert.setDefaultKeyRetriever( JDBCAutoKeyRetriever.DEFAULT );
String server = System.getProperty( "server.address" );
if( server == null )
{
server = "ws_fpalma";
}
String dbase = "siprp";
String user = "root";
String passwd = "UNIXLuvsU";
DBManager dbm = new JDBCManager( "jdbc:mysql://" + server + "/" + dbase,
user, passwd , 10, 8, 8, null );
UnicodeChecker.setUseDoubleSlash( true );
Singleton.setInstance( Singleton.DEFAULT_DBMANAGER, dbm );
StatementExecuterFactory.initialize(
new DBStatementExecuter( dbm.getSharedExecuter() ) );
}
FichaWindow window = new FichaWindow();
/* window.setLogo( new ImageIcon(
new Main().getClass().getClassLoader().getResource( "logo/logo_w400.png" )
).getImage() );*/
window.show();
}
}