JScrollPane shows the first objects

Hi to all!!
I am using a panel inside of a JScrollPanel, to every time that I press a certain button in my program a new object is included inside of this panel and consequently when surpassing the size of the panel appears the scroll bar. However, the first objects are always exhibited, because the scroll bar doesn't go down to show the last included object. It would like that was always exhibited the last object. Would anybody know as solving that??? Some exists property for JScrollPane where the scroll bar is always showing the end of the panel and not the beginning.
At once I thank,
Santin

You could try to set focus on the new object once it has been added to the panel. I think the scrollpane will scroll to make sure that the object with focus is always visible.

Similar Messages

  • Can we show the nested objects in Powershell?

    I am adding a .NET type to Powershell session using Add-Type and then creating object of that type using New-Object. This is done as follows:
    Add-Type -AssemblyName OuterObj
    $a = New-Object OuterObj
    Object of type OuterObj is successfully created. Now .NET type $a has a field named innerObj which is object of another .NET type innerObject. So I add "innerObject" .NET type and create an instance using New-Object.
    Add-Type -AssemblyName innerObject
    $b = New-Object innerObject
    Object of type innerObject is also successfully created. Now I do as follows:
    $a.innerObj = $b
    Now when I print $a, it shows something like this:
    innerObj : innerObject
    Thus it does not display the contents of innerObject by default. When I go and explore, innerObj has the fields. I know Powershell does not show the nested objects by default but instead just shows their types, but is there a way I can specify that what
    level of nesting of objects powershell should show by default? Is there something to specify to show 1 or 2 levels of nested objects?
    Any help would be highly appreciated.

    The simplest approach, if you're writing these C# classes yourself, is probably to override the class's ToString method.  That way it will just display that way by default in PowerShell, without any extra effort on the scripter's part.
    If that's not an option, then you can write PowerShell code to accomplish something similar.  Here are examples of both:
    # C# ToString version:
    Add-Type -TypeDefinition @'
    public class innerObject
    public string Property1;
    public string Property2;
    public override string ToString()
    return string.Format("Property1: {0}, Property2: {1}", Property1, Property2);
    public class OuterObj
    public innerObject innerObj;
    $a = New-Object OuterObj
    $b = New-Object innerObject -Property @{ Property1 = 'First Property'; Property2 = 'Second Property' }
    $a.innerObj = $b
    $a | Format-List
    # PowerShell version using constructed property values with
    # Format-List.
    Add-Type -TypeDefinition @'
    public class innerObject
    public string Property1;
    public string Property2;
    public class OuterObj
    public innerObject innerObj;
    $a = New-Object OuterObj
    $b = New-Object innerObject -Property @{ Property1 = 'First Property'; Property2 = 'Second Property' }
    $a.innerObj = $b
    $a | Format-List -Property @{ Label = 'innerObj'; Expression = { "Property1: $($_.innerObj.Property1), Property2: $($_.innerObj.Property2)" } }

  • In two page view preview shows the first page on its own

    In two page view preview shows the first page on its own. I have recently downloaded an ebook which has image based tutorials and the pages are in such a way that pages 3 and 4 should be seen next to each other. Preview seems to want to have pages 1 on its own therefore making this rather difficult. Any help on resolving this issue would be appreciated.

    Try selecting the first page, and then from the "Edit" menu select "insert blank page". This should put a blank page at the beginning of the document, shifting all pages down one and putting them in the order you want for your display.

  • Report from SQL Query -Excel format only show the first page

    Hi,
    I have some Reports from SQL Query. In the display options, I choose Excel as default format. The Excel documents only show the first page. If I choose HTML as default format, it shows every rows.
    Please advise on how to have a complete Excel document as HTML format does.
    Thanks a lot.
    Lina Han

    I beleive when you export Oracle reports to Excel it is the Data that is transferred along with Column Names.
    You cannot export the variables defined on the report.
    Hence you will not be able to export the Footer to excel. (Still looking into it will let you know if i find anything interesting)
    Regards,
    Bhushan Salgar

  • The constructor should be called just for the first object only.

    hello everybody!
    Please check out this code:
    class father
         father()
    class son1 extends father
         son1()
    class son2 extends father
         son2()
    public check
        public static void main( String args[] )
         son1 object1=new son1();
         son2 object2=new son2();
    In both the case for
    son1 object1=new son1();*
    son2 object2=new son2();*
    the constructor of the father class is invoked, i.e,
    father()
    +{+
    +}+
    What I want is the father constructor should be invoked only once i.e, when the first object(object1) is created and when the second object(object2) is created the father constructor should not be invoked. Is that possible in java, if yes, how?. Where should I make the changes in the given code?
    Please advice,
    Thank you.

    No, not the way you have designed it.
    What you have is
    Son1 IS A Father
    Son2 IS A Father
    Are you sure that is what you want, while the Sons will most likely end up as Fathers, as you only want the Father constructor called once it sounds like you want a
    Son1 HAS A Father.
    To do this you need to user composite relation.
    I.e.
    class Father {
       Father() {
           System.out.println( "Daddy!" );
    class Son {
      private final Father myFather;
       Father( Father myFather ) {
           this.myFather = myFather;
           System.out.println( "Son" );
    public static void main( String[] args ) {
        Father baba = new Father();
        Son jerry = new Son( baba );
        Son fred = new Son( baba );
    }

  • PDF only shows the first 4 pages

    I am trying to convert an Excel spreadsheet to .pdf format
    via Adobe's 5-copies-free converter. It seems to work at first
    blush. But when I read the .pdf version, it only shows the first 4
    pages of my Excel spreadsheet. This leaves 75% of my spreadsheet
    unconverted. What gives here????

    Hi, could you clarify, are you using acrobat.com to convert
    your excel file? What is the file size of the file and the version
    of Excel? Thanks.

  • Showing the first half of a post/zip code

    Hello,
    I am attempting to display a postcode (zip) field within crystal but only want to show the first half of it.
    Is this possible?
    Using the Left(,4) formula I managed to do this but if I have a postcode of B1 2HZ, it will display B1 2, whereas I only want to show B1
    Thanks,
    WA

    FYI
    For a split function, the space is the default split value, you need not specify it.
    For example,
    stringvar x := 'sanjay kodidine';
    split(x)[1] will give you 'sanjay' and so will split( x, ' ' )[1].

  • My i-tunes Wish List only shows the first page, it used to show all the pages- like the next page button is disconnected?

    My i-tunes Wish List only shows the first page- it used to show all the pages. Its a little like the next page button is disconnected?
    Any ideas?
    thanks
    Simon

    I would say all types. Any kind of document/ file that has multiple pages, I can't get to the next page.

  • In the mail list pane, 'From' column shows the first sender in a conversation? How to make that the sender of the last mail in the conversation (by time)?

    The first sender in a conversation can be irrelevant after a conversation grows long and I'm more interested in who's active more recently than whoever started the conversation/thread.

    @duggabe, Not actually. That would just sort "threads/conversations" by date. The From column would continue to show the first sender for each thread/conversation.

  • How to show the First and Last name of the user instead of user name

    Gurus,
    We have the full email id of the user as the portal user name. Right now we are using the "Item Attributes - Current User" to show the user name. We don't want to show this anymore. We would like to show the First and Last name of the user on the Portal page. How can i do this. Please post a reply if you have some idea about it.
    Thanks
    Raj
    ---------

    I believe this is possible using the security APIs. See http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/PLSQL/DOC/PLDOC_9026/INDEX.HTML and look for person_info (Returns user information, given a user name)
    under wwsec_api
    Suggest posting any follow-up questions to the Security forum - http://forums.oracle.com/forums/forum.jsp?forum=6

  • SSDT Schema Compare keeps showing the same objects as different..

    Hi, 
    When comparing a database to my project using Visual Studio 2012 SSDT I get several stored procedures marked as changed. The body of the procedures is identical, but two properties are highlighted as different when expanding the object:
    IsSelf (false on the DB vs true on the project) and User  (dbo on the DB, needs to be added to the project).
    The procedures have the option "with execute as self" both in the database and in the project as part of the body.
    I have not found what needs to be done so these differences are applied to the project and never appear again. Tried changing some options on the schema compare but didn't found one that help. 
    Some forum suggested dropping the objects and re-creating them but I don't want to loose the history of changes on TFS.
    Any suggestions? 

    Hi Daniel,
    Since you have posted this issue to the SSDT forum here:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/5c9c5c47-64ac-4af4-9104-c9500dc8cf52/ssdt-schema-compare-keeps-showing-the-same-objects-as-different?forum=ssdt#5c9c5c47-64ac-4af4-9104-c9500dc8cf52
    I will move this thread to the Off-topic forum, thanks for your understanding.
    Sincerely,
    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.

  • WD ABAP: Reset Table To Show the First Record.

    Hi WebDynpro ABAP Experts,
    Settings of tables allow me to display set of 10 records at a time. If i want to select , say 18th record I use paginator to select & use it. i navigate to next view , do some processing here. When I come back to the previous view, i see that table is still showing the 18th Records.  How can i make this TABLE to show the first 10 records again & we want to achieve this without going back to DB.
    or  in other words we want to call the "FIRST ROW" functionality of Paginator that JUMPS to display the first Ten Row.

    Hi Prash,
    If you used supply function for filling the data to the table means you can use the Invalidate method.
    Before leaving the first view you can call the invalidate method. The invalidate method again calls the supply function and your node as well as table getting refreshed.
    Code for Invalidation :
    node_node1 = wd_context->get_child_node( name = 'NODE1' ).
    elem_node1 = node_node1->get_element( ).
    node_node1->invalidate( ).
    Thanks.

  • How can i show the first item in the list as selected item

    Aslam o Alikum (Hi)
    Dear All
    How can i show the first item in the list as selected item when user click on the list. Right now when user click the list the list shows the last item in the list as selected or highlighted. Furthermore if the list item have large no of value and a scroll bar along with it then the list scroll to last item when user click it with mouse. I want that when user click the list item with mouse list should show the first item as highlighted.
    Take Care
    Allah Hafiz

    Hi!
    You can set list "initial value" using When-Create-Record trigger.
    I.g.
    :<Block_name>.<list_item_name> := Get_List_Element_Value('<Block_name>.<list_item_name>', 1);

  • My Bionic will only show the first of a multiple upload of pictures on Facebook?

    My Bionic will only show the first of a multiple upload of pictures on Facebook. A friend that has a Razor on Verizon is able to swipe through all the pictures of a multiple picture upload and see them all one at a time. I also find no way to Share on Facebook from the Bionic.
    Thanks
    jek

    Hi Jek!
    I usually have a bunch of pics I want to upload at once too! Are you going to the Gallery>Select Multiple>Choose Pictures>Menu>Photo Share Facebook? Do you have your Facebook account set up through the application on the device? Are you using Facebook for Android? This needs to be setup in order to share. Let us know!
    Katie H
    VZW Support
    Follow us on Twitter @VZWSupport

  • I purchased a movie on my mac and now I am trying to download it on my iPad. When I go to do it, it doesnt show me the cloud icon, itonly shows the first 3 letters of download...

    I purchased a movie on my mac and now I am trying to download it on my iPad. When I go to do it, it doesnt show me the cloud icon, itonly shows the first 3 letters of download...

    call Apple Care and contact iTunes store support

Maybe you are looking for