This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I want to initialize my combobox with objects from my database table.
What I want is combobox should display description of the selected object while it gives me id of that record when I am submitting the window for saving my record.
e.g. I am having five districts in my district_mst table. Pune, Bangalore, Hyderabad, Chennai, Ahmedabad are descriptions stored in desctription column of my database table and corosponding PrimaryKey values are 1,2,3,4,5.
I want to display district names in my JFrame while want to send PK value when I submit the JFrame.