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

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

On Wed, Aug 30, 2006 at 12:09:10PM +0200, Julian Romero wrote:
> On 8/30/06, Anthony Brown <agabrown_AT_xs4all.nl> 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.
> >
> If Eclipse and others works right, perhaps you can see its source code
> (better w/ something smaller, there are plenty of swing apps out
> there)

Eclipse uses SWT, whereas Anthony mentioned he uses Swing.

Regards,

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

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