Re: [dwm] question about java/swing and dwm

From: Anthony Brown <>
Date: Wed, 30 Aug 2006 12:06:45 +0200

On Wed, Aug 30, 2006 at 11:56:56AM +0200, Anselm R. Garbe wrote:
> On Wed, Aug 30, 2006 at 11:51:40AM +0200, Anthony Brown wrote:
> > I have a self-written Java programme for making simple graphs from data.
> > The UI is based on the Java/swing tools. Before using DWM the plot
> > window could be resized and then the plot would automatically be
> > redrawn, taking the new window size into account. I implemented this
> > through a ComponentListener in order to catch resize events. This no
> > longer works when using DWM. But I noted that an application such as
> > Eclipse does respond the way one expects to resizing of the window.
> >
> > I'm sure my application is written such that implicit assumptions are
> > made about the window manager but I don't know in which direction to
> > look for a solution to this problem.
> >
> > Any suggestions?
> Is the behavior the same in tiled and floating mode?

Yes, I forgot to mention that I noted this in both tiled and floating
mode. To be a little more specific, the plot is drawn in a JPanel
contained inside a JFrame. Resizing the latter has not effect on the
size of the plot. So the JPanel (to which the ComponentListener is
added) seems not to be notified of the resize event.

Received on Wed Aug 30 2006 - 12:06:51 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:30:42 UTC