Is there something to JTree for applets?

Hi,
I am new to applets and I was wondering if there is something similar to JTree for applets? In fact, does JTree work in applets? I am trying to code something that requires a tree for a gui and I have been searching for hours for anything that could get the job done. Does anyone know of anything that works similarly?
Thanks.

Hi Edward,
JTree is just another component, it should work in a regular Applet.
import javax.swing.*;
import java.applet.*;
public class SimpleApplet extends Applet {
     public void init() {
          String[] colours = new String[] {
               "Red", "Orange", "Yellow", "Green", "Blue", "Indigo", "Violet"
          JTree tree = new JTree(colours);
          add(new JScrollPane(tree));
}or is there some other reason that prevents you from using Swing components?
regards
sjl

Similar Messages

Maybe you are looking for

  • Images not resolving in browser

    Just downloaded Dreamweaver CC 2014 and my inserted images just grey out when I preview in browser or when I upload to server and look and website. I have tried to reduce images very low and tried several methods of inserting the image using file, an

  • Oracle 11i financial  training

    Dear Sir/Madam, IDS Systems Pvt Ltd is authorized to conduct Oracle application functional modules training in association with Oracle University. The courses developed by the Oracle University are aimed at delivering the comprehensive knowledge on c

  • I have install the Developer Studio ,what's the next ?

    I install the Developer Studio on my computer. I need a remote server. how build a remote server? How can i set in the developer studio>windows>Preferences-->SAP J2EE Engine and how to set in the SAP application server?(ECC6). and how set the develop

  • Discover which kernel modules correspond to your specific hardware

    Here is a bash script to probe your hardware, then come up with a list of kernel modules you may wish to compile into a custom kernel tailored for specific machine! #/bin/bash # Script by graysky based on some code found in http://www.kroah.com/lkn/

  • Document approval process.

    hello all,    Is it possible to use the organization structure from  HR (R3) for the approval process of documents in cm repositories? in other words Whether it is possible to maintain the approvers from HR (R3) for the documents in cm repository? We