• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

In JPanel, Revalidate follows repaint method is not Working.

Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!