Scrollpane ABOVE splitpane divider and left component

I have a tree in the lefthand side of a splitpane. When the user takes actions on the tree nodes, the righthand side of the splitpane is set to a new panel containing related info. The righthand panel sits on top of a scrollpane. Now the problem: when i move the divider or resize and scoll the righthand side, the added panel is on TOP of the divider and lefthand side tree! Does anyone know why this happens and how to fix it? I've read about the layers and such and i'm sure it's related to that topic, but i can't find a call or param to get the righthand panel to the right "z order". Help!! (thx)

My guess is that you have some problem with the layout you are using, but without code it's impossible to say.

Similar Messages

  • Scrolling over (on top of) the SplitPane divider

    Hi,
    In my app I have a vertical SplitPane. The left component is a JTree. The right component is a JTabbedPane. Each Item being added to this JTabbedPane is a ScrollPane which contains a Canvas on which I have my chart drawn. My problem is that when I drag the horizontal scrollbar to the right, the Canvas is scrolled over (i.e. on top of) the divider and if I dragged the scrollbar far right enough the chart on the right will completely cover the JTree as it move left.
    I would really appreciate if anyone could tell me how I could make the chart on the right moves under (rather than above) the divider as it move left.

    frankly, it's better if you use a the Scrollable interface on your panel.... here's a ScrollablePanel (you can set the unit size as needed) which handles drag-scrolling which you could subclass to do whtaever painting on... Still need to use setPreferredSize() to set the size, which also revalidates and repaints the panel...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * <code>ScrollablePanel</code> is a <code>JPanel</code> subclass which
    * supports scrolling via the <code>Scrollable</code> interface. 
    public class ScrollablePanel extends JPanel implements Scrollable, MouseMotionListener {
          * The scroll unit size. 
         private int unitSize = 5;
          * Flag to indicate if a viewport should always force the width of this
          * <code>Scrollable</code> to match the width of the viewport.
         private boolean scrollableTracksViewportWidth = false;
          * Flag to indicate if a viewport should always force the height of this
          * <code>Scrollable</code> to match the height of the viewport.
         private boolean scrollableTracksViewportHeight = false;
          * Creates a new <code>ScrollablePanel</code>. 
         public ScrollablePanel() {
              super();
              setAutoscrolls(true); // enable synthetic drag events
              addMouseMotionListener(this); // handle mouse drags
          * Handles mouse moved events.  Does nothing. 
          * @param  e  the mouse event
         public void mouseMoved(MouseEvent e) {
          * Handles mouse dragged events.  Tracks dragging for autoscrolling. 
          * @param  e  the mouse event
         public void mouseDragged(MouseEvent e) {
              scrollRectToVisible(new Rectangle(e.getX(), e.getY(), 1, 1));
          * Sets the preferred size of the panel.  This also calls
          * <code>revalidate()</code> to notify the viewport parent
          * of the change. 
          * @param  size  the preferred size of the panel
         public void setPreferredSize(Dimension size) {
              super.setPreferredSize(size);
              revalidate();
              repaint();
          * Returns the preferred size of the viewport for a view component. 
          * @return  the preferred size of the viewport
         public Dimension getPreferredScrollableViewportSize() {
              return getPreferredSize();
          * Components that display logical rows or columns should compute the
          * scroll increment that will completely expose one new row or column,
          * depending on the value of orientation.
          * @param  visibleRect  the visible area
          * @param  orientation  the orientation
          * @param  direction    the scroll direction
          * @return  the unit increment
         public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) {
              int currentPosition = 0;
              if(orientation == SwingConstants.HORIZONTAL) {
                   currentPosition = visibleRect.x;
              } else {
                   currentPosition = visibleRect.y;
              // return the number of pixels between currentPosition and the
              // nearest unit size increment in the indicated direction.
              if(direction < 0) {
                   int newPosition = currentPosition - (currentPosition / unitSize) * unitSize;
                   return (newPosition == 0) ? unitSize : newPosition;
              } else {
                   return ((currentPosition / unitSize) + 1) * unitSize - currentPosition;
          * Components that display logical rows or columns should compute the
          * scroll increment that will completely expose one block of rows or
          * columns, depending on the value of orientation.
          * @param  visibleRect  the visible area
          * @param  orientation  the orientation
          * @param  direction    the scroll direction
          * @return  the block increment
         public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) {
              if(orientation == SwingConstants.HORIZONTAL) {
                   return visibleRect.width - unitSize;
              } else {
                   return visibleRect.height - unitSize;
          * Return true if a viewport should always force the width of this
          * <code>Scrollable</code> to match the width of the viewport.
          * @return  the tracks viewport width mode
         public boolean getScrollableTracksViewportWidth() {
              return this.scrollableTracksViewportWidth;
          * Sets if a viewport should always force the width of this
          * <code>Scrollable</code> to match the width of the viewport.
          * @param  b  true if the tracks viewport width mode
         public void setScrollableTracksViewportWidth(boolean b) {
              this.scrollableTracksViewportWidth = b;
          * Return true if a viewport should always force the height of this
          * <code>Scrollable</code> to match the height of the viewport.
          * @return  the tracks viewport height mode
         public boolean getScrollableTracksViewportHeight() {
              return this.scrollableTracksViewportHeight;
          * Sets if a viewport should always force the height of this
          * <code>Scrollable</code> to match the height of the viewport.
          * @param  b  true if the tracks viewport height mode
         public void setScrollableTracksViewportHeight(boolean b) {
              this.scrollableTracksViewportHeight = b;
          * Gets the scroll unit size. 
          * @return  the scroll unit size
         public int getUnitSize() {
              return this.unitSize;
          * Sets the scroll unit size. 
          * @param  us  the scroll unit size
         public void setUnitSize(int us) {
              unitSize = us;
    }

  • Group above and left classic reports

    how can i group above and left in an existing classic reports? is there any document around here please share it to me.

    >
    Please update your forum profile with a real handle instead of "user13653962".
    how can i group above and left in an existing classic reports? What does "group above and left" mean? A demonstration layout on apex.oracle.com or here (using tags<tt>\...\</tt> tags to preserve formatting) would be helpful.
    The options for break formatting on classic reports are:
    <li>The basic built-in control break features.
    <li>Simple DIY break layout on any number of columns using analytics in the source query: +{message:id=10679160}+
    <li>Complex report layout with multi-level headings using analytics in the source query and a custom named column report template with conditional row templates: +{message:id=9816577}+
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • I updated my ipod touch 5th gen to iOS 8.2 and left it but when i got back it was in recovery mode with a red iTunes logo and i plugged it into my computer to reset my ipod and it wouldn't do it what do i do?

    I updated my ipod touch 5th gen to iOS 8.2 and left it but when I got back it was in recovery mode with a red iTunes logo and I plugged it into my computer to reset my ipod and it wouldn't do it what do I do?

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • Dreamweaver page with flash - look at this - want top and left static

    Dear Experts,
    Thank for reading this.
    http://maharishihoney.safire.com/
    in the above page it is behaving just like wanted, EXCEPT want the top and left side to be 'pinned', meaning when resizing the browser window, the top does not disappear. I like that it resizes, and scales yet, keeps the whole viewport filled. Don't like that it can disappear at the top if the browser window isnt just right.
    What do you think?
    Any idea? Appreciate so much your thots.
    Warmly with thanks,
    Hope

    have any other ideas how to accomplish above without flash?
    Certainly - jQuery is a good alternative.  To see an example, look here -
    http://www.americanwatercolorsociety.org
    ok, this is very good...
    found this jquery plugin, for anyone reading this:
    http://jquery.malsup.com/cycle/lite/
    that does fade in and out something, even on click...
    The rotation is jQuery.
    But just because you use Flash for a cosmetic element (even an image rotation) doesn't mean that's the only thing that can be on the page, you know?
    Yes, that is a good point..(-:
    Thanks again for all your kind input.....
    Warmly, Hope

  • Flash page: need to 'pin' top and left perhaps too...see

    Dear Experts,
    Thank for reading this.
    http://maharishihoney.safire.com/
    in the above page it is behaving just like wanted, EXCEPT want the top and left side (perhaps) to be 'pinned', meaning when resizing the browser window, the top does not disappear. I like that it resizes, and scales, yet, keeps the whole viewport filled. Don't like that it can disappear at the top if the browser window isnt just right.
    What do you think?
    Any ideas? Appreciate so much your thots.
    Warmly with thanks,
    Hope

    Ok, thanks again for reading...
    additional note: Am using cs3 and so far using as2
    To achieve as seen in above link: in dreamweaver set the w and h to 100% , plus setting the margin to 0 for height, width, top, bottom, plus set ' scale' to 'noscale.
    Then have also tried (not in link above) setting the publish settings to 100% for w and h, the flash does not disappear at the top, but then there is alot of white all the way around at top and bottom even with above mentioned DW settings.
    when not setting publish settings to 100% then we get what you see above in the link: it scales very nicely with no white and fills the screen the whole time, BUT it does disappear at the top.
    Thanks again for all your attention....
    Warmly, Hope
    p.s.
    2 samples of resizing in flash:
    http://www.fidmdigitalarts.com/#/home
    http://www.isurfbecause.com

  • Text and Image component Image placing not working!

    Hi Guys,
    For some odd reason, when I drop text and image component to the page I do not see the left or right option to place image in "Styles" tab.  The styles tab shows blank and by default paragraph gets placed after image.  This only happens in my site, not in Geomatrix. Am I missing something to include??
    Thanks in advance.

    geometrixx site has extended the text&image component thats why it shows that option. earlier in 5.4 version they directly overrided in geometrixx apps but now you wont find it there. But if you want to achieve this functionality then you have to override same component locally in your apps and add some more configuration to style tab as below.
    <tab4
                jcr:primaryType="cq:Widget"
                xtype="componentstyles">
                <items jcr:primaryType="cq:WidgetCollection">
                    <controlstyle
                        jcr:primaryType="cq:Widget"
                        fieldLable="ControlStyle"
                        name="./ControlStyle"
                        title="ControlStyle"
                        type="select"
                        xtype="selection">
                        <options jcr:primaryType="cq:WidgetCollection">
                            <Left
                                jcr:primaryType="nt:unstructured"
                                text="Left Align"
                                value="left"/>
                            <Right
                                jcr:primaryType="nt:unstructured"
                                text="Right Align"
                                value="right"/>
                        </options>
                    </controlstyle>
                </items>
            </tab4>

  • Upon Loading of page, Setting the Top and Left properties of a TextField

    Hello again,
    I would just like to ask for suggestions on how to successfully set the top and left properties of a Textfield as soon as the page is loaded.
    Thru Giri's help, I was able to do this with the push of a button. What I would need to do right now is to set it as soon as the page is loaded.
    Thanks!

    Hi Jim,
    It is not clear what you are trying to do here. If you want to set the top and left properties of a component when the page is loaded all you have to do is set it at design time itself. If the properties need to be set the second time the page loads then the code can be used in the event handler which submits the page.
    It would help if you could explain the use case for setting the properties of a component when the page is loaded.
    Cheers
    Giri

  • Setting the Top and Left properties during runtime, depending on...

    hi guys,
    it's me again with the same question, but same scenario...
    but probably with a bit clearer detail now...
    actually, what i wanna do is that although i have set the top and left properties at design time, as soon as the page opens i wanna be able to do the following:
    if ( userlevel == 1 ) {
    textfield1.setStyle("top: 100...");
    } else if ( userlevel == 2 ) {
    textfield1.setStyle("top: 500...");
    thanks for your time =)

    The style properties CAN be set in the prerender call. Unfortunately, the requirement is that the component (text field in your case) has to have an unset property in the Design->properties window. (Or in the actual jsp code, which should be identical).
    My main issue with this is SJC2's handling of this in the visual window. If i want to have a lot of components that are designed before run-time but placed during run-time, they all are a mess on the screen. I wish there was another property (in the properties window) that would be a checkbox, like "Use static layout". I, probably like others, am using a layout panel (grid) that has several other components in there. I want to be able to move this set of components at run-time, but to do so, I need to unset the layout panel's style. This causes my inside components to shift to the top left of my page, making a mess in the design window.
    If any SJC developers are out there, please help! It would be great to somehow mitigate the static/dynamic properties/display issue. (Like, i want to have buttons with dynamic names (for localization), but basically, i have to have a bunch of blank buttons/text on the screen for all my pages because of the static requirement. At least, MyEclipse and others will put the id value if the text/label value is blank.
    Chris

  • How do I share / unlink  the right and left channel, so I can work with them individually ?

    I use "Adobe Sound Booster CS5"
    I have a stereo soundtrack, which I only want to remove noise in only one channel (right).
    How do I share / unlink the right and left channel, so I can work with them individually ?

    When Soundbooth was first developed, it had a few extra things than what were not available in Audition. However, Audition remained the more high end sound editing tool. Soundbooth was locked to a multiple channel editing approach. In Audition, single editing is easy - you simply click the L or R at the right end of the sound channel to lock it and then you can edit the other channel only.
    Soundbooth has been discontinued and Audition now has taken its place from CS6 to the Creative Cloud.
    The above is some background info. To your current situation, you can use a workaround like:
    * Export your audio file to separate channels by File > Export > Channels to mono files.
    You will get 2 files with _L and _R suffix.
    You can then edit them separately. You can go from Mono to Stereo by the following step.
    Or
    * Choose - Edit > Insert > Channels  into New Multitrack file.
    That will separate the Left and Right Channels and add them to a new multitrack file.
    You can then click the Edit link at the top right of the channel to edit it.
    You can then save that file as a new audio file.
    Dean

  • Elements 8 [Mac IOS 10.9]:  4 X 6" borderless printing -- top and bottom 1" are cutoff in Portrait and right and left 1 " are cutoff in Landscape

    I am using Elements 8 [with a recently installed Mac IOS 10.9] and a new Epson Artisan 1430 printer .  When I print 4" X 6" borderless photos, the top and bottom 1" are now cutoff in Portrait orientation and the right and left 1" are cutoff in Landscape orientation.  I do not have the same problem printing from iPhoto.  Epson tech support says this is not an Epson problem.  Does anyone have any suggestions?  Maybe I should just install Elements 12 and see if this might solve the problem.  Any ideas?   

    When you have the problem, note the exact time: hour, minute, second.   
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above. Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first. Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • JScrollPane, I need scrol bars on top and left

    Hi,
    Is there an easy way to move the scrollbars in a scroll pane so that
    they are on the top and left. Every thing I can find shows them on the right and bottom and nothing explans how to get them left and top.
    I tried the setComponentOrientation but that does not seem to do
    anything.
    Thanks in advance,
    Pat

    The JScrollPane was designed to have scroll bar on right and bottom.
    You could add JScrollbar components on top and left of JScrollPane.
    But you cannot add other no scroll bar component to right and bottom!
    There are many ways to have scroll bar on top and left.
    One way is, not use JScrollPane, write your own JPanel, and
    has BorderLayout then put scroll bar on left and top.
    The other way is create your own JScrollPane, change the default
    layout manager use by JScrollPane, the ScrollPaneLayout.
    Create your own Layout manager to have the behaviour you like.
    Anyway, there are not esay way to just swap the scroll bar.

  • HT1476 i just goyt my ipod touch 5th generation three days ago and left it in my bed with my screen down and itunes wont read it and it wont charge what do i do??? please help me

    i just goyt my ipod touch 5th generation three days ago and left it in my bed with my screen down and itunes wont read it and it wont charge what do i do??? please help me

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Divide and Conquer

    I am trying to write an O(n) divide and conquer algorithm to search for an integer in a n*n sorted matrix (numbers in each row (column) are ascending) and output its position in the matrix if it is found. I don't have a complete understanding of the divide and conquer method so if anyone could help on both of those fronts it would be greatly appreciated.

    The value can be in 3 possible locations.Just when I thought that I had not missed anything regarding
    this problem, but nooooo. You are right. :) Thanks.
    There is an O(n) algorithm for a sorted matrix, but I don't
    think it's divide and conquer, it's more like a smart walking
    algorithm. I think following algorithm is O(n) if the matrix contains
    O(n^2) elements and it is a walking algorithm. Let k be the
    number, (i,j) be current index, and a(i,j) be a matrix value.
    1. Make a binary search on first column for k or the first number
    above and let (i,j) be that index.
    2. If a(i,j)=k we are done, else step to next column, that is (i,j)'=(i,j+1)
    3. If a(i-1,j)>=k then (i,j)'=(i-1,j) and resume at 3, else resume at 2.
    Since this will at most step through n+m nodes we get a maximum
    running time of N(ln(n)+2*n) = O(n).

Maybe you are looking for