i am using Joptionpane which displays a pannel contains a table and a text. optionpane's control is in OK button (by default).how can i chage it to the table in the pannel,so that i can choose a row using keyboard
Not sure I understand the question, but the whole idea of the Dialog in JOptionPane is that it is "modal." It takes the focus from the rest of the app and won't allow you to access it until you dismiss the dialogue. If you need access to the app then you will have to find a way to create a non-modal dialogue window, or (preferably) not use a dialogue in the first place.