Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

flickering problem when i use html in jlabel text

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all i am facing flickering problem when i am using html in my jlabel text.any suggestion please.
 
Kevin Workman
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20529
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kevin means an SSCCE.
 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20529
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sudheer kiran wrote:i hope for a solution soon.

Doesn't look like it, or you would have already posted the SSCCE asked for.
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic