[SWINGX-1344] Adding PromptSupport removes AntiAliasing Created: 14/Sep/10  Updated: 28/Jan/11  Resolved: 01/Nov/10

Status: Resolved
Project: swingx
Component/s: Misc Component
Affects Version/s: 1.6.2
Fix Version/s: 1.6.3

Type: Bug Priority: Major
Reporter: aloleary Assignee: Karl Schaefer
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 1,344

 Description   

Adding simple PromptSupport to a JTextArea disables AntiAliasing

PromptSupport.init("Enter...", Color.BLUE, Color.BLACK, textArea);

If I comment out that line - I have nice AntiAliased text in My TextArea,
however if I turn on the prompt support - I get clunky text rendered



 Comments   
Comment by Karl Schaefer [ 14/Sep/10 ]

Clunky for the promt or clunky for the text entered by the user?

Can you provide a test case?

Comment by aloleary [ 14/Sep/10 ]

Sorry I should have been more clear.

The Prompt Text looks ok...

But the Text on the TextArea itself is Aliased.

A test case could be hard as I dont know of a way of testing the rendering
quality but it really is a very simple case of:

JTextArea ta = new JTextArea();
ta.setText("Hello World");

// On a machine that supports AntiAliasing + JDK 6 this will render with
AntiAliasing by default as AWT picks up by default

Simply adding the following line

JTextArea ta = new JTextArea();
PromptSupport.init("Enter...", Color.BLUE, Color.BLACK, ta );

// you will now see the Enter... prompt correctly. But when you type text in the
text area - it will be Aliased

Comment by Karl Schaefer [ 14/Sep/10 ]

What OS and Java version?

Comment by aloleary [ 14/Sep/10 ]

Specifically here:

Vista SP2
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)

I can test on other OS's if required

Comment by Karl Schaefer [ 14/Sep/10 ]

Can you please see if the problem is reproducible on Win XP? I don't have
access to a Vista machine. Hopefully this is not OS-specific.

Comment by aloleary [ 14/Sep/10 ]

OK I think I might have found something.

I think it's not SwingX bug an interaction between SwingX and my Look and Feel
(Substance)

I will verify with the Substance developer

Comment by Karl Schaefer [ 07/Oct/10 ]

Can you give me an update on this? Is this a SwingX issue?

Comment by aloleary [ 08/Oct/10 ]

Hello.. I dug into this and it is a Substance issue - NOT SwingX

For anyone interested:

Unfortunately Substance is now 'parked' and does not look like this will be
resolved in Substance

Details:

https://substance.dev.java.net/servlets/ReadMsg?list=users&msgNo=1546

Happy for you to close this

Comment by Karl Schaefer [ 08/Oct/10 ]

Marking invalid per reporter; not a SwingX issue.

Generated at Tue May 26 07:02:46 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.