package demo31;

import java.util.*;

import org.openswing.swing.internationalization.java.EnglishOnlyResourceFactory;
import org.openswing.swing.util.client.*;
import org.openswing.swing.internationalization.java.*;


/**
 * <p>Title: OpenSwing Demo</p>
 * <p>Description: Used to start application from main method:
 * it creates a tree frame where nodes are draggable and node icons are customizable per node (per value object)
 * and nodes have a distinct tooltip text.</p>
 * <p>Copyright: Copyright (C) 2006 Mauro Carniel</p>
 * <p> </p>
 * @author Mauro Carniel
 * @version 1.0
 */
public class ClientApplication {


  public ClientApplication() {

    Hashtable domains = new Hashtable();
    Properties props = new Properties();
    props.put("rename node","Rename node");
    props.put("remove node","Remove node");
    props.put("show remove command","Show remove command");
    props.put("hide remove command","Hide remove command");
    props.put("new description:","New description:");
    props.put("move node","Move node");
    props.put("copy node","Copy node");
    props.put("cancel","Cancel");
    props.put("node dropped","Node dropped");
    props.put("which operation?","Which operation?");

    ClientSettings clientSettings = new ClientSettings(
        new EnglishOnlyResourceFactory("£",props,true),
        domains
    );

    new TreeFrameController();
  }


  public static void main(String[] argv) {
    new ClientApplication();
  }





}
