Problem trying to create a list of JTrees

Hi,
my problem is that I am attempting to create a Jlist of JTrees. I am not sure if Swing supports this or not - I am at the stage where the JList of JTrees is rendering fine. The problem is that I cannot select the other trees in the list.
I tried to add a mouse listener to my JList to work around this but this does not seem to work:
addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
int index = locationToIndex(e.getPoint());
if (index != -1) {
JTree tree = (JTree) getModel().getElementAt(index);
TreePath selPath = tree.getPathForLocation(e.getX(), e.getY());
tree.setSelectionPath(selPath);
repaint();
The tree is detected by the mouse listener no problem, but I can't seem to set the selected node (variable selPath in code above returns null)
Any ideas on this greatly appreciated - even to say if this is possible or not!
Regards, Joe.

You have to copy the weblogic.jar to jdev_home\jdev\lib\ext and restart jdev. You also have to point the connection to the weblogic.jar in the \bea\wlserver6.1\lib directory. That worked for me. Good luck.

Similar Messages

  • I'm trying to create a list using CustomSchemalXml property in ListCreationInformation object in CSOM. But, the code throws an error "Invalid List Schema".

    I'm trying to create a list using CustomSchemalXml  property in ListCreationInformation object in CSOM. But, the code throws an error "Invalid List Schema". Any pointers on how to set the CustomSchemalXml property?
    Sri

    Hi Lakshmanan,
    Thanks for your reply.
    I checked this post and there was no solution to the problem there. I undersand we cannot create a list based on custom template in CSOM, but what I'm looking for is how of form xml and set it to CustomSchemalXml
     property, so that everytime when I want to create a list with similar content types and stuff, I can just set the
    CustomSchemalXml  property. 
    Sri

  • Problem trying to create FIELD SYMBOLS in BADI.

    Hi guys!
    I'm trying to create a Field Symbol in method CHECK of BADI me_process_req_cust (well, I'm working on a Z implementation).
    The problem is that I'm trying to create a FIELD SYMBOL and when I check the syntaxsis, I receive the next error:
    Clase ZCL_IM_MM_PURREQ_UPDATE,Método IF_EX_ME_PROCESS_REQ_CUST~CHECK
    Names may only consist of the characters "A-Z", "0-9" and "_". In
    addition, they may not begin with a number.
    This is the code:
            FIELD-SYMBOLS: <sy-mereq> TYPE mereq3328-afnam.
    Any idea????
    Thanks in advance!
    Bet

    Hi Silveria,
    The problem lies in
    FIELD-SYMBOLS: <sy-mereq> TYPE mereq3328-afnam.
    instead of that it should be something like this
    FIELD-SYMBOLS: <sy_mereq> TYPE mereq3328-afnam.
    With your code you will be getting a syntax error saying sy-mereq is not defined,as it will be looking for the mereq in the system fields.
    Regards
    Abhinab Mishra

  • Problems trying to create scrollable text in InDesign CC

    I'm making an interactive presentation in InDesign. Im trying to create some scrollable text. i didn't know how to do that in CC, so I looked up some videos over the web and learned I needed to use the "Folio Builder" or the "Overlay panel". i never was able to find the latter and the Folio Builder gives me this message: "A software update is required to use Digital Publishing Suite. Please go to the Help menu and select Updates to get the required software." My software is already up-to-date (at least that's what the Adobe Application Manager tells me). Is this happening because I'm using a trial version? I'm planning to buy the Creative Cloud package but first I need to know it's worthy. Thanks for your help!

    You are most likely looking at some very old videos. As it happens my DPS
    course was just released on lynda.com:
    http://boblevine.us/my-first-lynda-com-title-adobe-digital-publishing-suite-
    essential-training-is-live/
    There's a link to a one week trial there if you don't have a subscription.

  • Re: Problems trying to create jrepository file

    Leonardo,
    Why do you need to create a new repository file ?
    Can't you just make a copy of the example one that comes with Jolt (/tuxedo/udataobj/jolt/jrepository)
    Joe
    "Leonardo Pedrosa" <[email protected]> wrote:
    >
    Hi, I´m trying to create Jolt repository and I am receiving the following
    exception:
    Exception in thread "main" bea.jolt.ServiceException: Data conversion
    failed;
    check log file
    at bea.jolt.JoltRemoteService.decodeCALL(JoltRemoteService.java:400)
    at bea.jolt.JoltRemoteService.call(JoltRemoteService.java:307)
    at bea.joltadm.JSvcPkgTbl.initTable(jbld.java:776)
    at bea.joltadm.JSvcPkgTbl.<init>(jbld.java:748)
    at bea.joltadm.JBldDefRec.<init>(jbld.java:111)
    at bea.joltadm.jbld.main(jbld.java:703)
    O got this exception by the two ways, creating jrepository through juliet
    and
    even so through bea.joltadm.jbld class.
    Does anyone could help me?
    thankful.
    Leonardo

    The reason for creating a new repository file is to incorporate all the new services which are included in multiple servers which comprise the application.

  • Problems trying to create jrepository file

    Hi, I´m trying to create Jolt repository and I am receiving the following exception:
    Exception in thread "main" bea.jolt.ServiceException: Data conversion failed;
    check log file
    at bea.jolt.JoltRemoteService.decodeCALL(JoltRemoteService.java:400)
    at bea.jolt.JoltRemoteService.call(JoltRemoteService.java:307)
    at bea.joltadm.JSvcPkgTbl.initTable(jbld.java:776)
    at bea.joltadm.JSvcPkgTbl.<init>(jbld.java:748)
    at bea.joltadm.JBldDefRec.<init>(jbld.java:111)
    at bea.joltadm.jbld.main(jbld.java:703)
    O got this exception by the two ways, creating jrepository through juliet and
    even so through bea.joltadm.jbld class.
    Does anyone could help me?
    thankful.
    Leonardo

    The reason for creating a new repository file is to incorporate all the new services which are included in multiple servers which comprise the application.

  • Problem trying to create graphic style...

    I'm trying to create a nave menu and in doing so, create a single graphic style that can achieve my end goal. I can get what I want by using a seperate shape, but that defeats the purpose of the single graphic style. I thought I could achieve the look using an effect under
    Effect>Pathfinder
    But that doesn't get the result I expected. Below you can see both what the graphic style currently looks like, and what I want to add to it (the gloss) hopefully within the same graphic style. Is this possible?

    Try this:
    https://dl.dropboxusercontent.com/u/3910250/button.ai

  • Problem trying to create an itunes account

    Hello. i recently downloaded itunes for my pc and i wanted to create an itunes account so i got on itunes and when i clicked on create account i got a message saying "We could not complete your itunes store request. The requested resource was not found" i've noticed other users are having the same problem. i didn't see any soultions though and the ones i heard i tried. i have norton internet security on my pc but i turned it off thinking maybe that could stop itunes from working but after i did that it is still not working. i tried configuring windows firewall to see if it was blocking itunes but it is on the allow list so i'm not sure what else to do. does anyone know what i could to fix this?

    idk what happened but now it's fine lol sorry

  • Swc / accordion problem, trying to create a 3-level dynamic nav

    Hi!
    First time poster, long-time troller. I've been working on a
    CMS system and having a little trouble creating a three level
    navigation, that's uses the functionality of the accordion
    component, but styled with dynamically loaded fonts.
    I'm using the "flexlibs" swc (and was playing with degrafa,
    but think it's a little much for what I'm trying to do). What I'm
    doing is:
    - pulling the three level navigation (1st level - brand, 2nd
    - campaign, 3rd - job),
    - a VBOX holds the entire nav, the first level is an
    accordion with:
    -- a header (that somehow draws the data (this is my first
    question) to put in a swc I created, in a Header.mxml component.);
    and a
    -- repeater that does the same thing for "campaign" (2nd
    level): vbox, vaccordion (header + repeater), that holds:
    -- a swc component, called "JobComp" (I've been playing
    swapping it with a flash-made swc but can't seem to figure out how
    to pass initialization variables in the constructor)
    I used "swc"'s for the nav components, because the fonts are
    "AGBuchBQ-Bold" and I thought it'd be easier this way.
    I guess my question(s) are:
    1. How do I pass a variable in the constructor of a swc
    Component?
    2. Am I doing this right? Or should I construct the
    navigation ALL in flash, export as a swc, and just pass in the xml
    to the flash component (which means I need to understand #1...)
    3. Is there a way to load / set font in the accordion / list
    components that are not the basic fonts? If I can style it all in
    the .css, that'd be really really helpful, I think, since it's 90%
    there.
    Thanks again, for any input,
    Dom

    My bad i didn't see that you want to create a swc.
    Well, as i said earlier, for me, the only way to pass
    parameter to a constructor (i suppose you mean like new Label("my
    title")) is using actionscript.
    What you can do if you want to create an MXML file is
    creating public parameters (or getters) in the script tag and use
    the [bindable]. As far as i understood Flex, properties in an MXML
    will have no action on your component if you don't use this tag.
    You can as well create a method that will apply these
    parameter after its creation, example :
    You create a MyComponent class which has different properties
    like displaySubComponent and maximumValue. In your class, you
    create a method called "applyParameters" which will do something to
    initialize it.
    Then you call use it like this:
    <c:MyComponent id="a_component" displaySubComponent=[ A,
    B, D] maximumValue=5
    onCreationComplete={a_component.applyParameters()} />
    And yes, i thought
    "dataProvider="{repeatCampaign.currentItem..job }" was strange but
    it's good to know that we can do that ;)
    Hope, i was understandable ^^"

  • Problem trying to create and manage external tables

    Hello guys,
    I am having problems having created my external tables trying to select from them. I created the table thus:
    create table job_ext
    (job_id number(3),
    FUNCTION varchar2(30) )
    organization external (type oracle_datapump default directory test_dir
    access parameters (records delimited by newline fields delimited by "~" (job_id number(3) ,
    FUNCTION varchar2(30) ) )
    location ('testdump.lst')
    but on running select * from job_ext, I get the error
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "identifier": expecting one of: "logfile, nologfile, version" etc..
    KUP-01008: the bad identifier was: records
    KUP-01007: at line 1 column 1
    ORA-06512: at "SYS.ORACLE_DATAPUMP", line 19
    ORA-06512: at line 1
    what am I not doing right.
    Secondly, I wish to ask if an directory object is created, will it be visible on the OS file system?? I am using Oracle 10g complete reference for study but it does not throw light on this.
    thanks

    Hi,
    It looks like you may need to grant permissions to the target directory.
    The ORA-29913 error can also happen in external tables when you don't grant read and write permissions to the directory:
    CREATE OR REPLACE DIRECTORY extdir AS '/u01/app/oracle./extdir';
    GRANT READ ON DIRECTORY extdir TO myowner;
    GRANT WRITE ON DIRECTORY extdir TO myowner;
    Also, see BUG 5172459 (MetaLink Note:373168.1)
    The problem is that the message file for external tables oin not the English version. These steps will address the issue:
    1. cd $ORACLE_HOME/rdbms/mesg
    2. cp KUP<lang>.msb KUP<lang>.msb.BAK
    3. cp kupus.msb KUP<lang>.msb
    http://www.dba-oracle.com/t_ora_29913_external_table_error.htm

  • Problem trying to create user in iManager

    Hello all, When I try to create a user in iManager, I do not have the
    context of user in my tree. Going from the examples in the training doc, do
    I need to create this context from scratch ?
    Peter

    Pwmerritt,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Problem trying to create a connection to Weblogic

    Hello,
    I desperately try to create a connection to a weblogic 6.1sp2 server in JDeveloper.
    The Weblogic server is located on my computer. I just try to connect to the defaultserver running on my PC.
    Each time I get a message when I try to test the connection :
    "Cannot instanciate Webloci.jndi.WLinitialcontextfactory"
    Any help or suggestionn is welcome...
    Thank!
    Roland

    You have to copy the weblogic.jar to jdev_home\jdev\lib\ext and restart jdev. You also have to point the connection to the weblogic.jar in the \bea\wlserver6.1\lib directory. That worked for me. Good luck.

  • Cannot see the List region in when trying to create it

    Hi Guys,
    I am trying to create the List region but cannot access it in my application when I try to create a region.
    In Sample Database Application I can easiily do that,
    http://i.imgur.com/26ASO.png
    but in my application the option is missing.
    http://i.imgur.com/oGiJQ.png
    I've tried switching to 21. Scarlet theme but no luck as well. Unsure what I have to do to create a List region.
    APEX 4.1.1

    Hi,
    First go to shared components and create a list entry. Now go to create wizard in any page and you should see the List item.

  • Creating distribution lists in SAP CRM 5.0 business workplace

    Hi Experts,
    We have CRM 5.0 and I have tried to create distribution lists for
    mailsending.
    After defining a name and a folder (that is then created) for the
    list the recipient list insertion is a following task.
    I can search for partners of different type by F4 help but no
    matter the type of the partner searched - the type that is
    automatically entered to the lists recipents table is "shared
    distribution list". even though the desired type is among others
    in a list other values cannot be selected.
    Please help, is this a setting that can be undone or what might
    be a problem in the procedure that i use in creating a list?
    has anyone else had similar problems?
    Thank You so much,

    i have received an answer from SAP:
    "The reason for the error is a wrong entry in table TBCS_RECIP. To removethis entry, please use the report which is entered in the description
    of note 735795 or delete the wrong entry direct on table TBCS_RECIP.
    After the run of the report or the deletion on table TBCS_RECIP you willnot find further the selection option 'Business Partner' on the F4 help."
    The entry was removed and for Lists business partners cannot be selected at all - as a standard. really sad endeed.

  • Creating a list of names and putting them into a computer file

    I am trying to create a list of names which is generated by a swf file that contains buttons representing letters of the alphabet. The user generates a name by clicking on the letter buttons until the letters of the name have been spelled out and then clicking on a “Submit” button to add each name to the list. The names are generated inside the swf file but I want the list of names to be deposited in a file within a folder of the computer and remain there as a permanent record after the swf file has been closed. I can do the Actionscript 3 programming associated with the letter buttons but I would like to know how to send the names to the computer file.

    Here is some simplified code which illustrates the problem I am having. I have four buttons A2_btn thru D2_btn. These buttons can be clicked to put a sequence of letters into the input text window called requestedItem_txt. The button called submit_btn can be clicked to put the sequence of letters (preceded with a comma) into the window called requestedItemList_txt and append the sequence of letters (and comma) to whatever is already in the window. This part is working satisfactorily. I also want to write the contents of the requestedItemList_txt window into a file on my computer as a permanent record each time the submit_btn button is clicked. I get an error message for the flush statement and I don’t get any file written on my computer. This problem completely baffles me so I would appreciate any help you can provide.
    A2_btn.addEventListener(MouseEvent.CLICK, btnA2Press);
    function btnA2Press(event:MouseEvent):void
        requestedItem_txt.appendText("a");
    B2_btn.addEventListener(MouseEvent.CLICK, btnB2Press);
    function btnB2Press(event:MouseEvent):void
        requestedItem_txt.appendText("b");   
    C2_btn.addEventListener(MouseEvent.CLICK, btnC2Press);
    function btnC2Press(event:MouseEvent):void
        requestedItem_txt.appendText("c");
    D2_btn.addEventListener(MouseEvent.CLICK, btnD2Press);
    function btnD2Press(event:MouseEvent):void
        requestedItem_txt.appendText("d");
    var sharedOb:SharedObject = SharedObject.getLocal("savedData");
    var flushResult:Object = sharedOb.flush();
    submit_btn.addEventListener(MouseEvent.CLICK, submit_btnPress);
    function submit_btnPress(event:MouseEvent):void
        requestedItemList_txt.appendText(","+(requestedItem_txt.text));
        requestedItem_txt.text = ("");
        SharedObject.getLocal("savedData");
        trace(SharedObject.getLocal("savedData"));
        flush("requestedItemList_txt.text");
    stop();

Maybe you are looking for