How to set a JScrollPane always display the last line?

I have put a JTextArea in a JScrollPane.
Whenever I append a new line of sentence to the JTextArea, the JScrollPane only shorten the vertical scroll bar.
Is there any command that can scroll down to the last line whenever I append a new sentence to the JTextArea?

I have tried to add the line you shown, but it can just show the second last line. It cannot scroll down to the last line.
e.g. I have these message:
AAA
BBB
CCC
If the message board can only show 3 lines and I enter one more line "DDD", then the last line will be shown is CCC. I need to scroll down a bit more myself to see DDD. If I scroll to the top and enter another line"EEE", it will scroll down to show "DDD" but not "EEE".

Similar Messages

  • How come when I open Safari it does not open to my set homepage it always opens the last page I was on

    how come when I open Safari it does not open to my set homepage it always opens the last page I was on

    Check Safari/Preferences/General/Safari opens with -try setting it to new window.

  • How to set a calendar reminder for the last Friday of every month?

    I need to set a reminder to go off on the Monday following the last Friday of every month. I could settle for a reminder on the last Friday of every month and then delay the reminder by a couple of days, but I'm not sure where to start. Does anyone know how to do this?

    I found an App that solved my problem called "Calendar Tools"
    It is a plug in that allows you to have custom repeat rules.
    Check it out!

  • How to set scrolledPane/textArea to display last lines?

    I have a JTextArea in a JScrollPane.
    I'm adding to the text area and the information scrolls off the visible portion of the screen.
    How can I force the scrolling to always display the last lines at the bottom of the screen when they are added?
    Thanks.

    See [url http://www.camick.com/java/blog.html?name=text-area-scrolling]Text Area Scrolling

  • How do I set the finder column view to always display the "thin" column edges?

    Sometimes finder switches to display thick column edges. These screen shots were taken 5 min apart, after a restart.  I would love to know to to make sure it always displays the thin version.
    Side note: does anyone know how to open new columns that automatically resize to fit the largest file name.....?    Having to constantly resize columns is really irritating.

    it can not display what has not been downloaded, for them to be the same I assume you have chosen to leave messages on the server.
    Date: is set by the sender and has nothing to do with a delivery date in Thunderbird. If Thunderbird is displaying the date the message arrived in Thunderbird, what is in the date: header?
    Received: is a series of transmission points and following the instructions below will display the latest.
    * Select Tools/Options from the main menu.
    * Click Config Editor.
    * If a warning displays, click “I’ll be careful, I promise!”.
    * Locate the mailnews.customDBHeaders preference, e.g. by typing “dbh” in the Filter field. Double click it, or select and press Enter.
    * If the preference was not set previously, type “Received” and click OK. If some extension has already populated the preference, add “ Received” to the end of the list of headers, separating it with space.
    * Close the Config Editor and restart Thunderbird.

  • How to sort (to display the last comment) a comment in a web template

    Hi,
    I need your help regarding how to display the last comment of a report in a web template, comments managed via the content module com.sap.ip.bi.rig.DocumentContent.
    Summary of the customer need :
    the customer wants to manage comments for a report. The customer does not want to comment each line of a report but  comments in a report as a whole, we want to display the last comment (among all comments) in the web template.
    What I have done so far :
    I have implemented the paper "Maintaining and Printing Comment for Each Line in the Report" ( http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a046a839-f000-2d10-67af-b53d73894a75), and I have adjusted it to my needs : now I can enter several comments for a report, I can display them via the context menu.
    BW displays only one comment within a web template via Document Content moduleu201D (com.sap.ip.bi.rig.DocumentContent).
    The documents are created under KM, and I can saw them (as administrator) in the KM repository, under the folder /bw_document/InfoProviderData ... OK.
    What I can't get through :
    I want the web template to display the last comment (not the first)  but the web template stills display the first comment. We think it's a sorting issue or a display option (The web template always display the first comment created)
    We tried to maintain portal and KM customizing without success (in the portal System Admin -> System Config -> KM -> CM -> UI -> Settings -> Collection Renderer Setting for example). We think we can get through by java script coding in the web template, but we don't know how to do it. Maybe we have not reach the right option in KM customizing ?
    have you ideas to resolve this issue ?
    Thanks in advance,
    Laurent

    We have found a work around solution, by managing IP functions in the web template... to force BW to sort the items as we want.

  • How to set up automatic payment for the purchase order

    Hi, All,
    I have one question how to set up automatically payment for the Rent Office purchase Order?
    There is the requirement from the client. They want to create one kind of purchase order for the Office Rent, then pay the fees in the certain time of every month to the vendor for the rent fees without any invoice. Whatu2019s the normal solution for this kind of purchase order? Is it ERS? Or something else?
    Please give me the details and business flow. Also please tell me how to setup in the SAP and T-code.
    Thanks in advance

    Either you can set up ERS or you can pay directly from the FI side.
    Prerequisites
    Evaluated receipt settlement must be flagged in the purchase order item.
    The vendor must be flagged as being subject to ERS in the vendor master record.
    The goods receipt must refer to a purchase order.
    Goods-receipt-based Invoice Verification must be defined for the purchase order item.
    A tax code must have been maintained in the purchase order item.
    The order price of the materials may not be an estimated price.
    If you flag a vendor as being subject to ERS, the system sets the ERS indicator as a default in each item when you create a purchase order for the vendor. You can prevent this happening for certain vendors by flagging the info record for the material and the vendor as not being subject to ERS.
    In Purchasing, you can delete the default ERS indicator in a purchase order item.
    Choose Logistics Invoice Verification ® Automatic Settlement ® Evaluated Receipt Settlement (ERS).
    The selection screen appears.
    You can use the following criteria to narrow down selection of the transactions to be settled:
    Company code
    Plant
    Goods receipt posting date
    Goods receipt document
    Fiscal year of the goods receipt
    Vendor
    Purchase order and order item
    You can define the selection criteria for the invoice documents by:
    Delivery
    Purchase order
    Purchase order item
    Goods receipt document
    Credit memo
    Invoice
    Currency
    Choose  Execute.
    The system issues a log for Evaluated Receipt Settlement, which displays the following:
    Settled
    In line with your selection criteria, the system displays all the order items that were settled (or if you are working in test mode, which would have been settled).
    Could not be settled
    In line with your selection criteria, the system displays all order items for which ERS is defined but could not be settled. It also lists the reasons.
    If the system reports being unable to invoice a transaction, you should exclude the transaction from ERS to avoid it being included in the log the next time ERS is run.
    Select the item and choose Exclude from ERS.
    The system also generates and possibly sends a message to inform the vendor(s) about the transaction settled, depending on the settings in Customizing.
    You can display the following environment information for the order items selected. To do this, choose Goto ®:
    Display purchase order
    Display invoice
    Display material document
    Display long text

  • Why does the iphone 5 always display the wrong time

    why does the iphone 5 always display the wrong time

    I had similar problem. My iPhone was always about 3 minutes faster than the correct time here in the UK which I found to be very irritating. It just came to a head because here in the UK we have just changed from British Summer Time back to standard GMT. This actually worked automatically except that the iPhone time still showed it to be about 3 minutes faster than GMT. However I have now cured the problem (almost) by going to
         Settings/General/ Date & Time/ and then selected the "Set Automatically" button.
    The clock then immediately jumped back 3 minutes and now the iPhone time is only about 10 seconds slow which is good enough for me.

  • How can I get iTunes to display the tracks from a CD in their original (album) order?

    To be absolutely honest, I don't really understand what this box is for, so I shall just use it to repeat and expand on my question. (I have already sent a "Feedback" comment on the same topic).
    How can I get iTunes to display the tracks from a CD in their original (album) order?
    It seems to me that there is something very basic wrong with the way iTunes handles CD Tracks.
    Professionally produced CD tracks are seldom if ever in a randomised order. Why then does iTunes seem unable to display the tracks in the order they appear on the original CD source - whether from a personally owned CD or from a download from the iTunes Store?
    Some music demands a specific, non-alphabetic sequence in order to make sense. Why does it seem that iTunes only offers Alphabetic, or reverse alphabetic order - both of which make a nonsense of the original, often intended order of tracks?
    Why not replace the so-called "cover-art" in the bottom left hand corner if the iTunes window - which, while it may look attractive to some, gives the barest of information concerning the original disc, with a list of the original CD tracks in their original order, so that the user can easily reestablish the order in which they should be played.
    As I would expect legibility might be a problem with doing this, why could not the original contents, (in their original order), at least, be displayed when the "cover art" is double clicked-on - the result of which at present gives me an enlarged version of the "Cover Art". While on the subject of the contents of the source disc, what about all the album notes which someone takes trouble to write in order to increase the appreciation of the music on the CD and the listener's general background knowledge of the artists involved. Such notes, it seems to me, have considerable intrinsic value in their own account. I would, I think, normally be prepared to buy such "Sleeve notes" - so long as a "taster" was supplied (as it is for the music) - for something like the cost of a single 'Tune" on iTunes.
    These two aspects let Apple iTunes down enormously, in my opinion. I think that by chopping even quite protracted sequences of music up into bits does no one any favours - except perhaps Apple's already quite substantial bank balance. People have to be aware that two and a half, to three and a half minutes is a very short time to develop a piece of worthwhile music, and that there are many, many composers, not all of whom are alive today who have written music that huge masses of mankind value for the enrichment of their lives and the human condition in general.
    Please make the viewing of iTunes tracks in their correct order by default possible. By all means have the alphabetical variations available as offering a different approach to the music, but not the sole approach to it - PLEASE.
    Frustratedly yours
    Alan Whitaker
    PS I work at my old 24" iMac Intel Core 2 machine which runs OS "Tiger" - because it is more beautiful to look at, the screen is more pleasant to work on, and because, in some ways it is more capable (it will run FreeHand MX without needing a "patch"), than my more recent 21.5" which runs "Snow Leopard". (I don't find it that much slower, either).

    Dear Mike
    Thanks for the support. I am utterly amazed that after all the hype about how good iTunes is that it cannot play a downloaded CD in the correct order, and that what that order should be is not available directly from within one's own iTunes installation. (I know that one can go back to the iTunes Store to check what the order should be, but having downloaded the tracks surely iTunes is clever enough to retrieve this important information.
    My iTunes to differ from yours in that I have also noticed that it seems unable to download copies of my "talking books" in the correct order either. But in my case it downloads them - from a CD - in order, but with the first track downloaded first - so that it appears at the bottom of the column of tracks so that it would get played last! (At least this is, while being inexplicable, a relatively "logical" bit of blundering and because of this is relatively easy to put right!).
    I like many genres of music, some of which are not really programmed except perhaps by the artist performing them. I know that Frank Sinatra was very careful to programme his album songs to obtain a particular effect and in relation to the keys of the music. iTunes presumes to know better.
    Film scores may be totally randomly put together, in some cases, but in others the order is vital to one's appreciation of the music as a whole and how it relates to the plot of the film.
    In symphonic music most works are divided into sections and are conceived by the composer that way. Some individual sections may gain a life of their own if played separately, but they are never complete in the sense that the composer envisaged them without being placed in their proper context.
    Opera and probably most choral music too, is similar except that the words may well become meaningless if the order is changed at the whim of a piece of ill-written computer code, while ballet music has to be heard totally within its sequential context or it becomes meaningless.
    Finally, I would venture that iTunes, by jumbling up the order of the tracks as recorded on a CD, does an immense disservice, not only to the music on a particular CD, but to music in general, by expressing everything in terms of "Songs" - which it seems to interpret as stand-alone items of between 2 and 4 minutes whatever the genre. Even the way the iTunes publicity speaks of how many "songs" it can store instead of how many minutes or hours of recorded sound. This has to be another brick in the wall of "dumming-down" of people's expectations, and the shortening of their attention spans.
    I don't know about anyone else, but I feel betrayed by Apple over this. Perhaps the look, feel and general presentation of an item are not the most desirable features of a consumer product. Maybe it should be judged more on it fitness for the purpose for which it was sold. There is one other possibility - that Apple are trying to redefine "Music" - and that everything that lasts longer than about 3.5 minutes or is in the form of what could for want of a better term be called symphonic in the broadest sense is something else - not "Music" within Apple's new definition, at all!
    Well that's off my chest! now I can get down to creating some sort of order in my iTunes Libraries, knowing that I have to reconsult all the sources in order to confirm the source playing order.
    Anyway thanks again. At least I know that it is not just me
    alanfromthatcham

  • How to set a variable value on the BPC Data Manager

    Hello BPC Experts,
    I'm creating a BPC10 NW version demo environment for our prospect customer.
    I made a data manager to import  BW data into BPC model from BW cube.
    I need to import just one month data into BPC from the BW cube that has more than one month data.
    When I run the data package manually, I can select a member of the time dimension prompt and I can import specific month data I want.
    But, in a case where the program (data manager) runs by JOB monthly,
    I can't select a member of the time dimension prompt manually.
    So I want to know how to set a  variable value to the time dimension prompt from a system date etc. automatically.
    Are there any way to set a variable value to the time dimension prompt on the data manager automatically from a system date?
    Or, do you have any other solution to import just one month data into BPC from the BW cube that has more than one month data  by the data manager running on JOB ?
    (without selecting a member of the time dimension prompt of the data package manually)
    Thanks in advance,
    Keisuke

    Hi Gersh
    Sorry for my late reply and thanks for your helpful information.
    I tried the second way of your information and I could configure it.  
    And I 'll try first way of your information.
    Regards,
    Keisuke

  • How to set Multi User Environment in the weblogic 5.1 and 6.1 server..(Urgently)

    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

    Hi. A JDBC connection pool is a set of identical, interchangeable, pre-made
    connections, and the controls to make sure only one user uses a particular
    connection at any one time. If you want to have different DBMS users, you can
    have a separate pool for each DBMS user, which may contain as many or few
    connections as you want. Some applications has a pool for the accounting
    applications, and another for the sales applications etc. Some do have a
    separate pool for john, jane, joe etc, each with one connection. Pools
    can be created and destroyed dynamically using the dynamic pool API.
    Joe
    softstar wrote:
    >
    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

  • The calendar sync is recently not working correctly, not display "All events" but it only displays the last six months for my individual entries. My repeating entires do go back further, though. How do I fix?

    I have an iPad 5.1.1. The calendar sync has started to not work correctly. I have it checked "All events," but it only displays the last two months for my individual entries. My repeating entires do go back further, though. How do I fix?

    HI Jason269. Thanks for your reply, however I wrote that I already have "All events" checked. If All Events is checked and it doesn't diaplay all events, how do I fix? It seems this is a common issue, as I have read many others on here state the same problem.
    I believe my problem occurred when I synced my iMac calendar to my iPad calendar using yahoo. Yesterday, I unsynced them on my iMac controls. When I checked my iPad calendar, all of my old entries reappeared - but only for five seconds and disappeared again. So, the data is saved and still there but cannot be displayed, even when I have All events checked. In fact, it only shows my individual entries for the last two months, but does show all my recurring entries. If I switched to last six months, I will see everything for the last six months. If I switch back to all events, it is only for the last two months.
    As I mentioned, others on here have expressed exactly the same issue, including the two month example and having used yahoo.
    For legal purposes, I need to be able to use the information from my indidual calendar entries in an upcoming court case. So I really need to fix this ASAP!

  • Always displays the default saved search in af:query

    hi,
    The saved search drop down lists the saved searches but could not select another saved search. The dropdown selected value always point to the default saved search, as well as it's UI in criteria region. The same behavior in saving a new search, it will always refresh to the default. What seems to be the problem here? The current QueryDescriptor point to the new search but the UI always displays the default.
    Thanks in advance.

    Found the solution. The queryDescriptor getter calls again the default value that's way it doesn't change. Thanks for the time.

  • Chrome browser always comes up displaying the last web page I looked at.

    Just got a Samsung Galaxy S5. Tried out the Chrome browser, and then when I went back to it later it displayed the last website I was on. How can I make it come up with a blank screen (just an empty search box displaying). Thanks.

    Make sure that you either
    1: back out of chrome (not just hit the home button)
    2: close the chrome app in the task manager.
    That way your "home" page will open every time you open chrome, not just the last page you visited.

  • I'm new to using iCloud and couldn't find the answer to: how to set my calendar to use the 24 hour clock. Thanks all.

    ?? I'm new to using iCloud and couldn't find the answer to: how to set my calendar to use the 24 hour clock. Thanks all.

    Thanks, David.  i thought i had it set correctly in Preferences in L&R. Being i was wearing my suspenders and belt at the same time i went back to L&R, cleared what was there and re-entered same to include unchecking and rechecking Time Format fgor 24-hour time.   It works now. Thanks again.

Maybe you are looking for

  • Acrobat Pro 9.3 | Print Error

    I am trying to print a pdf file to a Xerox Phaser 8560 DT color printer.  When I select "Properties" on the print managemnt screen, I get the following error: "Adobe Acrobat 9.3 has stopped working". Then I must quit out.  I have no problem accessing

  • Robohelp 9 for Word - Bughunter not functional

    I have RH9, Windows 7, Word 2010 and I'm working on an existing winhelp project. In previous versions of winhelp, I was able to use a tool called Bughunter to see what Map ID's were being called by the application associated with the help. Robohelp 9

  • Download 92010NT_CLT.zip Corrupted

    I've tried to download the 9i NT client software (92010NT_CLT.zip (625,558,536 bytes) twice now, and end up with a corrupted file after approx a 2.5hr download. The indicated data rate is around 60Kbs. I used different client workstations, one on my

  • Verify Disk doesn't work

    Can't verify disk, and consequently can't repair......system freezes up and I have to do a hard shut down. Suggestions?

  • VIEW_MAINTAINANACE_CALL ??

    Hi Experts, the said <i><b>VIEW_MAINTAINANACE_CALL</b></i> FM is working fine, but only for single entry i.e. like same, which I faced the problem in SM30>Enter Conditions(not allowing me to enter second value for same view field), i.e. In the FM, I