🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1588

Re: Frame Pane, oh the pain, cant get my colour...

#1588
From: kelvinq
Date: Mon, 20 Oct 2003 05:09
14 lines
1333 bytes
and the answer is:
    int j = 606;
    this.setSize(j,j);
    this.repaint();

in the Frame, where 606 is bigger than the height of the parent of the
Frame.
(In theory this should be available via    
this.getParent().getHeight() + 1
but that was null pointer,so I hardcoded the value...quit while you'e
ahead.

Dont ask me why a child paints in default colour, until it is taller
than its parent, its just a bug in Java|JBuilder...
Technical Details
Message-ID: <67d8e1e3.0310192109.520d416e@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <67d8e1e3.0310191832.56605370@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e5eaf983143c8b9a
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-10-19 22:09:21 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: kelvinq415@yahoo.com (kelvinq)
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Frame Pane, oh the pain, cant get my colour...
Date: 19 Oct 2003 22:09:20 -0700
Organization: http://groups.google.com
Lines: 14
Message-ID: <67d8e1e3.0310192109.520d416e@posting.google.com>
References: <67d8e1e3.0310191832.56605370@posting.google.com>
NNTP-Posting-Host: 203.134.5.83
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1066626561 12886 127.0.0.1 (20 Oct 2003 05:09:21 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 20 Oct 2003 05:09:21 +0000 (UTC)