This week's giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP and have Lucian Maly on-line!
See this thread for details.
Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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!
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic