Re: How Do I Write Listeners for Resizing or Maximizing a Window?
- From: "Joan" <Joan@xxxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 13:48:22 -0500
<kvnsmnsn@xxxxxxxxxxx> wrote in message news:1125427234.598533.11270@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm familiar enough with Java that I can create a <JPanel> object and
build listeners that execute when the user clicks a mouse in it, or
drags a mouse across it, or moves a mouse off of it. My question now
is how do I write listeners that execute when the user resizes the
window or maximizes the window? I've looked through the classes at
"java.sun.com/j2se/1.5.0/docs/api/index.html", but haven't found any-
thing that looks like it would work. Could someone give me some
pointers on this? Any information would be greatly appreciated.
// consider these program fragments
class xxx implements ComponentListener {}
yyy.addComponentListener(this);
public void componentMoved(ComponentEvent e) {}
public void componentResized(ComponentEvent e) {}
.
- Follow-Ups:
- References:
- Prev by Date: Re: About abstract class and abstract method
- Next by Date: Re: Commenting in Java
- Previous by thread: How Do I Write Listeners for Resizing or Maximizing a Window?
- Next by thread: Re: How Do I Write Listeners for Resizing or Maximizing a Window?
- Index(es):
Relevant Pages
|
|