• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

getting data from one panel and display it on main panel

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..
Posts: 11445
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic