Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

NetBeans: Problem with JFrame background color

Thread view: 
KRouane@gmail.com - 07 Mar 2006 16:57 GMT
Hi to all,

I'm using NetBeans 5.0 and I have this odd problem with the background
color of my JFrame (I have only one frame):

a) when I create the first instance of the frame as the main window,
the background color is set to rgb(238,238,238) and the frame looks
different to its design in the GUI editor

b) when I create a second instance of the same frame the background
color is set to rgb(236,233,216) and the frame looks similar to its
design in the GUI editor

Is there any reason why the first instance when it is the main window
gets a different background?

Best regards.

- KR
Kroll, Michael - 08 Mar 2006 05:58 GMT
Hello,

KRouane@gmail.com schrieb:
> Hi to all,
>
[quoted text clipped - 4 lines]
> the background color is set to rgb(238,238,238) and the frame looks
> different to its design in the GUI editor
Do you use a jDesktopPane ?
Then it looks different to the GUI editor.

> b) when I create a second instance of the same frame the background
> color is set to rgb(236,233,216) and the frame looks similar to its
> design in the GUI editor
Is this a jInternalFrame ?
Do you make a MDI-Appl. ?

> Is there any reason why the first instance when it is the main window
> gets a different background?
>
> Best regards.
>
> - KR

Regards
Michael

Signature

http://www.smurfi.de
German NetBeans Site

KRouane@gmail.com - 08 Mar 2006 14:17 GMT
Hi Michael,

No, it's just a single JFrame.

Regards.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.