🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
5 messages
5 total messages Started by Katerina K. Tue, 12 Oct 2004 09:23
JButton appears black
#859
Author: Katerina K.
Date: Tue, 12 Oct 2004 09:23
12 lines
1432 bytes
Hello,

I have created an application with JBuilder X Enterprise edition, which uses 
the JDK 1.4 (java version 1.4.2_01-b06). Through the JBuilder I created an 
.exe file. When I run that file from another PC, on which I have installed 
the J2SE Runtime Environment 5.0, the JButton which appears on the first 
screen appears totally black (no text or nothing). In the following screens, 
where there are also JButtons, they appear normally.
Any idea why this is happening?

Thanks a lot
Katerina
Re: JButton appears black
#860
Author: John McGrath [TeamB]
Date: Thu, 14 Oct 2004 07:40
23 lines
1742 bytes
On 10/12/2004 at 5:23:34 AM, Katerina K. wrote:

> I have created an application with JBuilder X Enterprise edition, which
> uses the JDK 1.4 (java version 1.4.2_01-b06). Through the JBuilder I
> created an .exe file. When I run that file from another PC, on which I
> have installed the J2SE Runtime Environment 5.0, the JButton which
> appears on the first screen appears totally black (no text or nothing).
> In the following screens, where there are also JButtons, they appear
> normally.  Any idea why this is happening?

I presume there must be something about the code for the first screen that
triggers an incompatibility between Java 1.4.2 and Java 5.0.

Have you tried to narrow down the problem so that you can post a test case?

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: JButton appears black
#863
Author: Katerina K.
Date: Mon, 18 Oct 2004 09:01
38 lines
2555 bytes
A friend suggested setting the background color specifically, since he had 
the same problem with Delphi and the default color of buttons. That worked 
just fine. The funny thing is, that if I set for example the Background 
color to black, I do not see the button black when I run the application, 
except for one and only PC (out of 4 that I have tested it on) where it 
actually appears black. My PC seems to ignore it (the button appears with 
its default color and not black).

Thank you for your time,
Katerina


"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message 
news:416e2d78@newsgroups.borland.com...
> On 10/12/2004 at 5:23:34 AM, Katerina K. wrote:
>
>> I have created an application with JBuilder X Enterprise edition, which
>> uses the JDK 1.4 (java version 1.4.2_01-b06). Through the JBuilder I
>> created an .exe file. When I run that file from another PC, on which I
>> have installed the J2SE Runtime Environment 5.0, the JButton which
>> appears on the first screen appears totally black (no text or nothing).
>> In the following screens, where there are also JButtons, they appear
>> normally.  Any idea why this is happening?
>
> I presume there must be something about the code for the first screen that
> triggers an incompatibility between Java 1.4.2 and Java 5.0.
>
> Have you tried to narrow down the problem so that you can post a test 
> case?
>
> -- 
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
>    http://www.JPMcGrath.net/newsgroups/e-mail.html 
Re: JButton appears black
#864
Author: Lori M Olson [TeamB]
Date: Mon, 18 Oct 2004 17:58
37 lines
2371 bytes
Katerina K. wrote:

> A friend suggested setting the background color specifically, since he had 
> the same problem with Delphi and the default color of buttons. That worked 
> just fine. The funny thing is, that if I set for example the Background 
> color to black, I do not see the button black when I run the application, 
> except for one and only PC (out of 4 that I have tested it on) where it 
> actually appears black. My PC seems to ignore it (the button appears with 
> its default color and not black).
> 
> Thank you for your time,
> Katerina
> 

This is probably yet another of the many manifestations of video card 
driver issues that seem to crop up from time to time in Java.  That one 
PC where it shows up as black probably has a different video card from 
the other PC's you tested.

-- 

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
     http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
     http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
     http://www.visi.com/~gyles19/fom-serve/cache/1.html
Re: JButton appears black
#907
Author: dar7yl
Date: Sun, 21 Nov 2004 02:58
46 lines
2720 bytes
could it be that one or more of the components has the Opaque property set 
incorrectly?

regards,
    Dar7yl

"Lori M Olson [TeamB]" <javadragon@techie.com> wrote in message 
news:4174050a$1@newsgroups.borland.com...
> Katerina K. wrote:
>
>> A friend suggested setting the background color specifically, since he 
>> had the same problem with Delphi and the default color of buttons. That 
>> worked just fine. The funny thing is, that if I set for example the 
>> Background color to black, I do not see the button black when I run the 
>> application, except for one and only PC (out of 4 that I have tested it 
>> on) where it actually appears black. My PC seems to ignore it (the button 
>> appears with its default color and not black).
>>
>> Thank you for your time,
>> Katerina
>>
>
> This is probably yet another of the many manifestations of video card 
> driver issues that seem to crop up from time to time in Java.  That one PC 
> where it shows up as black probably has a different video card from the 
> other PC's you tested.
>
> -- 
>
> Regards,
>
> Lori Olson [TeamB]
>
> ------------
>
> Save yourself, and everyone else, some time and search the
> newsgroups and the FAQ-O-Matic before posting your next
> question.
>
> Google Advanced Newsgroup Search
>     http://www.google.ca/advanced_group_search
> Other Newsgroup Searches:
>     http://www.borland.com/newsgroups/ngsearch.html
> Joi Ellis's FAQ-O-Matic:
>     http://www.visi.com/~gyles19/fom-serve/cache/1.html
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads