Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree

 
kumar kannan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a dynamic Jtree to display the data of sql table using JPanal.i want to open the result panel when i click a button(in html).is it possible?if yes please let me know the proper way?
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would certainly be much easier if the button were a Java button; then you could have the table listen for a button click ("Display") and present itself.
Unless HTML's made big changes and I'm obsolete on that subject now, HTML widget are not applet-aware. You'd need to go back through the server with a POST request that's triggered by clicking your button. Then, something on the server-side (a servlet) would be invoked to update the table in the applet. Sounds painful.
Are you sure you can't just add a button to the existing applet?
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic