Search:

Type: Posts; User: brajan1984

Search: Search took 0.36 seconds.

  1. Replies
    7
    Views
    1,634

    Re: Scroll position from the past (SSCCE)

    Here is repaired code. Now JScrollPane should be (400,400) - variable mainSize. Also I changed LayoutManager of JScrollPane to SpringLayout which is, I think, most suitable for me.

    Now calling...
  2. Replies
    7
    Views
    1,634

    Re: Scroll position from the past (SSCCE)

    I don't understand what You want to do...?

    The goal is to make all three steps in one button click - somehow force to repaint once or wait when full repaint is finished.
  3. Replies
    7
    Views
    1,634

    Re: Scroll position from the past (SSCCE)

    First click:

    Red JPanel i moving down by 50 and resizes to (1000, 300)

    Second click:

    Horizontal scrollbar moves to 50% of scrollbar length

    Third click:
  4. Replies
    7
    Views
    1,634

    Re: Scroll position from the past (SSCCE)

    OK. I simplify the problem.

    Please compile program below and tell me why program is setting correct position of JPanel and JScrollPanel scrollbars after 3 clicks of button. It should take one...
  5. Replies
    7
    Views
    1,634

    Scroll position from the past (SSCCE)

    Hello! [Please go to second post in this thread first]

    First of all, in attachments is SSCCE program which shows main problem.

    You should complie it with (after going to folder javatest_SSCCE):...
  6. Re: Repaint immediately JPanel (with PDFRenderer)

    Please delete this thread
  7. Repaint immediately JPanel (with PDFRenderer)

    Hello everyone!
    At the beggining - I'm novice in Java so my question is quite basic.
    I have a problem with repainting my JPanel. I draw an image on JPanel and it doesn't appear. Picture is read...
  8. Replies
    6
    Views
    2,634

    [SOLVED] Re: JScrollPane and programatic scrolling

    Hello again!
    Thank you for your time.

    I did it! The problem lies in Netbeans designer. When I put my PicViewer into JScrollPane NetBeans is making some kind of constraints which don't allow to...
  9. Replies
    6
    Views
    2,634

    [SOLVED] Re: JScrollPane and programatic scrolling

    Ok. First of all sorry for break but I was defeated by flu. Now I see the world so I can continue. I won't be adding add any files now but I will try to describe my problem the best I can with code...
  10. Replies
    6
    Views
    2,634

    [SOLVED] Re: JScrollPane and programatic scrolling

    Hello Norm!
    Thanks for the answer. I tried to run project on another computer and get error with missing PDFRenderer-0.9.1.jar library. Library is avaiable in folder dist/lib/PDFRenderer-0.9.1.jar,...
  11. Replies
    6
    Views
    2,634

    [SOLVED] JScrollPane and programatic scrolling

    Hello everyone!
    I was trying get answer on other forum but without any reaction so I decided to try here :).

    I'm new in JAVA and I'm migrating from C#. I make a simple picture viewer with...
Results 1 to 11 of 11