Making Scrollbars Appear
From: kag ("kag")
Date: 07/23/04
- Next message: SPG: "Re: Making Scrollbars Appear"
- Previous message: Tarlika Elisabeth Schmitz: "Re: icon vanishes if dialog is not resizable"
- Next in thread: SPG: "Re: Making Scrollbars Appear"
- Reply: SPG: "Re: Making Scrollbars Appear"
- Reply: Thomas Fritsch: "Re: Making Scrollbars Appear"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 23 Jul 2004 08:45:19 -0700
I have a KPanel class derived from JPanel. It is embedded in a JScrollPane.
Initially the panel is blank and does not require scrollbars. As information
is written to the panel, its size grows until scrollbars are required. I am
overriding getPreferredSize in KPanel. Whenever information is added to the
panel, I call repaint() on the JScrollPane, but this does not result in a
call to KPanel's getPreferredSize. If I manually resize the window,
getPreferredSize does get called and the scrollbars appear. How can I get
the scrollbars to appear programmatically?
- Next message: SPG: "Re: Making Scrollbars Appear"
- Previous message: Tarlika Elisabeth Schmitz: "Re: icon vanishes if dialog is not resizable"
- Next in thread: SPG: "Re: Making Scrollbars Appear"
- Reply: SPG: "Re: Making Scrollbars Appear"
- Reply: Thomas Fritsch: "Re: Making Scrollbars Appear"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|