Re: Using "setSize" with a Frame.

1998-11-30 Thread Nigel Gamble
On 29 Nov 1998, Juergen Kreileder wrote: > > Nelson Minar writes: > > >> If I use setSize(100,100); I get a frame that's smaller than that: > >> something like 90x72 I think: I've deleted the source and can't be > >> bothered retyping it. > > Nelson> Top level frame sizes unh

Re: Using "setSize" with a Frame.

1998-11-29 Thread Juergen Kreileder
> Nelson Minar writes: >> If I use setSize(100,100); I get a frame that's smaller than that: >> something like 90x72 I think: I've deleted the source and can't be >> bothered retyping it. Nelson> Top level frame sizes unhelpfully include the size of the Nelson> window dec

Re: Using "setSize" with a Frame.

1998-11-29 Thread Juergen Kreileder
> John Summerfield writes: John> On 29 Nov 1998, Juergen Kreileder wrote: >> It opens a frame with the size 1100x100. John> You and I should read more closely. 1100x100 works correctly John> here. 100x100 doesn't. 100x100 works too. Juergen

Re: Using "setSize" with a Frame.

1998-11-29 Thread Nelson Minar
>If I use setSize(100,100); I get a frame that's smaller than that: >something like 90x72 I think: I've deleted the source and can't be >bothered retyping it. Top level frame sizes unhelpfully include the size of the window decorations - titlebar and borders. It was a really bad choice, IMHO, but

Re: Using "setSize" with a Frame.

1998-11-29 Thread John Summerfield
On Sun, 29 Nov 1998, Pavel Tolkachev wrote: > > Also be sure that your window manager ALLOWS so small Frames at all. > Otherwise, peer can prevent your setSize() from doing its work. If I use setSize(100,100); I get a frame that's smaller than that: something like 90x72 I think: I've deleted th

Re: Using "setSize" with a Frame.

1998-11-29 Thread Pavel Tolkachev
> > It opens a frame with the size 1100x100. > You and I should read more closely. 1100x100 works correctly here. 100x100 doesn't. It's expected behavior of java. First time 'releasing' window or other native component you indirectly call Component.addNotify() that adds native peer to component.

Re: Using "setSize" with a Frame.

1998-11-28 Thread John Summerfield
On 29 Nov 1998, Juergen Kreileder wrote: > Ok, the code does exactly what it's supposed to do on my machine: > It opens a frame with the size 1100x100. > > What window managers do you guys use? What JDK version? fvwm2 -cmd FvwmM4 -debug /etc/X11/AnotherLevel/fvwm2rc.m4 XFree86-3.3.2-5 RH 5.0++ J

Re: Using "setSize" with a Frame.

1998-11-28 Thread John Summerfield
On 29 Nov 1998, Juergen Kreileder wrote: > It opens a frame with the size 1100x100. You and I should read more closely. 1100x100 works correctly here. 100x100 doesn't. Cheers John Summerfield http://os2.ami.com.au/os2/ for OS/2 support. Configuration, networking, combined IBM ftpsites index.

Re: Using "setSize" with a Frame.

1998-11-28 Thread Juergen Kreileder
> John Summerfield writes: John> On Fri, 27 Nov 1998, Karthik Vishwanath wrote: >> Hi all, >> when i create an application as : >> public class Myapp extends Frame >> { >> public Myapp() >> { >> super("MyApp"); >> setSize(100,100); >> show(); >> }

Re: Using "setSize" with a Frame.

1998-11-28 Thread John Summerfield
On Fri, 27 Nov 1998, Karthik Vishwanath wrote: > Hi all, > when i create an application as : > public class Myapp extends Frame > { > public Myapp() > { > super("MyApp"); > setSize(100,100); > show(); > } > } > > and run it, the setSize does not re

Re: Using "setSize" with a Frame.

1998-11-28 Thread Uncle George
isn't a graduate trainee an undergraduate? sorry that this doesn't answer your question, but your signature seemed interesting. Karthik Vishwanath wrote: > | Graduate trainee, | > |

Re: Using "setSize" with a Frame.

1998-11-28 Thread Sean Starkey
On Fri, 27 Nov 1998, Karthik Vishwanath wrote: > when i create an application as : > public class Myapp extends Frame > { > public Myapp() > { > super("MyApp"); > setSize(100,100); > show(); > } > } > > and run it, the setSize does not resize the f

Re: Using "setSize" with a Frame.

1998-11-27 Thread Juan Carlos Zuluaga
Hi. There is a problem with some components (Component) when you want to change it size. You must overwrite the method getPrefferedSize, and it works. Or before caliing show method you write the pack method. Karthik Vishwanath wrote: > Hi all, > when i create an application as : > pu