How to tap non node area in a JTree

how can I trap area of a JTree which does not constitute the node rows???

selPath.getPathForLocation(me.getX(),me.getY())
this function returns null if there is no rows. you cant track by this.
Raheel

Similar Messages

  • How to draw non intersecting area of two GeneralPath

    Hi all ,
    I have two generalpath GP1 and GP2 .
    GP1 and Gp2 are overlapping.
    Im able to draw the overlapping region between the two .
    I want to make the non overlapping area between these two generalpath .
    Is there any API or method to draw that
    Thanks and regards
    Anshuman Srivastava

    Not tested.
        public static Shape createNonOverlappingArea(Shape GP1, Shape GP2) {
          * Create an area that contains the total of GP1 and GP2.
         Area rv = new Area(GP1);
         rv.add(new Area(GP2));
          * Create an area that contains the overlap.
         Area overlap = new Area(GP1);
         overlap.exclusiveOr(new Area(GP2));
          * Subtract the overlap from the total area.
         rv.subtract(overlap);
          * Now rv contains the non overlapping parts.
         return rv;
        }Piet

  • How to not display nodes in a tree if Oracle roles are NOT used?

    How to not display nodes in a tree if Oracle roles are NOT used?
    We don't use Oracle DB roles to grant users access to Forms from the menu. We use a template and role system of our own. Basically a few tables with templates and roles.
    We want to convert our normal Forms menu to a tree menu and one of our key requirements is that when the tree is populated ONLY nodes with programs (i.e. forms) he has been granted to execute is shown.
    Since we don't use Oracle Roles how to do this in a tree?
    I created a function to show/hide LEAF nodes, BUT problem is that there are sub-menu nodes showing even if the leaf-nodes under it has not being displayed. My function has suppressed it.
    My tree query is like this:
    SELECT
         t.status, LEVEL, t.label, t.icon, t.node VALUE
    FROM
         tma_tree_menu t
    WHERE
    tma_authenticate_sys_chk_role(USER, t.node) = 1
    CONNECT BY
         PRIOR t.node = t.master
    START WITH
         t.MASTER IS NULL
    ORDER SIBLINGS BY
    t.position
    The tma_authenticate_sys_chk_role will return 1 only if the user has access to the form under that node.
    I tried the FTree functions in Forms but even that has nothing.
    Any help would be greatly appreciated.
    Edited by: Channa on Mar 17, 2010 6:49 AM

    Would you share the source code? I guess what I need is how exactly you retreive the user credentials from the DB table and set that boolean variable.
    and then how to condition it in UIX?

  • How can I know which nodes are doing what?

    I have QMaster helping with a Compressor job, is there a way I can tell in the Batch Monitor (or maybe somewhere else) which nodes are working on the task?

    Thanks. Problem is that Apple Qadministrator tells me that information is not available for QuickClusters. Since I just let Qmaster sortof set itself up, that's what it is, a QuickCluster.

  • How to create a node with attributes at runtime in webdynpro for ABAP?

    Hi Experts,
             How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
    I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
    I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
    Please help!
    Thanks
    Gopal

    Hi
       I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
    Note
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    My code is like the following:
    TYPES: BEGIN OF t_type,
                CARRID TYPE sflight-carrid,
                CONNID TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
      dyn_node   type ref to if_wd_context_node,
      rootnode_info   type ref to if_wd_context_node_info,
      i_node_att type wdr_context_attr_info_map,
      wa_node_att type line of wdr_context_attr_info_map.
          wa_node_att-name = 'CARRID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
          insert wa_node_att into table i_node_att.
          wa_node_att-name = 'CONNID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
          insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
                                       attributes = i_node_att
                                       is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    Message was edited by: gopalkrishna baliga

  • How to share documents which are NOT photos?

    I only see how to create a family for IPhoto sharing.  What about documents in folders I create? How to share non-photo items with friends, without giving someone my username&password, which then gives FULL access to everything?  Not Cool; or so user-friendly!

    You could try to send the large audio attachment using Mail Drop.
    See this help page:   Mail (Yosemite): Add attachments
    Send large attachments using Mail Drop
    You can use Mail Drop to send files that exceed the maximum size allowed by the provider of your email account. Mail Drop uploads the large attachments to iCloud, where they’re encrypted and stored for up to 30 days.
    If you have an iCloud account and you’re signed in to iCloud when you click Send, Mail automatically sends the attachments using Mail Drop. Mail Drop attachments don’t count against your iCloud storage.
    If you don’t have an iCloud account, or if you’re not signed in, Mail asks you whether to use Mail Drop (select “Don’t ask again for this account” to always use Mail Drop).
    If a recipient uses Mail in OS X Yosemite, the attachments are automatically downloaded and included in your message just like any other attachment. For other recipients, your message includes links for downloading the attachments and their expiration date.
    You can turn Mail Drop on or off for an account. Choose Mail > Preferences, click Accounts, select your account, click Advanced, then select or deselect “Send large attachments with Mail Drop.”
    It seems not yet to work always reliably, but perhaps you are lucky.

  • How to blink TreeView Nodes based on condition c#

    suppose i am populating my tree view with data from database and i want to blink those nodes which has a specific data. now guide me with code how can i efficiently blink multiple tree view nodes  based on condition in winform application.

    Hi Mou_kolkata,
    >> anyone can give me small working code for tree node blinking
    Thank Armin for the details about blinking TreeView Nodes.
    For a simple demo to blink TreeView nodes, you could refer the link below:
    # Treeview control - How to make a node blink?
    https://social.msdn.microsoft.com/Forums/en-US/64e7a4d7-3098-4370-990f-390cb3a640a1/treeview-control-how-to-make-a-node-blink
    If you have issues when you blink Treeview nodes, please feel free to post a new thread in this forum, then you would get more help.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to edit the node value of a tree in webdynpro java

    Hi ALL
    I have Tree UI element where i got displayed all the nodes by calling the BAPI
    Now my requirement is when i put the cursor at any node in the Tree struture then on click of insert button i need to insert the new node with the text  , the user has to be option to give new text for the new node dynamically  , so while adding the new node in a tree the tree has to choose the text for new node , like how to edit the node of a tree to add new text.
    If any one can send the sample code on the same then it would be great help to me.
    Similar requirement like in table UI Like however we are adding the new row in a table when we click on the insert button then cursor will go to that new row in a table where user can enter his details in the table.. now i am looking for the same requirement in a Tree UI element.
    is it possible the same requirement in tree UI element in webdynpro for Java??
    Thanks
    kallki reddy

    Hi kallki reddy
    In general I think this is not possible in the form you'd like. It seems the Tree control is read-only thing always. It cannot provide editing capabilities.
    Table is different thing. You can select within many different cell editors including Input Fields.
    I guess that you scenario could be implemented not with Tree control, but with Table with Master Column. The master column allows to bring up a hierarchy into a plain table. So it's just a tree inside a table.
    Here you can find further details: [TreeByNestingTableColumn API|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/92/12a74046033913e10000000a155106/content.htm]
    BR, Siarhei

  • How to get each node in tree?

    how to get each node in tree?
    Message was edited by:
    NikisinProblem

    how to get each node in tree?
    Since (as far as I know) treeNode is an interface, the real question to me is how are you implementing your treeNodes? Are you overriding the toString() method?

  • How to set a print area in Numbers

    This one should be easy: set print range for the cells that require to be printed. There does not to be a way to do it, or is it so obvious that I missed it?

    Okay, I've been following this conversation, can't keep my mouth shut.
    For what it's worth, I spend about 90% of my work day in excel and while I'm no power user by any means, I'm reasonably competent in it. I think in spreadsheets. It's a curse. I've used every spreadsheet there is that will run on a Mac, and none has even come close to excel's usefulness. Yes, that includes all the third-party attempts that claim to be business-ready. They're just not, and neither is Numbers.
    Crazierthanu, I think excel can at least manage all of the issues you listed. For global settings you can select all the tabs you want to change and any change you make on one will be made on all of the selected tabs. So if you set Portrait and Fit to Page in page setup, all the tabs will print in Portrait and the data fitted to a single sheet. The downside to this is when there are different "sizes" of data on the various tabs; that can result in varying font sizes, another problem. Again in excel (I choose not to capitalize microsoft product names, call it a personal quirk born of extreme disgust with the company), in print view one can, with a few keyboard shortcuts, select the area to be printed and set print area from the context menu. It's very straightforward. And you can select any part of the data to print, eschewing all else. This is how you'd print non-rectangular areas. You can use this function to print discontinuous areas also, though they'll print on separate pages. To print multiple tabs at one time, select each tab you wish to print while holding down Ctnl or Shift.
    Anyway. I sure don't want to sound like an excel supporter because I've put myself through a lot of suffering to avoid having to buy it. And I still haven't. I'll go a long way to keep M$ from getting any of my money. But excel is a good spreadsheet, the best there is so far. Printing should be simple. Maybe M$ patented excel's printing paradigm and no one else can use any of it. That would be par.
    Many of these items are possible in Numbers. What's so frustrating is the screwy slider that makes you print the whole sheet and everything on it. I don't want to print everything on a sheet, and I want to easily select paper orientation (I think someone mentioned how to do that and I'd bet it would work globally by selecting multiple sheets in the left column).
    I too think Nick hit it on the head when he said that you have to compromise sheet layout to fit within Numbers' print paradigm. That's just ridiculous. The application needs to bend to my will just a bit more than that.
    Because I've invested a great deal of hope and what to me is not an insignificant amount of money, I'll learn to use Numbers. But Apple sure missed the boat with this one if they hoped to get excel users to switch. Unless they have a serious personal vendetta against microsoft, pretty much any spreadsheet user in the world will scoff at this first generation attempt and continue using excel. You can sure make "pretty" spreadsheets with Numbers, but it's awful hard to get any work out of it.
    I've printed the Numbers manual and maybe I'll learn what I need to know from reading it. Heaven knows I've read enough excel books! Maybe that's what the first version of Numbers needs - someone to figure out how to use it and write a book for the rest of us. Hey, maybe that can be my retirement fund!

  • How to remove a node from nlb at runtime?

    hello,
    i need to temporally exclude a node from an nlb.
    May happen that a server is up and working but the web application i'm balancing is out of sinch with the same application in the others nodes.
    Eg. some static variables are not the same of the same static variables of other nodes, because of a timeout, a write error and so on but the server is still working.
    in this case i need to stop the server from nlb because the information in the web application is not in sinch with other nodes.
    I need to prevent users from being serverd from this out to date server, untill it will became updated, but i need to do this programmatically
    how can i do it?

    "DuoMi" <[email protected]> wrote in message
    news:gnojbf$2sg$[email protected]..
    > How to remove a node from XMLList
    >
    > I want remove the first node from XMLList
    >
    >
    > and how to get the combobox all values string:
    >
    > <data>
    > <value>2</value>
    > </date>
    > <data>
    > <value>5</value>
    > </date>
    > <data>
    > <value>8</value>
    > </date>
    >
    > I need a string whit value "2,5,8"
    >
    > thkan you.~
    I think something like
    comboBox.dataProvider..value.toString()
    will work.

  • Service nodes are greyed out

    I am trying to create a cluster between my i5 iMac and my MBP.
    I am following the instructions in the manual but when i get the the last part, after creating a cluster where I am supposed to drag service nodes in from the bottom of the Apple Qadministrator panel I can't do it because the services nodes are greyed out (see image).  Any thoughts?  Thanks all!

    Hi - I eventually figured this one out.  Took a while! 
    In the dialog where you set up the original 'service nodes' on the client machines (where you go Apple QMaster > Share this computer) there is a checkbox 'Require this service to only be used in Managed Clusters'.  It seemed bad to be so I didn't check it.  Nothing in the instructions says to.  But you must.
    Once you do this, the service lines all magically go black, and you can drag them by their header up to the box.
    It then all worked fine for me, but only for jobs loaded via compressor.
    So far no-one has confirmed the bug I noted that jobs I enter into compressor and send to a cluster work reliably, but this does not happen when from within FCPX I try to do the Export > Send to Compressor and choose a cluster.
    If you could let me know how this goes I'd be grateful.
    Chris.
    PS - I think at this stage that just about no-one in the whole world is actually trying to do any of this.  Must just be us two.  :-)

  • How to remove a node from 4 node sun cluster 3.1

    Dear All,
    We are having a four nodes in a cluster.
    Could any one please guide me, how to remove a single node from a 4 node cluster.
    what are the procedure and step's I have to follow.
    Thanks in advance.
    Veera.

    Google is pretty good at finding the right pages in our docs quickly. I tried >how to remove a node Solaris Cluster< and it came up with
    http://docs.sun.com/app/docs/doc/819-2971/gcfso?a=view
    Tim
    ---

  • How to get correct node in JTree with DISCONTIGUOUS_TREE_SELECTION mode?

    The following code creats a JTree with DISCONTIGUOUS_TREE_SELECTION mode. When select a single node, the node's name is printed correctly as expected. However, in Window environment, after select one node, if holding the ctrl key and select a different node, the program still prints out the name of the first selected node although both nodes are highlighted. Can some one tell me how to get the name of the second (i.e. the last) selected node printed?
    Thank you very much!
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    import java.io.*;
    public class TestTree extends JFrame {
    JTree tree;
    public TestTree() {
    super();
    setBounds(0,0,500,500);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    tree = new JTree();
    getContentPane().add(tree);
    TreeSelectionModel model = new DefaultTreeSelectionModel();
    model.setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
    tree.setSelectionModel(model);
    tree.addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    Object obj = tree.getLastSelectedPathComponent();
    System.out.println(obj.toString());
    public static void main(String [] args) {
    TestTree test = new TestTree();
    test.show();

    Hi!
    Try this, maybe it's what you want?
    /Smedman
    public void valueChanged(TreeSelectionEvent e)
        TreePath[] paths = tree.getSelectionPaths();
        for (int i = 0; i < paths.length; i++)
            System.out.println(paths.getLastPathComponent());

  • How to get the node value of payload

    Hi
    The null is returned when I use the following code to get the User_ID element in the payload, but there are values in the User_ID element of the payload
    Task task_test = wfSvcClient.getTaskQueryService().getTaskDetailsById(wfCtx, taskId);
    System.out.println("the payload value is " + task_test.getPayloadAsElement().getElementsByTagName("User_ID").item(0).getNodeValue());
    How to get the node value of payload ? any suggestion?
    Thanks
    Jayson

    Hi Jayson,
    Try:
    System.out.println("the payload value is " + task_test.getPayloadAsElement().getElementsByTagName("User_ID").item(0).getFirstChild().getNodeValue());
    So add the getFirstChild() call in between.
    If this works, maybe consider using JAXB to marshall the payload details to POJO's. This will make reading the payload details much easier.
    Regards, Ronald

Maybe you are looking for