About jTables and jcombobox with imageicons !!! :D from argentina

View: New views
1 Messages — Rating Filter:   Alert me  

About jTables and jcombobox with imageicons !!! :D from argentina

by AgusCar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi to all !!! :D how's all here ? blessingsssss !!! :D
Just saw this forum and I decided to register...
My problem is the following... How I can make a jtable that when I clicked a certain cell from a column a jcombobox appear and let me select a certain country and finnaly, and depending on the user chose, to display a certain flag ?.
I already done this by making a class that implements TableCellRenderer in which dependeing on what the user types ("England" or "Germany") a flag is display... But I don't know how to make this...

And the other doubt is how to align all the content to the CENTER of the cell... When I programme the class I told before I align the flag by using the JLabel methods but know if I want to center a string ???

How you can help me...