File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes flickering problem when i use html in jlabel text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "flickering problem when i use html in jlabel text" Watch "flickering problem when i use html in jlabel text" New topic
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: 19693
    
  20

Kevin means an SSCCE.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
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: 19693
    
  20

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: 4541
    
    5

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: flickering problem when i use html in jlabel text