|
Replies:
5
-
Last Post:
Jul 2, 2008 12:19 AM
by: kirillcool
|
|
|
|
|
|
|
JEditorPane and Nimbus
Posted:
Apr 3, 2008 11:53 PM
|
|
|
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
|
|
|
|
|
|
|
Re: JEditorPane and Nimbus
Posted:
Apr 4, 2008 8:24 AM
in response to: snoppi
|
|
|
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
|
|
|
|
|
|
|
|
Re: JEditorPane and Nimbus
Posted:
Apr 5, 2008 1:11 AM
in response to: Richard Bair
|
|
|
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
|
|
|
|
|
|
|
|
Re: JEditorPane and Nimbus
Posted:
Apr 10, 2008 2:05 PM
in response to: snoppi
|
|
|
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
|
|
|
|
|
|
|
|
Re: JEditorPane and Nimbus
Posted:
Jul 1, 2008 2:40 PM
in response to: snoppi
|
|
|
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
|
|
|
|
|
|
|
|
Re: JEditorPane and Nimbus
Posted:
Jul 2, 2008 12:19 AM
in response to: Jasper Potts
|
|
|
Will that be respected by all core look-and-feels?
|
|
|
|
|