Hi Friends,
Code of my project is in Swing.
I want a default value in combobox which is retreiving data from DB.How can I do that?
Below in the sample code from in proj.

dataLastOne.setName( "dataLastOne" );
add( dataLastOne );
dataLastOne.setCaption( "dataLastOne" );
dataLastOne.setConnectionTimeout( 15 );
dataLastOne.setCommandTimeout( 30 );
dataLastOne.setCursorType( AdoConst.adOpenForwardOnly );
dataLastOne.setLockType( AdoConst.adLockOptimistic );
dataLastOne.setCommandType( AdoConst.adCmdText );
dataLastOne.setMaxRecords( 0 );
dataLastOne.setBOFAction( CtrlConst.adDoMoveFirst );
dataLastOne.setEOFAction( CtrlConst.adDoMoveLast );
dataLastOne.setConnectionString( "jdbc:odbc:lynx", MISECRETO, MISECRETOTwo, "sun.jdbc.odbc.JdbcOdbcDriver" );

dataLastOne.setConnectionString( "", "" );
dataLastOne.setEnabled( true );
dataLastOne.setUserName( "" );
dataLastOne.setPassword( "" );

dataLastOne.setRecordSource( "SELECT [LastUsedSkill].[LastUsed] FROM LastUsedSkill WHERE [LastUsedSkill].[LastUsedSort]>=2002 And [LastUsedSkill].[LastUsedSort]<=2008 ORDER BY [LastUsedSkill].[LastUsed] DESC; " );

dataLastOne.showAddNewButton( true );
dataLastOne.setVisible( false );
dataLastOne.setLocation( 200, 769 );
dataLastOne.setSize( 180, 22 );
Data.initControls( dataLastOne );


Thanks !!