Can any ony help me i want to display the data from one panel to main panel how can it b done?
eg: i have one main panel and in that there is search button it will open new window and after searching for that result it must display in main panel.. can any one help me plzzz..
Welcome to the Ranch.
Since you haven't given us any details, here is the best I could come up with.
In pseudo code
1) Clicking a the search button pops up a dialog to accept the user's search query. JOptionPane#showInputDialog suggests itself.
2) After the user enters the query, you make a server/db call to get the appropriate results.
3) After getting the results, you update the main UI. e.g. if the results are to be displayed as a table, one would typically update the model with the results.