How can I block page up/ page down keys evetn to the JScrollPane.

Hi,
How can I block page up/ page down keys to JScrollPane. I don't want the content to scroll if user presses page up/ page down key.
Thanks in advance.

Look in the class BasicLookAndFeel. There is a definition for the UIDefaults entry "ScrollBar.focusInputMap". It is initialized with a set of keystroke definition for the input map. You can modify this definition and add a new map to the defaults map or you can create and add the map to instances of JScrollPane.
Mitch Goldstein
Author, Hardcore JFC (Cambridge Univ Press)
[email protected]

Similar Messages

  • How can I hide page thumbnails navigation bar at the start up of Adobe Reader and open a pdf file?

    How can I hide page thumbnails navigation bar at the start up of Adobe Reader and open a pdf file? I could not find this option under Preferences tab? Thanks

    Hey there,
    Thanks for your reply. That works for the files I do what you said. However, for files I have not done that, It still shows the navigation bar. Any idea, how to do it default for any files?
    Thanks agian

  • How can I extract pages from a PDF? The Tools menu is missing.

    I used to be able to extract pages from my PDF file. I don't see the tools icon anymore. How can I access the tools icon?

    Hi lenm,
    To extract pages, you need to use Acrobat (not Adobe Reader). As I can attest (because I do have both Reader and Acrobat installed on the same computer), it is quite easy to open files in Reader when you mean to open then in Acrobat. So, please make sure you have the right app open. (I pull this one all the time!)
    Now, if the Tools menu is missing from Acrobat, choose View > Show/Hide > Toolbar Items > Show Toolbars to make them reappear.
    Please let us know how it goes.
    Best,
    Sara

  • How can a jsp page tell which Oracle Responsibility the user has selected?

    We have two responsibilities - Timecard Administrator and Timecard Viewer. Everything that they can access is the same, except for one particular jsp page which we want to present a slightly different view if the user's responsibility is Timecard Viewer (specifically, the edit link in the results page will be suppressed). Unfortunately in order to implement this, the jsp code needs to be able to distinguish which of those two responsibilities the user has selected. I have written jsp code to print all the environment variables and unfortunately the environment is essentially identical regardless of which of the two responsibilities the user selected.
    How do I pass in the active responsibility to that page/environment in a way that can be tested by the jsp code?
    Thank you,
    Graham Toal <[email protected]>

    Yes, I tried something like this (shortened to the basics for this post):
    <pre>
    sqlQuery="select responsibility_name from fnd_responsibility_vl where responsibility_id = FND_GLOBAL.RESP_ID";
    stmt=con.createStatement();
    rs=stmt.executeQuery(sqlQuery);
    int field_count=rs.getMetaData().getColumnCount();
    while (rs.next()) {
    for (int i=0; i<field_count; i++) {
    logger.write("Responsibility: "+rs.getObject(i+1),"JSP",objName,0,-1,1001);
    </pre>
    However it did not print any results at all.
    I'm trying a different approach at the moment - I've cloned the menus from the Administrator responsibility to the new Viewer responsibility, and have altered the top-level menu so that I can insert a new variable into the process state myself; that way by the time the user navigates to the changed page, there should be a variable there that can be tested.
    Unfortunately the top-level menu isn't just a simple menu, it's a piece of code that issues an HTML redirect depending on the parameter passed in - which is set in the Oracle function screen for the function attached to that menu.
    (was something like utpa_top_menu.jsp?ADMIN and I changed it to utpa_top_menu.jsp?VIEWER, with appropriate tests for the new module name:
    <tt>
    else if ("VIEWER".equals(moduleName))
    url = "/utpa/jsp/admin_reports-viewer.jsp";
    </tt>
    In admin_reports-viewer.jsp I've added <tt>session.putValue("REPVIEWER","y");</tt> and in the actual target main page I have:
    <pre>
    if (session.getValue("REPVIEWER") == "y") {
    // viewer
    out.println("<CENTER><B>You are using the Timecard Viewer responsibility</B></CENTER><BR>");
    } else {
    </pre>
    And although the URL bar at the top of the screen is displaying the correct (redirected) URL, the page that is displayed is blank. Completely empty. 0 bytes. The file is present on the filing system; has content; has the correct ownership and permissions; I've reloaded apache, even had the systems guys reboot completely. I'm at a loss :-/
    Graham

  • How can I save pages as a document with the new Mavericks version of pages?

    Is there any way to save a pages document as a Microsoft document?  Additionally, is there any way to save a numbers document as an Excel document?
    Since I have downloaded the new Mavericks software with the new Pages, Numbers, and Keynote, I can't save anything as a Microsoft document anymore.  Can anyone please help?  I'm a student needing an answer because most institutions only use Microsoft.  This is an extremely upsetting fall back for Apple if there isn't a way to accomplish these activities.
    Also, if anyone has any information if Apple is going to provide new drivers for old HP printers and scanners, please inform me.  My multi-functional printer is obsolete (according to a phone conversation with HP).  Currently, I have to jump through hoops to get the scanner to work and Preview crashes most of the time (with the Mavericks update). 

    Welcome to Apple Support Communities
    iWork does not let you save a document as an Office document by default, so you have to do some extra steps. First open the document and go to File menu (on the menu bar) > Export to, and choose the Office app to create a document for Microsoft Office.
    Respecting to printer drivers, Apple does not provide newer drivers for an obsolete printer. Instead, see if Gutenprint works > http://gimp-print.sourceforge.net/MacOSX.php

  • How do you page down or up on the Apple Wireless Keyboard?

    Hi,
         I have an iMac 27" & I got the Wireless Keyboard.  How do I poage up or down using the wireless keyboard because there is no Page up or Page down key like on the wired keyboard?  Also, is there a list of shortcuts for the wireless keyboard & where would I find them?
        Thanks for your help.
    relaxed4102

    Can't answer the page up/down query, since I only use wired keyboards, but, AFAIK, shortcuts are keyboard independent. Get them at http://support.apple.com/kb/HT1343

  • How can I keep pages from scrolling when using keyboard page-down

    The bottom of the pages window has a gear. You can select "Page" in the drop down menu and click the arrow, to perform a page down. The new page is positioned exactly like the previous page. But when I type fn+down-arrow or cmd+down arrow the new page view is either higher or lower than the previous page. Resizing the window makes it almost possible to get a consistent page display but not quite. It's awkward trying to read a document when each new page jumps to a new position. The arrow next to the gear is the only solution I've found.
    Does anyone know a way to achieve this page down view using just the keyboard. I'm using the iMac wireless keyboard?
    Thanks,
    Mark

    It is an annoyance, due to the 2 meaning two different things.
    The page down key means the whole window view which is not the physical page that you see in Pages.
    Apple could have clarified it by labelling the key +window down/up.+
    Peter

  • The "page down" key goes too far down - how can I adjust it?

    When I'm scrolling through an article or webpage and hit the "page down" key, the jump down is too far and I have to scroll back up a couple lines to see what it missed. Is there a way to adjust that?
    Thanks.

    Are you zooming the page or have adjusted default font sizes?
    It is possible that this affects the behavior of scrolling as this can be a fixed amount of pixels.
    Look at these prefs (see about:config) to set the scrolling behavior with the keyboard.
    *toolkit.scrollbox.horizontalScrollDistance (5)
    *toolkit.scrollbox.verticalScrollDistance (3)
    *Bug 635645 - consider increasing the amount of scrolling performed by using the arrow keys
    *Bug 725700 - Keyboard arrow keys and scrollbar buttons should have consistent scrolling distances
    <i>Please do not comment in bug reports<br>https://bugzilla.mozilla.org/page.cgi?id=etiquette.html</i>

  • How can I extract page with showing the e-sign signatures?

    How can I extract page with showing the e-sign signatures? When I extract pages, the e-sign signatures are all disappear.  Or can I save the documents without verify the signatures?  When I open the documents, it need verify the signatures and then open it now.

    Hi Ada,
    The thing you have to realize is when using Acrobat or Reader to create a digital signature you are signing the whole document (all of the bytes in the document). You are not signing just the page where the signature appearance resides.
    Another thing to realize is the signature appearance (what you see on the page in the signature field) is not the signature itself. The signature proper is a block of hex encoded bytes written into the PDF file and not something you see (unless you open the file in a text editor). What you see on the page is just a graphical representation of the actual signature, but it's not the actual signature.
    When you extract a page (even if it had the signature appearance on it) it is just a sub-set of the signed bytes, and if the signature were to be extracted as well it would be invalid because the bytes in the extracted file would not match the bytes in the signature. Because the signature in the extracted document would always be invalid we just remove it.
    Steve

  • I bought an iPad and an iTunes card, I want to buy an application from the Apps store but it only gives me the option of credit card.  How can I buy Pages with my iTunes card to my iPad? thank you

    I bought an iPad and an iTunes card, I want to buy an application from the Apps store but it only gives me the option of credit card.  How can I buy Pages with my iTunes card to my iPad? thank you

    Have you redeemed your iTunes card to an account associated with an Apple ID?
    Once you have your iPad associated with an Apple ID AND you have an account with a credit card associated with the same Apple ID AND you have some 'store credit' (from redeeming your iTunes card) then purchases use the store credit before they charge the credit card, so you should be ok!
    Personally, I use 'store credit' as a way to monitor whether or not there have been any 'unauthorised' purchases because as soon as the store credit is zero, the security code from the credit card is needed for further purchases!  It does mean that I have sometimes to top up store credit before making a purchase, but 'better safe than sorry'! 

  • How can I transfer "Pages" files  from my IPad to my Mac?

    How can I transfer "Pages " files from my IPad to my IMac, I cannot use ICloud because I have Mountain Lion installed on the IMac?

    Actually, you can use iCloud and the way that you so it is to log into iCloud.com on the Mac (use Safari for best results) click on the Pages icon and then drag the Pages files into the browser window. It works the other way around as well. Log into iCloud.com on the Mac and download the files from Pages (that you created on the iPad) in iCloud onto your Mac. You can click on the file in the documents window and select it to Download by clicking on the Gear icon or right click upon the file and select download.
    The files will then sync to the Pages app on the iPad - assuming hat you have use iCloud tuned on in Settings>Pages>Use iCloud>On. I have an iMac running Tiger 10.4.11 that I can still move Pages/Word files back and forth Iike this.
    Also, File Sharing with iTunes is a great way to move the files back and forth.
    iOS: About File Sharing - Support - Apple
    Message was edited by: Demo

  • How can you insert "Page Break" in a pdf file so you will specify the pages

    How can you insert "Page Break" in a pdf file so you will specify the pages

    How / from what was the PDF originally created?  It would be easiest to insert page breaks into the original document, then recreate the PDF.

  • How can I download pages on my new Mac? The guys at the store told me I got it for free once I downloaded Maverocks on my new mac

    How can I download pages on my new Mac? The guys at the store told me I got it for free once I downloaded Maverocks on my new mac

    What happens when you go to the App Store on the Dock and try to download it?
    Peter

  • Pages 5.2 - When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?

    When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?
    Any Help?I know the update has only been out a while but if anyone has an idea why it is doing this, please let me know!

    But you are telling me something I already know.
    Be precise.
    It is not Pages '09 that is broken.
    I am back in Mavericks and testing Pages 5.2.
    There are improvements, we shall see how useful, but in less than a minute I have already discovered bugs.
    Peter

  • Auto-Capitalization: How can I set Pages v5.01 to auto-capitalize the first letter of the first word in a sentence and to automatically change lower case "i" to "I" appropriately. I'm unable to find a menu that offers me these.

    Auto-Capitalization: How can I set Pages v5.01 to auto-capitalize the first letter of the first word in a sentence and to automatically change lower case "i" to "I" appropriately. I'm unable to find a menu that offers me these.

    Gavin Lawrie wrote:
    Once it had been established that the iWork rewrite had resulted in some features being lost and others broken, and once Apple had acknowledged the concerns* and suggested they are working on fixes**, I'm not sure what else there is to achieve.
    You are writing that in the perspective of having read about it here already. Repeated often enough that you encountered it somewhere in the posts.
    Users are flooding in here and don't know any of this. Of course we have to repeat everything endlessly.
    Because I like to give precise, understandable and workable answers to repeated questions, and Apple doesn't allow sticky posts here, I created a separate forum which users can consult to look up real answers, and contribute for themselves if they have something valuable to add:
    http://www.freeforum101.com/iworktipsntrick/
    There is a section purely devoted to Pages 5. Add whatever answers you feel will lighten the problems of Apple's 'upgrades'.
    Peter
    * Where have they acknowledged anything?
    ** They have barely anything listed, compared to the massive list of deleted features, and nothing but an extraordinarily long time frame considering they created the problems here and now. Apple has not said they will do anything at all about fixing the real issues, the biggest of which is that the new iWork apps break virtually all the work of existing users.

Maybe you are looking for

  • Airport no longer connects on startup

    It used to be that when I started up my computer I had it set to automatically connect to a specific network. In my Network settings that network is correctly entered into the proper field. Now it no longer connects automatically and I have to either

  • Possible to run 2 different Business Packages for ECC 5.0 and 6.0 ?

    Hi there, anybody knows a solution, to support a Busienss Package for ECC5.0 and 6.0 on one NW7.0 Portal? We build a concernportal as mainportal with different companies in one portal. These companies have their own SAP-Systems. It´s a complex system

  • I lost my ipod at the arena todat and I need to know how to find it ! thanks .

    I lost my ipod touch today at the arena and i need to know how to find it ! thanks

  • Strange SQL problem (order by fieldname@text)

    Hi all, I 'm taking a strange problem in Oracle 9i. Why does this query work correctly? (look the order by clause) SELECT foo1, FROM vw_prat_vend1 WHERE 1=1 AND (ce_vcod = '30888.03P34') AND (TRIM (ce_piva) = '01931450363') AND ( ce_dofl IN ('VAR') )

  • Mac OS Server Open Directory Will Not Turn On

    Yesterday I got the server application for Mac OS Mountain Lion.  This is my first time working with apple server software and when I try to turn on Open Directory it says: An Error occured on the server while processing a command. The error occurred