• Post Reply Bookmark Topic Watch Topic
  • New Topic

In JPanel, Revalidate follows repaint method is not Working.  RSS feed

 
Gowtham Subramaniam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have been working for Drag and Drop Functionality. I just brief about my Problem :
1. Drag element from File System and Drop into JPanel A [Componets are visible ]
2. Again Dragging Element from JPanel A and Drop into another JPanel B. [Componets are visible ]
3. At last, Dragging Element from JPanel B and Drop into another JPanel A [Componets are not visible]

Now, I used revalidate and repaint method to refresh the Jpanel A. But no result still not visible. But invisible component is able to drag and Drop

I tested Component visibilty by,

isVisible(), isShowing(), isOpaque(). These methods are returning true,but not visible in JPanel A.


Refer my code :



Please get back to me with answer
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!