if you require as
select * from dbx
it is not a GUI at all (((
To set some foreground
First: you have to get the component for selected data. Is a JLabel, JTextField, JTable, JTextArea or so...
set the selected data to the Swing component and then you can change foreground ))) A pure selection is not for GUI visualization at all (
select data and set the data to swing component as I've listed before ) Try it