Flowlayout, JPanel and JScrollPane: Scrolling vertically impossible?

From: loquak (liam_parc_at_hotmail.com)
Date: 03/27/04

  • Next message: Installman Zhong: "Problems when using swing under linux"
    Date: Sat, 27 Mar 2004 03:14:34 +0200
    
    

    Hello.

    Horizontal scrolling works just fine with a JPanel embedded in a JScrollPane
    using FlowLayout. When I change setPreferredSize to enable wrapping, and
    when components inside the panel go out of view, the vertical scrollbar is
    never invoked!! So, what are the proper components to get a panel with
    consecutive items vertically scrollable?

    Thank you very much!


  • Next message: Installman Zhong: "Problems when using swing under linux"

    Relevant Pages

    • Re: Flowlayout, JPanel and JScrollPane: Scrolling vertically impossible?
      ... >> JScrollPane using FlowLayout. ... >> enable wrapping, and when components inside the panel go out of view, ... > scrolling). ... > (And therefore the preferredSize value returned by the panel would ...
      (comp.lang.java.gui)
    • Re: I have an issue with an image getting corrupted upon scroll in a panel.
      ... The GDI+ FAQ shows you how to save without compression. ... corrupted and disappears upon scrolling within a panel. ...
      (microsoft.public.dotnet.framework.drawing)
    • Re: I have an issue with an image getting corrupted upon scroll in a panel.
      ... the code project to come up with an overlayed map image, ... corrupted and disappears upon scrolling within a panel. ... If there is no way around this picturebox in a panel redraw issue; ...
      (microsoft.public.dotnet.framework.drawing)
    • Re: Drawing Lines on specific panel
      ... the problem is that my form heightis smaller then my panel height, so i have to scroll the panel up and down to see all it's content. ... As has been mentioned, in the Windows display paradigm requires that you always respond to the Paint event, drawing your image each time. ... it sounds as though you are having trouble with the scrolling aspect of the drawing. ... You can address this either by using the Panel's AutoScrollPosition property to offset your own drawing, or you can just "nest" your custom-drawn Panel inside a different Panel ...
      (microsoft.public.dotnet.languages.csharp)
    • I have an issue with an image getting corrupted upon scroll in a panel.
      ... the code project to come up with an overlayed map image, ... unit icons on top. ... corrupted and disappears upon scrolling within a panel. ...
      (microsoft.public.dotnet.framework.drawing)