Search:

Type: Posts; User: copeg

Search: Search took 0.10 seconds.

  1. Replies
    10
    Views
    6,752

    Re: Dynamically Sized Scrollable JPanels

    Isn't this one of those situations? No components are being added to a visible container, only an Icon being set. If I run the above example no resizing occurs unless both setPreferredSize and...
  2. Replies
    10
    Views
    6,752

    Re: Dynamically Sized Scrollable JPanels

    Cool. The first thing at least with this code, is that you are adding the panel to the frame instead of the JScrollPane. Next, if I run the code setting the preferredsize as follows, it works for me:...
  3. Replies
    10
    Views
    6,752

    Re: Dynamically Sized Scrollable JPanels

    Did the preferredSize change? Can you post a small portion of code that reproduces the issue?
  4. Replies
    10
    Views
    6,752

    Re: Dynamically Sized Scrollable JPanels

    When you add the image to the JPanel (or component within), first set the preferredSize of the JPanel (or component within) so that it incorporates the full size of the image (or whichever dimensions...
Results 1 to 4 of 4