How to setup and position resizable Scroll Bars in Java ?

I seem to be asking a trivial question -
I having MFC code below, how to convert it to Java ?
For a given bigger image_dims and smaller view_dims -
MFC code below sets-up and positions the ScrollBars.
What is the corresponding class and member functions in Java ?
Thanks A LOT for any help !
Roman Kazinnik
====
sc_info.fMask = SIF_DISABLENOSCROLL | SIF_ALL;
sc_info.nMin = 0;
sc_info.nMax = image_dims.size.y-1;
sc_info.nPage = view_dims.size.y;
sc_info.nPos = view_dims.pos.y - image_dims.pos.y;
child->SetScrollInfo(SB_VERT,&sc_info);
kdu_coords step = view_dims.size;
step.x = (step.x >> 4) + 1;
step.y = (step.y >> 4) + 1;
kdu_coords page = view_dims.size - step;
child->set_scroll_metrics(step,page,image_dims.size-view_dims.size);
====

hi lev,
check this document for jco pools
http://www.winfobase.de/lehre/lv_materialien.nsf/intern01/FB09D79A41930E34C125709F0046180C/$FILE/Tips&Tricks_JCo_Programming.pdf
ravindra

Similar Messages

  • How can I widen the vertical scroll bar width in Firefox and Thunderbird?

    How can I widen the vertical scroll bar width in Firefox and Thunderbird?

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • How do I get my horizontal scroll bar back?

    Well, I just installed firefox 5 on my computer and for some reason, the bottom horizontal scroll bar you use to move the screen left to right has gone missing. So my question is, how do I get it back?

    I had this problem and it only started after installing firefox v12.0 (on win xp).
    Mozilla mentions it is related to the css 'overflow' attribute not being defined correctly.
    HOWEVER, in my case, the offending line of css belonged to the jquery ui library
    file: jquery-ui-1.7.2.custom.css
    .ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
    all I needed to do was remove one of the '9's and the horizontal scroll bar reappeared on all pages that included this jquery ui lib.
    the better solution would be to upgrade to the latest jquery ui lib.

  • How to do implement an Auto scrolling bar in Forms 9i

    Hi,friends
    How can we implement a automatic scrolling bar when we edit item data in block which is so wide.
    I will be appreciated for your response,Thank you!!
    Pls give me some ideas
    Panzhen

    Hi,
    actually this functionality does not work. The reason for this is that Forms9i is Web only and there is no functionality downloaded with the generic Java Applet. For the moment I filed an enhancement request to have this on our radar. Meanwhile, if you need thi sfunctionality you can help yourself by writing a PJC that opens a dialog and performs the action that you want to.
    Frank
    Forms Product Management

  • Add a horizontal and a vertical scroll bar to a screen

    Hi,
    How to add a hotizontal scroll bar and a vertical scroll bar to a screen?
    Thanks a lot.
    Best Regards,
    Stephanie

    Hi,
    I think it will be automatically added if your screen size is greater than the window size...
    Regards
    Karthik D

  • HT1338 How do you consistently get the scroll bar on the right side of the page

    How do you consistently get the scroll bar on the right side of the page.

    Go into System Preferences, select General and set "Show scroll bars" to "Always".

  • How do I temporarily hide the scroll bars ?

    How do I temporarily hide the scroll bars ?

    I assume that your post in [[/questions/906990#answer-291125]] ended up in the wrong thread and should have appeared here.
    The only thing that changes if you run the code in the Scratchpad is the disappearance and reappearance of the scroll bar in the current tab. You do not see anything in the Scratchpad. So you need to switch back to the browser window.
    You can test it with this code, that should make both scroll bars appear:
    <pre><nowiki>void(document.body.style.setProperty("overflow","scroll",""));
    </nowiki></pre>
    [[/questions/906990#answer-291125]]:
    <blockquote>In Scratchpad I ran both:
    <pre><nowiki>void(document.body.style.setProperty("overflow-x","hidden",""));
    and
    void(document.body.style.setProperty("overflow-x","hidden",""));
    In the 2nd one I got:
    17:48:57.826 |x unexpected end of XML source
    @ Scratchpad:1'''
    For the 1st one I got no activity, only a blinking cursor.
    any other ideas ?
    Good luck and merry Christmas, Bill
    .</blockquote>

  • I run 3.6.10 and the horizontal scroll bar vanishes.

    I tried opening the browser in the Safe Mode & restoring the default settings. The horizontal scroll bar reappears until I resize the window. It vanishes again and does not reappear.

    It is possible that the screen is too wide or too high and that the scroll bars fall off.
    Open the system menu via Alt+Space and see if you can resize that window.
    If that works then close Firefox to save that setting.
    See also http://kb.mozillazine.org/Resizing_oversize_window
    If that didn't help then see http://kb.mozillazine.org/Corrupt_localstore.rdf

  • How to setup and use Passbook on iPhone 4?

    How to setup and use Passbook on iPhone 4?

    So your saying you can only copy part of this text?

  • How can I get the vertical scroll bar in firefox for mac to operate more smoothly?

    This scroll bar issue has been a real pain for awhile, though it seemed to be better for a period of time and now has grown much worse again. I'm using Firefox 22.0. I try to grasp the blue scroll bar (right side placement) to move it up or down for pages that require scrolling to view, and it is very hard to hold and move the bar, plus it often bogs down as the colored wheel shows up as if the software is trying to process the action. It's very frustrating. I'm set to "smooth scrolling" in the Firefox settings, but that doesn't help. Is there a way to fix this and make the scroll bar move quickly and smoothly in Firefox for Mac?

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • Got new miniMac servers with 2x750GB drives. How to setup and confirm RAID mirror?

    Literally just got shiny new miniMac Server with the dual 70GB internakky hard drives/disks with
    OS X 10.7.$ LION pre-installed. What a nice machine in a super cool box!
    Seemed to bootup and run fine!
    Now my issue (there will be more for this MAC newbie):
    A. How to setup AND more importantly (item B below) CONFIRM that a RAID MIRROR is working?
    Want nothing fancier than 2-nd drive is exact duplicate of 1-st drive at all times.
    That is, an 'active and full up-to -the second" backup of the main 1-st drive.
    I have done nothing to 1-st drive as it came from APPLE.
    When I try to setup RAID set using DISK Utility, I get message about system(1-st drive) can't be used in a RAID or such.
    yet I can add 2-nd drive to what I tink is a RAID set and then 'Enable' it.
    It seems to add another entry to thr left-side of drves list panel but not sure that 1-st and 2-nd drives are BOTH in the new
    "RAID SET' or that the set just consists of the "single" 2-nd disk?
    B. I don't think that 1-st drive data is actually being duplicated to 2-nd drive.
    For instance, how do I know that it was 'caught up' to match 1-st drive AND then is
    staying caught up?
    C. A 'RAID UTILITY' Icon brings up a not-available message, but I think that is because I don't
    have HARDWARE RAID controller, just software RAID, correct?
    D. What is 'Time Machine' and how does it play into this? I do assume that somehow/someway I need to
    have off-machine backups also to be truly protected? How would a 2-nd identical miniMAC server be best
    deployed to back each other up, in addition to their own internal RAID-ed disks that items above address?
    My whole point of buying 2x750GB disks was to have mirror RAID set and
    (foolishly) assumed that factory would set it up that way.
    Please help me get setup right so when the inevitable crash happens,
    I have some chance of recovering from it.
    Regards,
    Paul T
    emai: [email protected]
    Apple ID:  N3UD
    Phone: 610-613-0610

    A. What are you adding to the RAID: a partition or a hard drive? You can only add hard drives to a RAID. RAID Utility should confirm that your RAID is working
    B. No, I don't think so
    C. It's because you haven't got RAID hardware.
    D. Time Machine is a backup system in external drives. If you want, you can do backups in a external hard drive.

  • Where can I learn how to setup and use the new features in Mountain Lion?

    Where can I learn how to setup and use the new features in Mountain Lion?

    MacWorld has a Superguide, TidBITS has Take Control books, and probably a flock of other publishers have physical books.

  • How do I view the Horizontal Scrolling bar and status bar at the bottom of the screen. I can only see the top menus, toolbars and vertical scroll bar?

    Before the most recent upgrade, the bottom horizontal scrolling bar and status bar appeared on my screen. Now since upgrading, I cannot see the. Anyone ideas how to restore them?

    If you haven't already, you could force-quit Quicktime by using the menu option from the desktop (finder) and choose Quicktime.
    Not sure what you have frozen on the screen, be it a failed movie, or some unusual screen shot. If you can find by date (created) you may be able to look for .mov or quicktime suffix name or other video file content to delete it.
    And you may have to restart your computer and perhaps run repair disk permissions from Disk Utility's first aid on the hard disk drive in your computer.
    Not sure if all that would help now, but it is something a few days late...!
    Good luck & happy computing!

  • JEditorPane with automated linewrapping and no horizontal scroll bar.

    Hello.
    I am working with a JEditorPane which is added insisde a JScrollPane, the thing is that i want to have
    [1]Automatic line wrapping, although this works good with the method .setText(String str) i am not using that method, instead of that i prefer to have an HTMLDocument object inside the JEditorPane and use the method insertBeforeEnd(...) . When i do that, i do not have automatic line wrapping.
    [2]Not having that line wrapping means that i see an ugly scroll bar in the horizontal position, which i want to avoid, since this is for an IM application.
    Before i used a JTextArea with the method .setLineWrap(true) and everyghing was ok, so is there any way to do the same in a JEditorPane with an HTMLDocument? Any help will be apreciated.
    Thanks

    But what i want to do is ....Well instead of telling us what you want to do, why don't you post a 20 line executable demo program that shows us exactly what you are doing and what the problem is. A picture is worth a thousand words.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • How to get rid of vertical scroll bar in ABAP webdynpro table

    Hello,
    I have created a dynamic WD table using cl_wd_dynamic_tool=>create_table_from_node and then I restricted the number of lines to 1 by setting the 'Set_Row_Count' and 'Set_Visible_Row_Count' = 1. But still when I run the application I see a vertical scroll bar which looks very awkward for only 1 line. How do I get rid of this vertical scroll bar ?
    Thanks and Regards,
    Sandhya

    Hi,
    Is your table under any transparent container. have you set any scroll mode for this.
    One more thing, have you used SER SCROLLABLE COL COUNT property.Also is this property set firstVisibleScrollableCol.
    Regards,
    Lekha.
    Edited by: Lekha on Oct 28, 2009 11:18 AM

Maybe you are looking for

  • InterCompany Stock Transfer - shipping Point

    Hello How sales area and shipping point are determined in delivery document for intercompany stock transfer process. regards Prashant

  • MacBook - stop going to sleep mode When lid closed

    Hi , I am using handbrake to convert video files on macbook . I want to close the laptop lid and still want the process to run in background . Some one mentioned that if the laptop lid is closed and the system is running it gets heated rapidly . I wa

  • "Software necromancy" on AUR - ideas/feedback appreciated

    Hi Background: Basically to just see if it would work, I ported/updated two old abandoned packages on AUR that dependend on Qt2 to be built with Qt4. Why? I think it is better to use a mantained library than an old unmantained and possibly insecure a

  • Moving CS to a new PC

    I am considering obtaining the academic version of CS 3 Master Collection, through which I am eligible for a free upgrade to CS 4. Are there any issues with moving the application from one PC to another (e.g., if I find my current PC just doesn't hav

  • Is there an agenda app compatible with Mac, iPhone

    I'm looking for an app to use as my agenda/planner but that compatible with my MacBook Air, iPhone 4 & iPad 2 and that it's able to update via iCloud, is there such an app?