Re: swing and syntax question

1999-09-28 Thread John N. Alegre
There always has to be one top level peer to connect to the video hardware. I think the correct is that Window, Dialog and Frame are heavyweight. I the awt every component was heavyweight. With Swing, Java is doing the drawing for button, scroller etc. john On 27-Sep-99 berry wrote: > > >> >

Re: swing and syntax question

1999-09-27 Thread Vartan Piroumian
Swing still has four heavyweight containers. These must have native peers. They must. At some point, there must be a window that has a corresponding native platform window (Motif, Windows, whatever). There must be some native window that can be displayed by the native platform. Usually this

Re: swing and syntax question

1999-09-27 Thread Michael Emmel
berry wrote: > > > Another question: > > > > > > With Swing classes, at what point is native code actually > > > called to do drwing . If you could tell me, I am wondering what classes > it > > > happens in and what is specifically happening. In 1.1 it would be > > > the peer classes. > > > > I

Re: swing and syntax question

1999-09-27 Thread berry
> > Another question: > > > > With Swing classes, at what point is native code actually > > called to do drwing . If you could tell me, I am wondering what classes it > > happens in and what is specifically happening. In 1.1 it would be > > the peer classes. > > I know that one : ) > swing uses

Re: swing and syntax question

1999-09-26 Thread Will Koffel
At 8:48 PM -0400 9/25/99, berry wrote: >Hi, > >I was wondering if anyone knows what this following >code means? > >public Rectangle getBounds() { >return JFrame.this.getBounds(); >} Hi Berry. I didn't feel like anyone has given a clear enough response here, so in case you still don't see

Re: swing and syntax question

1999-09-25 Thread alx
On Sat, 25 Sep 1999, berry wrote: > Hi, > > I was wondering if anyone knows what this following > code means? > > public Rectangle getBounds() { > return JFrame.this.getBounds(); > } Hmm... I would say it's getting the bounds of the frame containing the rectangle. It doesn't look like

Re: swing and syntax question

1999-09-25 Thread Michael Emmel
berry wrote: > Hi, > > I was wondering if anyone knows what this following > code means? > > public Rectangle getBounds() { > return JFrame.this.getBounds(); > } That sort of code is used in inner classes. One of the swing programmers seems to make a habit of it. If you have a lot of in

swing and syntax question

1999-09-25 Thread berry
Hi, I was wondering if anyone knows what this following code means? public Rectangle getBounds() { return JFrame.this.getBounds(); } >From what I can understand it is making an infinate series of recursive calls. I find this kind of code all over Sun's source. Another question: Wi