• Post Reply Bookmark Topic Watch Topic
  • New Topic

Panel Flickering  RSS feed

 
mitesh mehta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application wherein I am dragging a Panel which acts like a SplitPane.
I have added a mouseDrag event for that particular panel.But on dragging the panel the adjacent components as well as the Panel itself Flickers and cannot be dragged smoothly.
Can anyone plz help as to what has to be done to avoid the flickering.
Waiting for ur replies.
Thank you.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using AWT or Swing? If Swing, why not use JSplitPane. In any case, please post your code so we can see exactly what you are doing...
 
mitesh mehta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well i am using Swing.And i am not using JSplitPane because there are some functionality of JSplitPane which i want to avoid.
Can u find any solution to stopp flickering?
 
Martin Schneider
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had same problem with Jscrollpane and JPanel. Solution was

Maybe something like this might work for you?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!