A Scrolling Problem

Hi all I have a little problem I wana get fixed...its a little bit long problem so better help me out with this:
A swing application that has four textfield which accepts pure string and saves it to a database..theres a button when clicked will show the first record in the database and displays exactly the record in the four textfield...now here goes my question:
How do you scroll 1 record at a time thru the database and display record 2,3,4,5 and so on until the last record and display it to the textfield assuming we have button labelled next? and how will you reverse the process assuming you have button labelled previous which when clicked will display 1 record at a time in the textfield until it reaches the first record? I can display the first and the last record but scrolling one record at a time, that i cant do...hope you can help me with this or maybe give me some thread to get some idea with this...thanks and God bless to all...

The other way of doing this, which may be easier, is the follwing
pane.getVerticalScrollBar().setValue(pane.getVerticalScrollBar().getMaximum());where pane is the scrollPane. This will scroll to the bottom of the text pane.
One other point, you may find it more efficient on memory if you added the new message using the document instead of creating a new string from the old text and the new text to add. E.g
instead of
textPane.add(textPane.getText() + "\n" + newMessage);use
Document doc =  textPane.getDoument();
doc.insertString(doc.getLength(), "\n" + newMessage, null);Hope that helps
wwe8

Similar Messages

  • Still the same issue: Scrolling problem in itunes w/ dual screen setup

    Hey there,
    I am getting really ****** here. For 2 months this problem has been bugging me. It seems to randomly appear and disappear.
    Just have a look what is happening here: http://www.youtube.com/watch?v=N2m4G6c2Tqo
    I basically tried everything.
    1.Reinstalled Windows from scratch twice!
    2 Reinstalled Itunes a couple of times - clean install - tried different versions. Yea, got the latest one now.
    3. Tried different VGA drivers. Got the latest Intel driver installed.
    The problem has been gone for a couple of weeks now ever since I uninstalled a Windows update called U2711 Dell Display driver (The U2711 is my current LCD). That was just a 80KB file that messed Itunes up.
    Well, I believed I found the problem (hail system restore) but nope. Today it started happening again. I even have Windows Update deactivated for that reason so no changes have been made to the system in the last couple of days! It worked fine yesterday.
    So again: Same scrolling problem. And it only happens on my second large 27" screen. On the notebook screen it works just fine.
    Guys, I really need help. I'm about to curse Apple and Microsoft at the same time.
    Cheers
    K

    Since I am that furstated I started trying really unorthodox methods to resolve the problem.
    I just started Itunes in compatibilty mode (Windows XP SP3) and for now it seems to be working without that annoying bug!
    Anybody know what that means?!

  • Does anyone has the same scrolling problem? My macbook air 13''(2010) running lion, when files in a folder arranged by kind, every scrolling paused for a second..?

    does anyone has the same scrolling problem? My macbook air 13''(2010) running lion, when files in a folder arranged by kind, every scrolling paused for a second..?

    does anyone has the same scrolling problem? My macbook air 13''(2010) running lion, when files in a folder arranged by kind, every scrolling paused for a second..?

  • Persistent Scrolling Problem

    I have a two-finger scrolling problem with my 5- day- old Macbook (10.5, Firefox latest version). It was suggested in this forum that I turn off Horizontal scrolling. I did that, in fact I think I tried every combination of settings on the
    Keyboard & Mouse page, but the scrolling is still erratic. It jumps and stalls and
    then (occasionally) works. This happens on line or in documents. I wish I could determine if this is a software or a hardware problem. If it is hardware I need to return this unit real quick. I've been everywhere on the net looking for a software fix or update, but all I have found are add ons that will probably lead to more problems. I don't want to go through the aggravation of a return if I can help it.
    I'd appreciate any suggestions. Thanks Bill
    Now the cursor is acting funny! I can't fix these lines above.

    ok, dude, dont treat my reply as answer, but im just suggesting..why dun u plug in a normal mouse for gaming anyway?
    1)clicking a lot kills the batteries, and also wear out the clicking mechanism.
    2)the scrolling is too sensitive on windows (my exp.) and it switches the weapon unexpectedly all the time (left 4 dead 2)
    3)as u said, its windows! mac hates PC, just think about it, they intentionally hold up the start up time for windows on boot camp, so what quality do u expect with all the mac hardware on WINDOWS??
    I personally plug in a different set of keyboard and mouse to play games on bootcamp, cos the keys are still confusing for me, and USB HIDs dont need batteries, be green!

  • T43 Vertical Scrolling Problem (not just Firefox)- Any official response from Lenovo

    After searching the forum, i have not been able to find any response from Lenovo as to how to correct this problem.
    Incidentally, my "occasional" vertical scrolling problem occurs in any browser,  IE7, Firefox3, Opera9 (at least those 3) as well as Windows applications with a vertical scroll bar like Windows Explorer.
    This only started to occur very randomly around 6 months ago.  But as of late it is occuring more often.
    The only work-around
    http://blog.jonschneider.com/2008/03/workaround-th​inkpad-gets-into-always.html 
    might indicate that it is a possible hardware problem.
    However, I have to say that I rarely use the laptop scrolling buttons and 99.9% of the time, latetly, I use a Logitech laser USB mouse for scrolling purposes. 
    As another possible work-around (if you are using an external mouse) is to uncheck the enable virtual scrolling in the touchpad properties window. 
    I certainly hope it is not a hardware problem, as the warranty on my T43 ran out a long time ago.
    btw, I am running Windows XP Pro XP3.
    Moderator Note; added system type to subject
    Message Edited by andyP on 07-27-2009 09:32 PM

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages

  • How do you fix a scrolling problem on Apple TV?

    When I click the remote once, it scrolls to end of row or column.  I've restarted via remote, unplugged (restarted), restored to factory default = still have scrolling problem.  Tried 2 different remotes, same problem with each.  Tried unparring then reparring = no joy.

    Update your Adobe Flash player: Adobe Flash Player 16.0.0.305.

  • Vertical Scrolling problem in Safari

    I'm currently having an odd vertical scrolling problem in Safari.  This issue is not reproduced in Chrome or Firefox.
    I've been able to reproduce this issue doing something very simple:
    I have a browser wide rectangle with a solid color.
    Beneath that I have a browser wide photo.  (Rectangle set to browser edges and then fit to fill with photo.)
    And beneath that I have another browser wide rectangle with a solid color.
    Then I scroll.
    Once the photo (the middle element) reaches the top of the screen I have shut the scrolling off so the photo will stay static. (Initial motion 1 / Final motion 0 set in the "Fill/Scroll" tab - and the key position is set so it stops at the top of the browser.)  As expected, the lowest box continues to scroll upwards and cover the static photo.
    This very simple effect is flawless in Preview mode, Chrome, and Firefox.
    Yet in Safari, the photo, once it reaches its resting spot, does stay static, but seems to jump and jitter all over the place while I continue scrolling and the below content covers it.  (In the other browsers it's super solid like a real static background.)
    I've read there are some parallax scrolling bugs in Safari Mavericks.  But I'm still in an older operating system using 10.8.5 and Safari 6.0.5.
    Any suggestions or work arounds on how to correct this? (Again, I'm controlling the scroll using the scroll tab found with "Fill". Should I also be using the one found under Scroll Effects?  What the best one to use? Although it does work in the other browsers… so…  maybe I'm not doing anything wrong and this really is a Safari problem.)
    Thanks you.

    Hi
    Please share the site url, I will have a look.
    Thanks,
    Sanjit

  • Mouse scrolling problem

    My iMac is around two years old, and I'm on my third mouse. Why? Because of the scrolling ball. The present mouse scrolls in all directions except down. But previous mouses have stopped scrolling in more than one direction. I have read articles (including the stuff from Apple Support), and I have, I think, tried just about everything (except take it apart, as one article instructed). The mice work fine for a while--then come the scrolling problems. I've tried rubbing the ball (mouse upside down) vigorously on a lint-free cloth, and I regularly (when problems inevitably arise) clean the ball with alcohol and a Q-tip. The latter does get the ball pretty clean, and it works for a while; but eventually even this doesn't correct the scrolling problem (as is the case right now). So, unless someone can give me a suggestion that might work (with Mighty Mouse), can anyone recommend a non-Apple mouse--something not too expensive but of good quality?
    Thank you,
    Carl Kalwaitis

    Hi Carl, I used mice (Mighty included) but always went back to the trackball. You don't move your wrist and it is very precise. I have had the same trackball for three years and my Mighty Mouse (which came with my new iMac) is still in it's original packaging. I have a Logitech Marble Mouse. It has all the scrolling and other functions that the MM has. Give it a try and save yourself some exasperation.
    M.

  • HT6162 IOS 7.1 creates scrolling problem?

    Upgraded my UK iPhone 5S 64GB to ios 7.1 yesterday. I have been facing page scrolling problems in all applications (Bloomberg, BBC, Safari, FT, LinkedIn, FaceBook...all applications). The problem is easily reproduced by keeping your finger on the screen when the page to scroll is displayed and moving the finger slowly to scroll the page. The page jumps in direction opposite to the expected.

    Hey, I have an iPhone 5 64Gb just updated to iOS 7.1 (11D167) . Various apps all have the same scroll problem. It's amost like 1.5 cm from the the bottom of my screen, an invisable line across the phone where swiping across up or down causes the the normal smooth motion to be jumpy. This has only just happened after the latest iOS update. I have also noticed touch senstivity issues when using the keyboard in some older apps causing key strokes to be missed or even double pressed when only pressing once, and number keys to not work also. My current work around is to type the txt or numbers into notes app, then cut or copy the txt or numbers into the app i'm  using. My other work around for the scroll issue, is to use asistive touch and create a scroll gesture.
    Hope there is a fix for this soon. I'm not totally convinced this is a hardware issue. it's too coincidental these issues just happend to occur after the latest update. Gone through the normal power cycle, soft reboot holding home button and power button for 10 secs, but makes no difference.
    I've turned back on the' automatically send' diagnostics & usage setting in general settings hoping this will contribute to a fix.

  • HT201380 keep having scrolling problems with Maverick on both iMac and Mac Pro despite downloading mail software update

    Have scrolling problems with Maverick despite downloading mail update on both IMAC and Mac Pro
    Have to reboot and it helps for awhile then stalls again

    The Mac OS X 10.4.7 Update introduced connection issues as a result of (according to the documentation) "Mail now supports connecting to mail servers through a SOCKS proxy". This probably has nothing to do with your problem, but it'd be worth going to System Preferences > Network and making sure the SOCKS Proxy is not enabled in the network configuration used to connect to the Internet.
    Also, it looks like the crashes you're talking about are actually freezes, i.e. Mail becomes unresponsive rather than quitting unexpectedly. In Mail, open Window > Activity Viewer, and see whether Mail displays there what it's doing when it freezes. Actually, you may be able to avoid having to force quit Mail by canceling whatever it's doing (by clicking on the red stop icon of the activity).
    Reinstalling Mail will probably accomplish nothing, but it might be worth reinstalling the Combo Update for the type of machine and the version of Mac OS X you're using (which you would have to do anyway if you wanted to reinstall Mail):
    Mac OS X 10.4.7 Combo Update for Intel
    Take a look at the following articles for guidelines on how to properly install system updates:
    Troubleshooting installation and software updates
    Installing software updates
    Basically, you should verify/repair the startup disk before installing the update, and no applications should be running while installing it.

  • Scrolling problem with adobe digital edition

    scrolling problem comes when i am scrolling the book i have installed this in win-7 with x64 bit. the page was stucked in the initial opening page and the page no shoing below are changing when m scrolling. pls help;.

    This is the Reader forum; you should ask in the Digital Editions one,
    http://forums.adobe.com/community/adobe_digital_editions

  • Scrolling-problem in an editable ALV-list

    Hi,
    I have built an <b>ALV-list</b> with one of the fields <b>open for input</b>. The user wants to use the arrow to scroll <u>down</u> through the table and update that particular field in every row. I have <b>2</b> questions about this:
    - First of all, the cursor moves in a strange way. The first number of rows it stays in the right column, but then, out of the blue, it jumps back and forth to other columns after scrolling.
    - Secondly, the field I want to edit is always in Insert-mode. Is there any way I can get it into Overwrite-mode? I cannot use the Tab-key, because of the lead-selection.
    Thanks in advance for your help.
    Kind regards,
    Andre Moniharapon

    Hi Vijay,
    please don't get me wrong, I really appreciate your attempts to help me, but my problem is that when I press the Down-arrow it <u>doesn't</u> always go to the next cell in the <i>same</i> column. It sometimes goes to the next cell in <i>another</i> column. And if I can't force it to stay in the same column in some way, than my problem cannot be solved and I must think of another solution. So, I don't want the cursor to stay in the same field, I want it to go to the next cell in the same column. You got that right. Again, I really appreciate your help, but it looks more and more that there's no solution to my problem.
    Kind regards,
    Andre

  • Apleworks scrolling problem on MacBook Pro

    On my new MacBook Pro 17", I noticed that track pad two finger scrolling is very jumpy in AppleWorks documents, particularly in tryin to scroll back up through a document. You have to use a different kind of motion, sweeping very swiftly up and lifting your fingers from the track pad before stopping, otherwise it misinterprets it as downward motion.
    Is there any solution for this? I cannot use Pages until they actually incorporate a spreadsheet module into it, and I don't really want to go to Office.

    I have the same problem. I played around with the trackpad panel in system preferences but had no luck in funding a solution. At least you know it's not a problem with your machine. It seems that some other applications don't play nice with the trackpad either, eg FileMaker Pro 7 doesn't recognise scrolling at all either up or down.
    I tend to use a mouse with my MacBook and both AppleWorks and Word work fine and respond to the wheel, Filemaker doesn't respond to the wheel.
    MacBook   Mac OS X (10.4.6)  

  • Macbook Scrolling Problem. Please Help!!

    I use Firefox for my web browser and I am having a scolling problem. Every time I am watching a video on Youtube the video window always disappears when I scroll up or down. Is there any way to stop this?
    Black 13" Macbook Core 2 Duo   Mac OS X (10.4.8)  

    Firefox just issued an update (2.0.0.1). Did you install it before experiencing trouble?
    The release notes are here:
    http://en-us.www.mozilla.com/en-US/firefox/2.0.0.1/releasenotes/
    As you'll see, under Mac OSX one item may be relevant to your problem:
    "Some users have reported problems viewing Macromedia Flash content on Intel Mac computers. To work around this problem, users can remove or move the PowerPC version of "Flash Player Enabler.plugin from /Library/Internet Plug-Ins."
    Rhys

  • Dock magnification, menu bar and scrolling problems

    I'm running 10.6.4 and have suddenly noticed that for no apparent reason, dock magnification, roll over menus and screen scrolling in Zoom mode have stopped working. I've checked all the settings and they are set properly. If I shut down and restart, everything works fine for a few minutes, then the problem starts up again. I've fixed permissions and have even unplugged the Mac for a few minutes, but nothing seems to work permanently. I've checked my CPU cycles and they're down in the 1-4% range, so nothing seems to be running in the background. I'm baffled why this suddenly began and why, after a restart it works fine for a few minutes then the problem starts up again. Any help would be appreciated. Thanks!

    Hi,
    I'm not sure it would help or not but no harm trying this two
    http://support.apple.com/kb/ht1379
    http://support.apple.com/kb/ht3964
    Good luck.
    Cheers.

  • Can anyone help with YouTube embed and scrolling problem?

    Hi,
    Whilst working on a mobile version of a site, I've noticed that if you're scrolling through on a device and the area with the YouTube embed is near the top of the screen, it'll suddenly scroll all the way back up to the top of the site. This only seems to happen with the YouTube embed, the rest of the site seems to work fine.
    Anyone else had similar issues?
    The site is www.cowandbell.com/phone
    I'm using an iPhone5 running iOS7 and it's happening in Chrome and Safari.

    Sorry if it sounded like I was telling you to "go away." Far from it: I was trying to point you to the place where you might get an answer most expeditiously. I'm trying to save you time vs. simply having your question sit around unanswered.
    For example, if other Parallels users have had the same problem, the Parallels folks would be the most likely know. I would not assume that"Parallels' answer will inevitably be, "We don't support third-party software."without first asking them.
    You'd be surprised to know how many times folks post questions here about third-party applications and the questions go unanswered, while the answer is actually waiting to be found at the Web site of the third-party app's developer.
    You might also try the HP Web site since it may be a general problem with that set of drivers under Windows.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

Maybe you are looking for

  • File system verify failed, now what?

    I was about to upgrade to Snow Leopard from 10.5.8 and before that tried to back up my drive to a new G Drive. Using Carbon Copy Cloner the process quit in the middle when the G Drive unmounted itself. I ran Disk Utility Verify on the G Drive and it

  • Development of report based on AR and AP cubes

    Hi All, I have 2 cubes i.e., 0FIAR_C03 and 0FI_APC03. AR cubes has got 0Debitor and 0Creditor, where 0Debitor is referencing 0Customer in AR cube and 0Creditor is referencing 0Vendor for AP cubes. Business has asked to develop a report so that it sho

  • Need video in ppt - QT choppy

    I need to insert a 15 min. video in a powerpoint presentation. The iMovie works great but when I exported it "Movie to Quicktime Movie" with default settings, the qt playback is at times choppy. This is before and after inserting into PPT. Using 10.4

  • SMARTFORMS to EDI.

    Hello Everybody, Is there anyway to convert SMARTFORMS to EDI??Please let me know. Thanking you in anticipation. Regards, Supriya Manik.

  • Is JPA discourages use of interface?

    Hello, I am working in J2EE since last 3-4 months. Currently understanding (or i should say it learning) JPA. As per my knowledge, JPA does not support use of interface(as a persistent attribute) in entity classes. I tried to get information about it