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

From: Anselm R. Garbe <arg_AT_10kloc.org>
Date: Wed, 30 Aug 2006 12:15:00 +0200

On Wed, Aug 30, 2006 at 12:06:45PM +0200, Anthony Brown wrote:
> 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.

Does the behavior occurs in wmii and dwm hg tip as well?
(Actually did you tried a different JDK, e.g. a 1.4.x JDK? I
 heared that there are issues in newer JDKs concerning the X11
 backend of Swing).

Regards,

-- 
 Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
Received on Wed Aug 30 2006 - 12:15:00 UTC

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