aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree" Watch "JTree" New topic
Author

JTree

kumar kannan
Greenhorn

Joined: Jul 20, 2001
Posts: 2
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

Joined: Oct 25, 2000
Posts: 7292

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


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTree