• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

rolling a component allover JDesktopPane

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai everybody,
i want to roll(drag) a component allover jDesktopPane.
i have achieved this by calling component's setBounds() method consistantly from mouseDragged method.
the dragging is actually takes place.but the problom is 'flickering'.string 'flickering' occurs while dragging the component.how can i resolve this 'flickering'?.
i think that using dnd can solve this problom.how can implement dnd if both drag source and drop target is same?.or how can i use dnd for solving the above mentioned problom?.
anyone knows plz ..
wishing u a happy day ..
basha
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"basha" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Hmmmm.... maybe you should explain more of what you are trying to do...

Why are you using a JDesktopPane? Are you going to be using JInternalFrames?

You probably don't need to use DnD functionality if the component you are moving always stays in the same container... DnD is for moving things between containers.

Here's a short example that may help you out....



Thanks! and welcome to the JavaRanch!
 
reply
    Bookmark Topic Watch Topic
  • New Topic