Sir, i want to get the selected value from JCombobox to ms access database...means the value which i selected it may me text or number simply i just want to print in ms access or stored on ms acess databse in selected comlumn???
      
    - import java.awt.*;
 - import java.awt.event.*;
 - import java.sql.*;
 - import javax.swing.*;
 - private void createUI()
 - {
 - petList.setSelectedIndex(0);
 - petList.addActionListener(this);
 - p.add(petList);
 - cn.add(p);
 - p.setBounds(80 + insets.left, 135 + insets.top,
 - size.width, size.height);
 - frame.add(petList);
 - frame.pack();
 - frame.setVisible(true);
 - }
 - @Override
 - {
 - {
 - if(petName.equals(s))
 - {
 - addOperation();
 - }
 - }
 - }
 - private void addOperation()
 - {
 - try
 - {
 - Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
 - st.execute(sql);
 - }
 - {
 - }
 - }
 - {
 - GetValueOfJcomboBox gvb = new GetValueOfJcomboBox();
 - gvb.createUI();
 - }
 - }// class closed