how to set data in combobox from database and cange order of data in java

I want to set data into jComboBox from fetching data from database using Java Swing and at the same time change the order of data. I have a table in my database name teachersinfo.

In there is a column tname and also a column priority. Now I want to select all tname and change the order of tname which tname has a highest priority value. And then other data. For example, I have 4 data.

Rahim priority 1

Karim priority 2

Jamal priority 3

Kamal priority 0

Abbas has no priority

Now I want to show...

Read More »

By: StackOverFlow - Wednesday, 7 November

Related Posts