The Source for Java Technology Collaboration

Home » java.net Forums » Java Desktop Technologies » Swing & AWT

Thread: JEditorPane and Nimbus

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 5 - Last Post: Jul 2, 2008 12:19 AM by: kirillcool
snoppi

Posts: 2
JEditorPane and Nimbus
Posted: Apr 3, 2008 11:53 PM
 
  Click to reply to this thread Reply

Hi,

I tryed out the 1.6_10 beta with Nimbus.
When I set opaque to false for a JEditorPane, I do not see the Panel behind.
Without Nimbus everything is fine.
Do I have to take care about any other settings?

Bye

Snoppi

Richard Bair
Re: JEditorPane and Nimbus
Posted: Apr 4, 2008 8:24 AM   in response to: snoppi
  Click to reply to this thread Reply

Hi Snoppi,

I think you may have found a bug!

Richard

On Apr 3, 2008, at 11:53 PM, swing@javadesktop.org wrote:

> Hi,
>
> I tryed out the 1.6_10 beta with Nimbus.
> When I set opaque to false for a JEditorPane, I do not see the Panel
> behind.
> Without Nimbus everything is fine.
> Do I have to take care about any other settings?
>
> Bye
>
> Snoppi
> [Message sent by forum member 'snoppi' (snoppi)]
>
> http://forums.java.net/jive/thread.jspa?messageID=267693


snoppi

Posts: 2
Re: JEditorPane and Nimbus
Posted: Apr 5, 2008 1:11 AM   in response to: Richard Bair
 
  Click to reply to this thread Reply

Ok.
Do I have to post it anywhere? I had a look on the bug-site but there was written, that Java 6 is ready and bugs are only welcome for Java 7.
I thought because 1.6_10 is BETA, perhaps such things could be repaired too.

Snoppi

Richard Bair
Re: JEditorPane and Nimbus
Posted: Apr 10, 2008 2:05 PM   in response to: snoppi
  Click to reply to this thread Reply

You should be able to post it to the normal bug track at bugs.sun.com.

Richard

On Apr 5, 2008, at 1:11 AM, swing@javadesktop.org wrote:

> Ok.
> Do I have to post it anywhere? I had a look on the bug-site but
> there was written, that Java 6 is ready and bugs are only welcome
> for Java 7.
> I thought because 1.6_10 is BETA, perhaps such things could be
> repaired too.
>
> Snoppi
> [Message sent by forum member 'snoppi' (snoppi)]
>
> http://forums.java.net/jive/thread.jspa?messageID=267839


Jasper Potts
Re: JEditorPane and Nimbus
Posted: Jul 1, 2008 2:40 PM   in response to: snoppi
  Click to reply to this thread Reply

What you are seeing is expected as JEditorPane and most Nimbus
components are non-opaque by default so that they can have rounded
corners and focus painted as a outer glow. To solve the case of when
you want to make a component transparent we added a fix in 6u10 b26 or
b27 so if you set the background color to a color with a alpha value
of 0. eg

JEditorPane editor = new JEditorPane();
editor.setBackground(new java.awt.Color(0,0,0,0));

That should give you what you are after.

Jasper

On 4 Apr 2008, at 07:53, swing@javadesktop.org wrote:

> Hi,
>
> I tryed out the 1.6_10 beta with Nimbus.
> When I set opaque to false for a JEditorPane, I do not see the Panel
> behind.
> Without Nimbus everything is fine.
> Do I have to take care about any other settings?
>
> Bye
>
> Snoppi
> [Message sent by forum member 'snoppi' (snoppi)]
>
> http://forums.java.net/jive/thread.jspa?messageID=267693


kirillcool

Posts: 795
Re: JEditorPane and Nimbus
Posted: Jul 2, 2008 12:19 AM   in response to: Jasper Potts
 
  Click to reply to this thread Reply

Will that be respected by all core look-and-feels?




 XML java.net RSS