Re: JFrame resizing
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 May 2008 00:33:57 GMT
On Wed, 28 May 2008 13:34:27 +0200, Stephan Lukits
<stephan.lukits@xxxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :
if ( getSize().width != 200 || getSize().height != 100 ) {
System.out.println("Frame Size is different");
setSize( 200, 100 );
setSize should be done before you call paint. by then the Graphics
object is nailed down -- where its bits exist and how big in the regen
buffer.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- Follow-Ups:
- Re: JFrame resizing
- From: Stephan Lukits
- Re: JFrame resizing
- References:
- JFrame resizing
- From: Stephan Lukits
- JFrame resizing
- Prev by Date: Re: JFrame resizing
- Next by Date: Document Filtering Question
- Previous by thread: Re: JFrame resizing
- Next by thread: Re: JFrame resizing
- Index(es):
Relevant Pages
|