Get child component JScrollPane.

Hi,
Could someone please tell me how I get a reference to wordList when using the following code:
JList wordList = new JList();
wordList.setName("wordList");
JScrollPane scrollList = new JScrollPane(wordList);
JList tempList = scrollList.get?????I've tried to iterate through all scrollList components by using:
              for(int i = 0; i < scrollList.getComponentCount() - 1; i++)
                   if(!(scrollList.getComponent(i).getName() == null) &&
                       scrollList.getComponent(i).getName().equals(name))
                        return (JList)scrollList.getComponent(i);
              }But that doesn't work. Also when I print the name of all components to the console, "wordList" just isn't there.

scrollPane.getViewPort().getView();

Similar Messages

  • Getting error : Expected a child component type of UISelectItem/UISelectIte

    Hi,
    I am using facelet and third party tool for displaying Grid.
    When I am using following code then getting the error :
    "Expected a child component type of UISelectItem/UISelectItems for component type javax.faces.SelectOne"
    Code:
    <ig:column sortBy="phoneNumber">
    <f:facet name="header">
    <h:outputText value="Phone Number" />
    </f:facet>
    <h:selectOneMenu value="#{DATA_ROW.phoneNumber}" >
    <f:selectItems value="#{mylist.list1}"/>
    </h:selectOneMenu>
    </ig:column>
    Please suggest to resolve the issue.

    following is the component tree at which this error is occured:
    <HtmlSelectOneMenu disabled="false" id="_ig26" immediate="false" localValueSet="false" readonly="false" rendered="true" required="false" transient="false" valid="true">
    <UISelectItems id="_ig27" rendered="true" transient="false"/>
    </HtmlSelectOneMenu>

  • Receiving Child Component from Customer in ASEQ status

    Hello.  I am trying to figure out a way receive customer material that is in ASEQ status.  At times the customer will send in a child component instead of the father component.  When the receiver tries to receive the material in off the RMA they receive an error message that the status is not available for receipt.  At that time the end user (receiving) notifies the service department; they will dismantle the equipment and notify receiving.  The receiving department then receives in the child component.  Problem is that this is forgotten to reassemeble after the goods issue back to the customer and is not a streamline process.  I posted this issue in SD and received some replies that gave some interesting different options.  However; I am unable to get the material to the service order for billing on the first two options.  The third option gives a solution after a goods issue to run a program that will identify the child part that was not installed back to the father.  However; the customer does not find this as an ideal solution.
    Here is the link Doing a goods receipt for a customer material that is ASEQ status
    Here is what I would like to happen; but unsure how to accomplish without customizing. 
    Customer Material (Child Component) received at dock and is ASEQ status
    Inbound Delivery created and creates a Service Order in background (IW31)
    Inbound Goods receipt IE4N to service order (User exit/Badi?)
    Cost and Billing already configured for service order - this process wont change
    Outbound Delivery Created Install the Chld Component back to Father component (IE4N User Exit/Badi?)
    There has to be other companies that this happens.   How do they do it?  I am open to other suggestions for this to work.  We do have a developer however they are quite new to SAP ABAP.  Any feed back would be greatly appreciated.

    Hi,
    I have worked with same scenario
    We have sales BOM where main material number and components all have serial number same can be delivered,
    Now customer complaints one of component is faulty then we processed this component in Return and repair process.if you have same scenario then process with this
    If you have serial number for main item and not for components
    Then you can process it with return and repair process now here question is whether you want to generate serial number when component is taken return or you just want to take that component material only it depends on your serial number profile configuration.
    Kapil

  • Urgent !please help!! how to get children component in encodeBegin()?

    hello all
    how can get children component in encodeBegin()?because when encodebegin the tree is not constituted so i can't get children component,how to solve?
    please help!

    You aren't providing enough information to know for sure what is going on, but a likely problem is that you're rendering a JSP page with a new component tree for the first time, so the components are getting built as the page executes.
    In the EA3 release, this caused a problem, because encodeBegin() was called from the doStartTag() method of the JSP tag (i.e. before the child components have been created). However, in EA4 the call to encodeBegin() was moved to doEndTag(), so the child components should now be getting created already.
    In order to debug this any further, we'll need a specific example of what you're doing, and what version of JavaServer Faces you're trying it with.
    Craig

  • Relation with parent components view with child component

    Hi All,
    Can a view controller of  one component can use his child component with the component usage declaration?
    Regards
    Chandra
    Edited by: Chandra Sekhara on Jan 4, 2008 4:26 AM

    Ok got it.
    Nothing much you have to do.
    (1)Go to C1's used component and add C2 as used component.
    (2)It will give you two options manual or CreateOnDemand, if you do not need any kind of values to initiate the C2's view then choose 2nd one.
    If you need some iteration before initiating the view then use manual option.
    you need to write this statement to create the compoment:-
    wdThis.wdGet<used component name>ComponentUsage().createComponent();
    (3) Now go to the window of C1 and embed interfaceview, when you click on this you will get C2's interface view.
    (4) If you want some methods or events to be declared then declare in C2's component controller and copy it to the interface controller.
    Now run your application

  • How can i get a component from frame?

    how can i get a JTextField component from the frame?
    in my program i use button and text fields, when button is pressed the action listener performs the needed actions: it must take the values in the text fields and do something with them,
    for example i have a button - view:
    look at the comments
    public class _ActionListener_search implements ActionListener {
         private JFrame frame;
         private database dtbs;
         public _ActionListener_search(JFrame frame, database dtbs) {
              this.frame = frame;
              this.dtbs = dtbs;
         @Override
         public void actionPerformed(ActionEvent arg0) {
              if (arg0.getActionCommand().equals("view_person"))
                                            //HERE i want to get values from text fields!
                                            //i need to get JTextField component from frame and use it
    view.addActionListener(new _ActionListener_search(frame, dtbs));how can i do it?
    is this a correct way?

    Encephalopathic wrote:
    If you know that you're going to need the data held in them why not give the class that holds them a public method that returns the Strings that they hold.
    public String getTextFieldXyzText()
    return textFieldXyz.getText();
    }Then if your actionlistener has a reference to this class's object, it can simply call the above method.That's what I was thinking. The view has a method getXyzText() and the listener (or some larger, enclosing controller) knows the view.
    What I would get away from is a single, switch-board listener hooked to a 100 unrelated buttons.

  • I want to add DataGrid in my custom component as a child component,

    I want to add DataGrid in my custom component as a child component, can we ?? or should i generate HTML for table creation in my custom component's renderer ?

    I did that:
    for example, if i want to add a Button control in my custom control:
    public void encodeChildren( FacesContext context ) throws IOException
             super.encodeChildren( context );
            //createComponent raises exception.... invalid component type     
            //UIComponent field = FacesContext.getCurrentInstance().getApplication().createComponent( javax.faces.component.html.HtmlInputText.class.getName() );
             HtmlInputText input = new HtmlInputText();
            getChildren().add( input );
        public boolean getRendersChildren()
            return true;
        }Can you give me any example, i want to add child components at run time basically..

  • Issue using Get-Child-Item

    Have a function that will scan (grep) files in a folder with a certain extension.  For some reason, Get-Child-Item always returns empty / 0 files on my folder even though you can look at the folder and see files of the specified extension (*.config).
     Suspect either I am doing something wrong or permissions are somehow getting in the way.  How do you properly use Get-ChildItem
    in this context?
    function scan-Files
    param(
    [parameter(mandatory=$True)]
    [string]$folder,
    [parameter(mandatory=$True)]
    [string]$filePattern,
    [parameter(mandatory=$False)]
    [bool]$recurse = $False
    Write-Host "Folder = $folder"
    Write-Host "FilePattern = $filePattern"
    $files = Get-ChildItem -Include $filePattern -Path $folder
    #always empty for some reason
    if ($files)
    Write-Host "File count = $($files.Length)"
    }...#Invoke our function$folder = "C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\"
    $filePattern = "*.config"         
    #scan-Files -folder $folder -filePattern $filePattern -recurse:$true
    scan-Files -folder $folder -filePattern $filePattern

    The Gods of the computer demand it.  Without it you are only enumerating a folder item.  With it you are enumerating the contents of the folder.  Include only works on files that have been selected.
    Example:
    dir 'C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\*.txt' -include *.config
    dir 'C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\*.c*' -include *.config
    dir 'C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer' -filter *.config
    Try all to see how they work.
    \_(ツ)_/

  • How can I get the component LTC1060 in the multisim 10 library ?

    How can I get the component LTC1060 in the multisim 10 library ?

    ahnsei ,
    This is a switched capacitor filter - with a variety of configurations for each mode of operation based on the switching frequency.   To create a transistor level SPICE model would be unrealistic (which is probably why you haven't found one), so I would suggest looking at the datasheet and specifically, looking at each mode of operation and seeing if you can approximate the filter topology with an expression for the transfer function given in the datasheet (by calcuting based on the switching frequency).
    Based on the expression you get, you can use the Multisim component "TRANSFER_FUNCTION_BLOCK" to plug in the correct transfer function and thus approximate the behavior of the filter in the circuit.
    This transfer function can be found in the Master database -> Sources -> CONTROL_FUNCTION_BLOCKS.   There was a previous discussion giving some additional details on how to setup the transfer function block:
    http://forums.ni.com/ni/board/message?board.id=370&thread.id=3987
    Regards,
    Patrick Noonan
    Business Development Manager
    National Instruments - Electronics Workbench Group
    50 Market St. 1-A
    S. Portland, ME 04106
    Email: [email protected]
    Tel. (207) 892-9130
    Fax. (207) 892-9508 

  • Is it possible to call a function in a parent component from a child component in Flex 3?

    This is probably a very basic question but have been wondering this for a while.
    I need to call a function located in a parent component and make the call from its child component in Flex 3. Is there a way to access functions in a parent component from the child component? I know I can dispatch an event in the child and add a listener in the parent to call the function, but just wanted to know if could also directly call a parent function from a child (similar to how you can call a function in the main mxml file using Application.application). Thanks

    There are no performance issues, but it is ok if you are using the child component in only one class. Suppose if you want to use the same component as a child to some bunch of parents then i would do like the following
    public interface IParentImplementation{
         function callParentMethod();
    and the parent class should implement this 'IParentImplementation'
    usually like the following line
    public class parentClass extends Canvas implements IParentImplementation{
              public function callParentMethod():void{
         //code
    in the child  you should do something like this.
    (this.parent as IParentImplementation).callParentMethod();
    Here using the Interfaces, we re decoupling the parent and the child
    If this post answers your question or helps, please mark it as such.

  • Can`t contact to the child Component in JInternalFrame!!!

    I have made JInternalFrames, which have the child component( a TextArea).
    with JFrame set the ContentPane with JDesktopPane, now I am trying to contact to the TextArea.
    <<<<<below is sample code for original>>>>
    JInternalFrame internalFrame = desktopPane.getSelectedFrame();
    internalFrame.getTextArea().append("Test String\n");
    ------------------ Error here --------------------------------------
    InternalFrameDemo.java:191: cannot resolve symbol
    symbol : method getTextAreat()
    location: class javax.swing.JInternalFrame
                   innerFrame.getTextArea().append(txtField+"\n");
    .................................^
    1 error
    the "getTextArea()" method in [public class MyinternalFrame] is
    .....public JTextArea getTextArea(){
    .........return txtarea;
    .....} // public JTextArea txtarea = new JTextArea(10, 36);
    method getTextArea() is correct, and is internalFrame so.
    but i dont know the reason internalFrame cannot find its own method, getTextArea().
    please give me answer....
    if you want, the source is located at
    http://home.dongguk.edu/user/yong/javaBug/InternalFrameDeom.zip

    In your actionPerformed()-Method, use
    JInternalFrame innerFrame = InternalFrameDemo.desktop.getSelectedFrame();
    if (innerFrame instanceof MyInternalFrame) {
      ((MyInternalFrame)innerFrame).getTextArea().append(txtField+"\n");
    }Hope that helps,
    bye

  • Get parent component

    Hi all,
    Is there any method to get parent component (container) of a jcomponent?

    Did you think to look at the API? Some method names are obvious. Other are not. The least you can do is try. All you had to do was find any method with the word "parent" in it.

  • OLAP API to get child nodes ?

    Hi, I am new to OLAP API (Java), I spend some months in Hyperrion Essbase JAPI, now turn to Oracle but feel quite confused about a lot of concept. Here is a task in my hand that is to present the dimension tree in XML format, just like:
    <?xml version="1.0" encoding="GBK"?>
         <Member name="Market" gen="1">
              <Member name="East" gen="2">
                   <Member name="New_York" gen="3" />
                   <Member name="Boston" gen="3" />
                   <Member name="Chicago" gen="3" />
              </Member>
              <Member name="West" gen="2">
                   <Member name="San_Francisco" gen="3" />
                   <Member name="Seattle" gen="3" />
                   <Member name="Denver" gen="3" />
                   <Member name="Los_Angeles" gen="3" />
              </Member>
              <Member name="South" gen="2">
                   <Member name="Dallas" gen="3" />
                   <Member name="Houston" gen="3" />
                   <Member name="Phoenix" gen="3" />
              </Member>
         </Member>
         <Member name="Product" gen="1">
              <Member name="Audio" gen="2">
                   <Member name="Stereo" gen="3" />
    I didn't find ways on how to get child nodes for a given node, for example, how can I get East,West,South,North nodes (called "member" in Essbase) from "Market" node?

    Hi, I am new to OLAP API (Java), I spend some months in Hyperrion Essbase JAPI, now turn to Oracle but feel quite confused about a lot of concept. Here is a task in my hand that is to present the dimension tree in XML format, just like:
    <?xml version="1.0" encoding="GBK"?>
         <Member name="Market" gen="1">
              <Member name="East" gen="2">
                   <Member name="New_York" gen="3" />
                   <Member name="Boston" gen="3" />
                   <Member name="Chicago" gen="3" />
              </Member>
              <Member name="West" gen="2">
                   <Member name="San_Francisco" gen="3" />
                   <Member name="Seattle" gen="3" />
                   <Member name="Denver" gen="3" />
                   <Member name="Los_Angeles" gen="3" />
              </Member>
              <Member name="South" gen="2">
                   <Member name="Dallas" gen="3" />
                   <Member name="Houston" gen="3" />
                   <Member name="Phoenix" gen="3" />
              </Member>
         </Member>
         <Member name="Product" gen="1">
              <Member name="Audio" gen="2">
                   <Member name="Stereo" gen="3" />
    I didn't find ways on how to get child nodes for a given node, for example, how can I get East,West,South,North nodes (called "member" in Essbase) from "Market" node?

  • How to get Application Component in RSA1

    Hi Experts,
    I am not find any Application Components (RSA1) all my Data Sources are under the tree of Unsigned Nodes.
    How to get Application Component for my application, I am developing HCM application under that E-Recruiting.
    Can anyone help me regarding this.
    Regards
    Vijay

    Hi
    Whatever you have on infosource,will have same components.
    Goto RSA1 then source systems. double click on source system then right click on ypur R/3 source system then say display datasource tree.
    Chandu.

  • Is it possible to deconstruct an existing video to get its component parts?

    I made a video http://gallery.mac.com/lorna6#100193 years ago from footage taken in about 2000 and 2001. In a prior thread I mentioned having somehow losing the AUDIO component. Well, disturbingly, I went and watched the video from my old iMovie '06 and discovered that it was the video clips that were missing, not the audio. In the picture below, those black frames represent no video to be seen. I think that the exclamation mark in the yellow circle means the same thing or that something went awry.
    Here is a picture of the clips in the work space part -- the upper left quadrant, of my iMovie '06 project.
    To clarify: I forgot how I made that video because it was so long ago. I know from reading about iMovie '09 that I will probably do more videos on it because it sounds less complex but equally good for the most part.
    Someone in this forum, John, encouraged me to go over the highlights of that old video using the iMovie '09 program and I liked that idea........ so you can imagine my dismay when I returned to the program, opened it up, and now see that I lack not the audio, but the most precious video.
    Sadly, the original footage is lost due to external hard drive crashes. I might have kept a memory chip that had it but after all these years and me being disorganized, I do not know where it is.
    Is there a way that I can use the iMovie 06 video that you see at my Mobile Me Gallery to extract the clips and the audio? Or if not the audio, then at least all of the video clips? *Is it possible to deconstruct an existing video to get its component parts?*
    ~L

    I have had a series of iMovie applications but I used them all too infrequently, partly out of Fear of Trying. Now with the iMovie '09 out, I think I can do it. Yes, I know that I made the Cheyenne video with a previous app, but I found it confusing at times, and look now and see how I bollixed it up, losing some clips in ways I do not know.
    You (John C.) wrote:
    That's a miniDV camera, which uses tape. It's very similar to my earlier camera, as listed in my details below - the Sony DCR-TRV20. I now mainly use a high definition AVCHD Sony HDR-SR7 - that's why I've switched from iMovie HD 6 to iMovie '09.
    .......... Lorna says ...........................
    John, I call that a Pandoa's Box paragraph up there! First of all, I am left thinking that the type of videocam that I use will determine which kind of iMovie application I use. Yes? Can I assume that since you with your Sony DC-TRV20 have high definition AVCHD, then my DC-TRV11 might also have it.
    I have my user manual in front of me and looked in the Index for both HD and AVC (what is the C in AVC?), and neither is listed. I cannot find anywhere in the manual that tells whether my mini digital TRV11 also has high def AVDHC.
    How important is that in using the new iMovie '09? If my Sony does not have it, then does that simply mean that I cannot make use of the HD capability of iMovie '09?
    All of this would have been a moot question because earlier I had decided to just use the video component in my Canon digital camera, but then getting my Sony mini digital out and seeing and touching it, and remembering it worked, I began thinking that maybe I should use the camera video for when I am away from home and the Sony for when I am here at home.
    There is one thing I would say about HD: It is a memory gobbler, and if you make videos for YouTube, you might feel the constraints within that platform. It might be better for showing things to family and friends on your home tv with no megabyte or time restrictions.
    You/John C. continued writing:
    Your thoughts on archiving and backup sound sensible Lorna. I must admit, I don't backup as often as I should. I've been using the old Apple Backup program, but am considering moving to Time Machine, with an appropriate hard drive to match - maybe Time Capsule like you are using.
    .......... Lorna says ...........................
    John,if you decide to get Time Capsule to work wirelessly and continuously with Time Machine, then I suggest you consider a 2 terabyte capacity. I began using the Apple Back up but found it confusing and ultimately insufficient.
    You/John C continued writing:
    Currently (as listed below), I have 4 external hard drives - 3 are FireWire 400 and the largest one is FW 800. None of these has ever given me a problem (touch wood) - they are LaCie 120GB (not your favourite!), and 3 Maxtor's - 250GB, 300GB and 1TB. The 1TB drive is RAID enabled, having two 500GB drives in the enclosure, which I'm effectively using as one drive, that is, one is not a mirror of the other - so if one fails I've lost all the data! A good reason for using Time Machine.
    .......... Lorna says ...........................
    John I still am not clear on what RAID is and I guess I will Google it to find out. What is the purpose of having two separate drives housed in a shell? Is it about saving space? Or is it about ports? Or what?
    Of course, if you get the one that was mentioned by someone earlier, than it would warn you when something is about to go wrong and you could act pre-emptively. But that was suggested for a business or a pro, neither of which I am.
    You/John C wrote:
    As my HD camera is a hard drive model (60GB), I archive the footage to the Maxtor 1TB drive, using iMovie's "Archive All" feature. From there, it's easy to import clips into an Event, which is also stored on the Maxtor - so double jeopardy! I had better get cracking on updating my backup strategy
    .......... Lorna says ...........................
    I am lost. What do you mean, your HC camera is a hard drive model? And what you wrote sounds like something important that I should understand more precisely. I am thinking that the salesguy at Best Buy was right: I should get yet another hard drive in which to store specifically and only my homemade video stuff, my iTunes, and my photographs. I don't know how I would do that, though, if I want them to be stored ALSO IN MY 2TERABYTE SEAGATE as a double archive.
    -L
    John

Maybe you are looking for

  • R/3 LIS and BW

    Hi All, We are upgrading our SAP R/3 3.1I to 4.6C. For the reporting part, we want to use BW (release 3.1). Can you advice: 1. Does BW(especially in Logistics area) cover the LIS functions in R/3? 2. What need to install in R/3 3.1, so that BW3.1 can

  • Bug: Project List Items Overprint One Another, Any Tips to Fix?

    From time to time, following import of a project, all the folders and projects in the "All Projects" pane overprint one another on the same line. The "Library" displays okay; the newly imported project name displays okay, then after a half dozen othe

  • Batch: Open Bridge 'Stacks' as layers in PS CS5 + run action. Is this possible with script??

    I posted this topic a couple of days ago - I didn't know about this forum/group so the thread appears in Photoshop Scripting and Bridge Windows. I haven't found a solution on those forums - can any one here help? http://forums.adobe.com/thread/880777

  • Mapping in Load rules.

    Hi All, I have a situation where I have to maintain a mapping for the product codes in my Load rule. And this is no small list of products that I have to manually updated the mapping to my load rule.. It is huge as hell. Now, is there any way that I

  • Trouble deploying Adobe Reader 11

    I keep getting a failure with the following error when trying to deploy Adobe Reader 11.  The program for advertisement "RHP2022B has failed because download of the content "RHP00069" - "install reader" has failed. The download failed because the con