• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting data from one panel and display it on main panel

 
Amit S Kulkarni
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amit,

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.

Please do take out time to read http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!