| Author |
flickering problem when i use html in jlabel text
|
sudheer kiran
Ranch Hand
Joined: Jun 26, 2008
Posts: 237
|
|
|
hi all i am facing flickering problem when i am using html in my jlabel text.any suggestion please.
|
Sudheer
SCWCD, SCJP 5
|
 |
Kevin Workman
Ranch Hand
Joined: Sep 28, 2010
Posts: 151
|
|
sudheer kiran wrote:hi all i am facing flickering problem when i am using html in my jlabel text.any suggestion please.
I suggest you post a short piece of runnable code that demonstrates the problem.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Kevin means an SSCCE.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
sudheer kiran
Ranch Hand
Joined: Jun 26, 2008
Posts: 237
|
|
i have a tree and when i select any node, its relevant text should be shown in preview.
so when i select any node, screen is flickering.so far what i observed is whole string is displayed first and wrapping is happening later.
i have tried setDoubleBuffered(true) ,is not working.
any suggestions please.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
That's not an SSCCE. What's the value of str? I also don't have the MigLayout JAR files, nor do I plan on downloading them just for one example.
|
 |
sudheer kiran
Ranch Hand
Joined: Jun 26, 2008
Posts: 237
|
|
hi thanks for the concern,actually the problem is when Jlabel text is of very lengthy ,it gets wrapped to multiple lines.
so very first single line is rendered and then wrapping to several lines that causes the flickering problem.
i have not found any solution for that,tried with double buffer enabling.nothing is working.
i hope for a solution soon.
thanks all for the response.
|
 |
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 4167
|
|
sudheer kiran wrote:i hope for a solution soon.
Doesn't look like it, or you would have already posted the SSCCE asked for.
|
luck, db
There are no new questions, but there may be new answers.
|
 |
pete stein
Bartender
Joined: Feb 23, 2007
Posts: 1561
|
|
sudheer kiran wrote:i hope for a solution soon.
thanks all for the response.
I second all the replies so far. Please create the SSCCE requested earlier.
|
 |
 |
|
|
subject: flickering problem when i use html in jlabel text
|
|
|