Simulate multiple trees on a JTree

Hi all,
is there a way to remove the line that binds the nodes of a tree?
I want to have something like msn friend's list, where there is a tree with multiple nodes "root nodes", and they have 0 or more children and no node is connected to any other by a line.
thanks in advance

Here's a util to display those look and feel defaults:
import java.awt.*;
import java.util.*;
import javax.swing.*;
public class UIManagerExample {
    public static void main(String[] args) {
        java.util.List < String > keys = new ArrayList < String > ();
        UIDefaults defs = UIManager.getLookAndFeelDefaults();
        for (Object key : defs.keySet()) {
            String keyString = key.toString();
            if (keyString.startsWith("Tree."))
                keys.add(keyString);
        Collections.sort(keys);
        for(String key : keys) {
            Object value = defs.get(key);
            System.out.format("%-32s:%s%n", key, value.toString());
}

Similar Messages

  • Create multiple root in a JTree??????very urgent..pl

    hello
    i have a jtree which takes a defaultMutableTreenode as its parameter.
    My problem is that i have to create multiple root.
    and what i get with this is a single root at the top.
    what is the solution for creating multiple roots in a jtree.
    pl. help its very urgent
    thanx
    hussain

    Hello Hussain,
    I found in the sourcecode of JTree the following constructor which might is be helpful for you:
    * Returns a <code>JTree</code> with each element of the specified
    * <code>Vector</code> as the
    * child of a new root node which is not displayed. By default, the
    * tree defines a leaf node as any node without children.
    * @param value a <code>Vector</code>
    * @return a <code>JTree</code> with the contents of the
    *          <code>Vector</code> as children of the root node
    * @see DefaultTreeModel#asksAllowsChildren
    public JTree(Vector value) {
    this(createTreeModel(value));
    this.setRootVisible(false);
    this.setShowsRootHandles(true);
    Greetings
    Helmut

  • How to create multiple Tree Type Region In Tabular Form ?

    Dear Friends,
    i have to design tabular form to Distribute User Rioght to emp to access application
    eg if i have Three module in application
    1.Administration
    2.Attendance
    3.Accounts
    Module
    1 Administration have 5 Pages A,B,C,D,E.
    Module
    2 Attendance HAVE 4 Pages F,G,H,I
    Module
    3 Accounts HAVE 7 Pages J,K,L,M,N,O,P
    I need these three module divided into three section in tabular form as a tree Type like
    Module 1 Tree Open in Tabular Form like
    - (Tree Mark Open )
    =======================================================
    PAGE_ID-------------SUBPAGE_ID-------VIEW-------------------MODIFY-------------------CREATE----------------------------TABLE COLUMN NAME
    ========================================================          
    Administration-----------A------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Administration-----------B------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Administration-----------C------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Administration-----------D------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Administration-----------E------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    - (Tree Mark Open )
    Module 2 Tree Open in Tabular Form like
    Attendance-----------F------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Attendance-----------G------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Attendance-----------H------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Attendance-----------I------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    - (Tree Mark Open )
    Module 3 Tree Open in Tabular Form like
    Accounts-------------J------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------K------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------L------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------M------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------N------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------O------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
    Accounts-------------P------------------CHECK bOX------------CHECK BOX-------------CHECK BOXi need divided these three Module in Tabular form in three region as tree.
    Table APPLICATION_PAGE_DETAILS
    ID                   NUMBER
    PAGE_ID             NUMBER
    SUB_PAGE_ID          NUMBER
    ========================
    TABLE USER_RIGHT
    ======================
    ID                  NUMBER
    EMP_ID            NUMBER
    PAGE_ID            NUMBER
    SUB_PAGE_ID        NUMBER
    VIEW                    VARCHAR2(1)
    MODIFY                VARCHAR2(1)
    CREATE                VARCHAR2(1)How to create multiple Tree Type Region In Tabular Form ?
    How can i do this ?
    Thanks
    Edited by: Vedant on Oct 4, 2011 3:21 AM
    Edited by: Vedant on Oct 4, 2011 9:09 PM
    Edited by: Vedant on Oct 13, 2011 8:57 PM

    Well think of it I believe the scenario is too bird viewed hence the solution can't be exact.
    But thinking of a possible solution every time a child operation fails have a catch block where you you go back to system if the parent needs to be deleted if yes, call Delete Method on the parent.
    Note: Make sure that the decision on whether or not the parent record needs to be deleted will depends on the question "Does Parent Record already has several other children associated to it or not"
    Hope this clarifies.
    Regards,
    Messer

  • Display of relationships between nodes of multiple trees

    Hello,
    I am trying to develop a gui to display the relationship between multiple trees.
    Tree1:------|---------------Tree2:----------------|--------Tree3:
    ------------|-------------------------------------|--------------
    Root -------|----------------Root-----------------|--------Root
    ---Leaf1----|--------------------Node1------------|-----------LeafA
    ---Leaf2----|-----------------------Leaf11--------|-----------LeafB
    ---Leaf3----|-----------------------Leaf12--------|-----------LeafC
    ---Leaf4----|--------------------Node2
    ------------|-----------------------Leaf21
    ------------|-----------------------Leaf22
    (The hyphens do not signifiy relationships, they are put there because the
    preview takes away the blanks. The | characters are intended to act as separators
    between adjacent trees.)
    All the trees are scrollable and have been added to three different scrollpanes
    and are displayed on a window. The relationships can only be between leaves
    of the trees.
    The only way I can figure out to show such relationships is by drawing lines
    e.g. a line from Tree1.Leaf1 to Tree2.Leaf21 etc. Users may define relationships
    by drawing lines from one tree node to another by dragging the mouse.
    The lines may criss cross and there might be a lot of lines etc.
    I would like to know about alternative ways to show such relationships on the
    screen in a neater way.
    I would also like a way to make lines "full fledged objects" e.g. they will get mouse
    events such that actions can be triggered by double clicking or right clicking on a
    line.
    I would appreciate your help in this very much.
    Best Regards,
    Sandeepan

    Joop Eggen and deriderj, thank you for your replies.
    However, the JGraph framework is available only on Jsdk 1.4 and not on Jsdk 1.3.
    I saw an item in the FAQ about the possibility of porting JGraph to 1.3 but there were
    no links on the site for this.
    I need to use Jsdk 1.3 as Jsdk1.4 is unsuported by the vendor of one of the tools that I need
    to use and they do not have any plans to support 1.4 in the near future.
    I would appreciate the forum's help in pointing out JGraph like functionality in Jsdk1.3 via some other API or maybe knowledge about whether someone has ported JGraph to Jsdk 1.3
    Regards,
    Sandeepan

  • Multiple tree structured rows in output header

    Hi All,
    I have a requirement to create an output layout in which there are 3 dynamic rows in header and each row is having its own sub devision (like a tree structure). The number of columns will depend upon the data.
    I am able to create N number of dynamic columns according to data fetched at run time but dont know how to create multiple tree structures rows in header.
    Can any one please suggest how can I achieve this in SAP?
    Regards,
    Nilanjana

    Hi All,
    I have a requirement to create an output layout in which there are 3 dynamic rows in header and each row is having its own sub devision (like a tree structure). The number of columns will depend upon the data.
    I am able to create N number of dynamic columns according to data fetched at run time but dont know how to create multiple tree structures rows in header.
    Can any one please suggest how can I achieve this in SAP?
    Regards,
    Nilanjana

  • Simulate Multiple users connecting to same session

    Hi All,
    Is there anyway we can simulate multiple users connecting to the same session in oracle using PL/SQL.
    Thanks,
    MK.

    As per the architects in our company, lots of users connect to the same session and access the database.Exactly what does this mean? A single session can service one user at a time. I would wager that the architects are envisioning (or describing) a connection pooling setup where the middle tier server maintains a relatively small number of connections to the database (each with its own session most likely) and users operate by getting a connection from the pool, making a request, and returning the connection back to the pool. At any given point, only one user can be using a connection.
    If that's the case, you would simulate this by simply executing code in a loop in PL/SQL.
    Of course, if this is the case, each connection in the connection pool would its own copy of the collection and so each connection would get its own list of order numbers. You'd have to develop some way to ensure that each session populated its collection with a different set of order numbers.
    Justin

  • How to set the default tree node in JTree?

    I want to set a default tree node in JTree when start the program,
    what is the method or the function to call?
    Thanks~

    If you by "default" mean "selected", then you can use one of the setSelectionXXX methods in the JTree API.
    If you by "default" mean something else, never mind this post :-)

  • Radius and multiple trees

    We have a hardware apliance that does RAS for us, it points to our BM3.8
    Radius box for authentication. It can have at most 3 authetication
    radius server addresses. If it gets a radius response from one server,
    (whether approved or not) it stops looking. BM3.8 makes good fail over
    that way (if one server is not responding to radius request, the Ras box
    will go to the next server) but it does not help me when the user I need
    to authenticate is in another tree.
    Is there a way to have a radius serve support multiple trees...maybe
    with running on the servers where those other trees reside or something?
    So far the only answer I have is to define users in both trees...a fact
    that gets me odd looks at audit time when I have many more users than I
    should.....

    Identity Manager (aka DirXML) is one way to solve this problem, and some
    customers have done this. However, this is not the only solution. You can
    also configure RADIUS proxy using a "Search Domain" or a "Generic Proxy
    Domain." These can be configured on your DAS object in ConsoleOne.
    If you set up a search domain, then RADIUS will forward the request to
    another RADIUS server if it cannot find the user. This should do exactly
    what you want, but may slow your authentication times a bit. This solution
    is appropriate if you're satisfied with your current authentication times
    and do not have many lookup contexts configured.
    If you use a generic proxy domain then the RADIUS server will proxy requests
    based on the user name. Users must login using names in the form of
    "userCommonName@proxyDomainName."
    >>> Steve Aitken<[email protected]> 3/19/2005 10:01 AM >>>
    Hi,
    Most effective way round this is to use dirxml or idm2 to
    automatically duplicate users into an authentication tree, or
    authentication OU. You can then define your radius servers to look
    exclusivly at that tree / ou and authenticate all your users
    sucessfully.
    In terms of your audit, your license with novell will stipulate that
    administrative users are excluded from the user count. As these
    duplicated users are there only for admin purposes, these can safely
    be excluded from the license count.
    Cheers,
    Steve
    On Thu, 17 Mar 2005 21:41:22 GMT, buzz <[email protected]> wrote:
    >We have a hardware apliance that does RAS for us, it points to our BM3.8
    >Radius box for authentication. It can have at most 3 authetication
    >radius server addresses. If it gets a radius response from one server,
    >(whether approved or not) it stops looking. BM3.8 makes good fail over
    >that way (if one server is not responding to radius request, the Ras box
    >will go to the next server) but it does not help me when the user I need
    >to authenticate is in another tree.
    >
    >Is there a way to have a radius serve support multiple trees...maybe
    >with running on the servers where those other trees reside or something?
    >
    >So far the only answer I have is to define users in both trees...a fact
    >that gets me odd looks at audit time when I have many more users than I
    >should.....

  • Selcting Multiple  CheckBoxe in a JTREE without holding CTRL / SHIFT

    HI,
    My JTree is having JCheckBOxes as nodes .... Now the problem is i want to select multiple nodes (checkboxes) with out holding CTRL/SHIFT key .
    Please help regarding this issue ..
    The code of my renderer class is as below:
    * MyTreeRendered.java
    * Created on April 27, 2006, 7:42 PM
    import javax.swing.*;
    import javax.swing.tree.*;
    import java.awt.*;
    public class MyTreeRendered extends DefaultTreeCellRenderer  {
        private JCheckBox cb ;
        /** Creates a new instance of MyTreeRendered */
        public MyTreeRendered() {
        public Component getTreeCellRendererComponent(
                            JTree tree,
                            Object value,
                            boolean sel,
                            boolean expanded,
                            boolean leaf,
                            int row,
                            boolean hasFocus){
           if(cb == null) {
               cb = new JCheckBox();
               cb.setBackground(tree.getBackground());
           DefaultMutableTreeNode node = (DefaultMutableTreeNode)value;
           cb.setText(node.getUserObject().toString());
           cb.setSelected(sel);
           return cb;
    }

    These are the methods which seem to define that behaviour:
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/basic/BasicTreeUI.html#isToggleSelectionEvent(java.awt.event.MouseEvent)
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/basic/BasicTreeUI.html#isMultiSelectEvent(java.awt.event.MouseEvent)
    You'd have to write your own TreeUI and override them.

  • How to cut, copy and paste a tree node in JTree?????

    Hi, Java GUI guru. Thank you for your help in advance.
    I am working on a File Explorer project with JTree. There are cut, copy and paste item menus in my menu bar. I need three EventAction methods or classes to implements the three tasks. I tried to use Clipboard to copy and paste tree node. But I can not copy any tree node from my tree.
    Are there any body has sample source code about cut, copy, and paste for tree? If possible, would you mind send me your sample source code to [email protected]
    I would appreciate you very very much for your help!!!!
    X.G.

    Hi, Paul Clapham:
    Thank you for your quick answer.
    I store the node in a DefaultMutableTreeNode variable, and assign it to another DefaultMutableTreeNode variable. I set up two classes (CopyNode and PasteNode). Here they are as follows:
    //CopyNode class
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class CopyNode implements ActionListener{
    private TreeList jtree;
    String treeNodeName;
    TreePath currentSelection;
    DefaultMutableTreeNode currentNode;
    public CopyNode(TreeList t){
    jtree = t;
    public void actionPerformed(ActionEvent e){
    currentSelection = jtree.tree.getSelectionPath();
    if(currentSelection != null){
    currentNode = (DefaultMutableTreeNode)(currentSelection.getLastPathComponent());
    treeNodeName = currentNode.toString();
    //PasteNode class
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class PasteNode extends DefaultMutableTreeNode{
    private TreeList jtree;
    CopyNode copyNode;
    public PasteNode(TreeList t){
    jtree = t;
    copyNode = new CopyNode(t);
    public DefaultMutableTreeNode addObject(Object child){
    DefaultMutableTreeNode parentNode = null;
    TreePath parentPath = jtree.tree.getSelectionPath();
    if(parentPath == null){
    parentNode = jtree.root;
    else{
    parentNode = (DefaultMutableTreeNode)parentPath.getLastPathComponent();
    return addObject(parentNode, child, true);
    public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent, Object child, boolean shouldBeVisible){
    DefaultMutableTreeNode childNode = copyNode.currentNode;
    if(parent == null){
    parent = jtree.root;
    jtree.treemodel.insertNodeInto(childNode, parent, parent.getChildCount());
    if(shouldBeVisible){
    jtree.tree.scrollPathToVisible(new TreePath(childNode.getPath()));
    return childNode;
    I used these two classes objects in "actionPerformed(ActionEvent e)" methods in my tree:
    //invoke copyNode
    copyItem = new JMenuItem("Copy");
    copyItem.addActionListener(copyNode);
    //invoke pasteNode
    pasteItem = new JMenuItem("Paste");
    pasteItem.addActionListener(
    new ActionListener(){
    public void actionPerformed(ActionEvent e){
    pasteName.addObject(copyName.treeNodeName);
    When I run the drive code, making a copy some node from my tree list, I got bunch of error messages.
    Can you figour out what is wrong in my two classes? If you have sample code, would you mind mail me for reference.
    Thank you very much in advance.
    X.G.

  • Select multiple nodes in a JTree a right click

    Hi all,
    I've a JTree and I'd like to allow the user select some nodes (one or more) right click and than show a popupMenu.
    This behavior seems not to be easy, because if I select a single node (right clicking on it) the node does not appear selected ; I need to select it left clicking and than everything works fine.
    I read some posts found in the forum and the solution seems to be :
    - attach a mouseListener to the JTree
    - get the TreePath of the node selected
    - force the selection on the node with setSelectionPath(TreePath)
    This works fine if you need to select only one node, cause if you have to select more, you simply cannot.
    I wonder a so obvious behavior is so hard to achieve.
    I hope somebody out there had made the magic.
    Any help would be appreciated.
    Flavio Palumbo

    Hi Darryl,
    I wrote the test case below.
    Using the methods you suggested it works almost fine.
    The only behavior not desired is when you select a range (shift or control), release the key an than right click ; in this case remains selected the only node you clicked on ; to select the range clicking with the right button, you have to keep pressed the key.
    Any hint would be appreciated.
    Flavio
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JFrame;
    import javax.swing.JMenuItem;
    import javax.swing.JPopupMenu;
    import javax.swing.JTree;
    import javax.swing.SwingUtilities;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreePath;
    public class TestTree {
        JTree jtr = null;
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new TestTree();
        public TestTree() {
            JFrame jf = new JFrame();
            jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            try {
                javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
                javax.swing.SwingUtilities.updateComponentTreeUI(jf);
            } catch (Throwable e) {
            jf.setPreferredSize(new java.awt.Dimension(200, 560));
            javax.swing.JScrollPane js = new javax.swing.JScrollPane();
            DefaultMutableTreeNode root = new DefaultMutableTreeNode("root");
            jtr = new JTree(root);
            jtr.addMouseListener(new TestTreeML());
            js.setViewportView(jtr);
            jf.getContentPane().add(js);
            for (int i = 0; i < 20; i++) {
                DefaultMutableTreeNode nodoFiglio = new DefaultMutableTreeNode("nodo" + i);
                ((DefaultTreeModel) jtr.getModel()).insertNodeInto(nodoFiglio, root, root.getChildCount());
            jf.pack();
            jf.setVisible(true);
        public class TestTreeML extends MouseAdapter {
            @Override
            public void mousePressed(MouseEvent e) {
            @Override
            public void mouseClicked(MouseEvent e) {
                try {
                    if (!e.getSource().equals(jtr)) {
                        return;
                    TreePath tpSel = jtr.getPathForLocation(e.getX(), e.getY());
                    if (tpSel == null) {
                        return;
                    int i = 0;
                    final DefaultMutableTreeNode node = (DefaultMutableTreeNode) tpSel.getLastPathComponent();
                    TreePath[] tpExisting = null;
                    if (e.isControlDown() || e.isShiftDown()) {
                        System.out.println("control/shift");
                        TreePath[] tpEx = jtr.getSelectionPaths();
                        tpExisting = java.util.Arrays.copyOfRange(tpEx, 0, tpEx.length + 1);
                        i = tpEx.length;
                    } else {
                        tpExisting = new TreePath[1];
                    tpExisting[i] = tpSel;
                    jtr.setSelectionPaths(tpExisting);
                    if (e.getClickCount() == 2) {
                        System.out.println("double click on " + node.getUserObject());
                    if (javax.swing.SwingUtilities.isRightMouseButton(e)) {
                        if (!e.isControlDown()) {
                            jtr.setSelectionPath(tpSel);
                        JPopupMenu menu = new JPopupMenu();
                        JMenuItem it0 = new JMenuItem("Option1");
                        it0.addActionListener(new ActionListener() {
                            public void actionPerformed(ActionEvent e) {
                                System.out.println("Option1 on " + node.getUserObject());
                        menu.add(it0);
                        JMenuItem it1 = new JMenuItem("Option2");
                        it1.addActionListener(new ActionListener() {
                            public void actionPerformed(ActionEvent e) {
                                System.out.println("Option2 on " + node.getUserObject());
                        menu.add(it1);
                        menu.show(jtr, e.getX(), e.getY());
                } catch (Throwable t) {
    }

  • Creating a directory tree with a JTree???

    I want to display in a JPanel the directory structure of my disk, like Windows Explorer. I suppose I have to do it with a JTree, isn't it? But do you know how? The default model only takes strings introduced by me.
    Thank you very much.

    You can use the JSP Tree Tag I have developed. This helps you both structuring the tree model itself + it takes care of displaying the tree in a nice way. You can change all HTML code used to display the tree. Also you can build trees dynamically instead of just displaying static trees. Take a look at it here:
    http://www.jenkov.dk/projects/treetag/treetag.jsp
    Kind Regards,
    Jakob Jenkov

  • How to create/simulate multiple mouse devices (in dev manager) in windows 8.1 and above?

    Is their any way to install/enable multiple mouse devices in windows 8.1 and above and simulate input to them? I would write a driver if their is no other way. If I need to write a device driver does anyone have any good pointer tutorials that would
    get me started?
    I found this for communicating with an already installed device which is hooked up to the computer.
    https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.humaninterfacedevice.aspx?f=255&MSPPError=-2147217396
    I wonder if installing something that's already in the driver store using DiInstallDriver and enabling it (possibly via CM_Enable_DevNode) would work?
    My goal was to create/install 4 mouse devices and communicate with them via the windows.devices.humaninterfacedevice library. Would this be possible?
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering
    - Yoda. Blog - http://www.computerprofessions.co.nr

    you need to write your own driver. you will need to write a HID miniport. from that one miniport you can describe as many HIDs as you want. you can write the HID miniport driver in UMDF if you want to stay in user mode.
    the namespace you link to above will not create HIDs and the normal rules about not allowing you to open a keyboard or mouse HID from user mode still applies.
    d -- This posting is provided "AS IS" with no warranties, and confers no rights.
    That almost an answer. I was wondering if this is good example of what you were talking about:
    https://code.msdn.microsoft.com/windowshardware/WudfVhidmini-Sample-b304f83a/sourcecode?fileId=42918&pathId=556204534
    If so, does that mean I need to use direct calls to HID.dll or other libraries in order to read from the custom mouse device? I have seen many implementations of filters which end up poorly (maybe not everyone but the multiple device ones mostly) and
    I am not for sure about the miniport drivers.
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to
    suffering - Yoda. Blog - http://www.computerprofessions.co.nr

  • Testing for concurrency .. How to simulate multiple concurrent sessions?

    All,
    I was going through Tom Kyte's Expert Oracle one on one and he explains how we can test the scalability of queries by running them concurrently for multiple sessions.
    My (rather naive) question is how do you simulate those five concurrent sqlplus sessions?
    a). Do you just do an alt + tab to each session and run the same procedure?
    (I did this for two sessions and was able to see the wait times etc.. but for more sessions (5.or more.) ,the approach doesn't look right..By the time I go to the 5th session and execute it, the first one is way under progress. Also, It is clearly evident they are not all concurrent sessions.
    b) Schedule 5 different jobs to run the same procedure at the same time..?
    Any other approach...?
    Thanks for your time in advance!
    John.

    There are also many other ways to achieve that.
    For example
    a self developed multithreaded client application that connects several times, the best one in my opinion for simulating heavy loads,
    or
    background commands ( submitted with a final "&" in a unix shell or with the equivalent Start-PSJob in the new Microsoft powershell v2 )
    But the reason to choose among one of them only depends by the specific case and your preferences.
    Bye Alessandro

  • Simulate multiple simultaneous key presses with applescript?

    Is it possible to simulate holding down multiple keys with applescript? No modifiers, just letters.
    For example;
    holding down d,o,n,k,e and y keys simultaneously for 1 second then letting go?
    so far I have this:
    on run {input, parameters}
              tell application "System Events"
           keystroke 4
           keystroke 1
           keystroke 37
           keystroke 9
           keystroke 2
           keystroke 17
              end tell
              return input
    end run
    Can anyone show me how to tell it to hold for 1 second, but more importantly is this actually possible and am I even on the right track?
    Cheers,
    Marty

    You should be able to achieve this via the key down and key up commands, rather than keystrokes.
    As the name implies, a keystroke is a simple, single press of a key whereas the key down simulates the pressing of a key and key up simulates the release.
    Off hand I have no idea how it will respond to multiple keys, and I'm not inclined to try, but this should point you in the right direction:
    tell application "System Events"
              key down "donkey"
      delay 1
              key up "donkey"
    end tell

Maybe you are looking for

  • Unable to boot new Linux installation on Lenovo G400

    I am having problems installing Linux Mint 16 to a Lenovo G400 that I recently purchased here in China. I have an older Lenovo that I have had for several years, and have been quite pleased with it so I thought I would get another. I gave up on Windo

  • Computer crashed, reloaded CS5, says serial number not for qualifying product

    Loaded CS5 on new computer successfully.  loaded updates successfully. Trying to load CS5 on 2nd computer (old computer with new Windows 7 installation) and after it loads and I try to install updates... the updates fail to load and I get the followi

  • Messages won't launch. Some library errors.

    Out of the blue, Messages just stopped launching a few hours ago, not even after a restart or wakeup. At first, I was getting an abort trap for reason "6" (not sure what that is), so I deleted the app and replaced it with the one on my clone backup.

  • Can you recommend speakers that are compatible with the ipod touch 4g?

    Hi I Recently bought ipod touch 4g but so far have been unabe to find compatable speakers.  My cuurent dock and speakers are not suitable even with adaptor and neither is my daughters and that is only 3 months old. I have returned 2 already. Any help

  • Can't figure out permissions for drop box

    No matter what I've tried (probably the wrong things)  I can't give myself permission to access the drop box on either my iMac(running Snow Leopard) or my MacBook (running Lion).  Any ideas?