• 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

Image is not resizing as well as aslo not Dragging

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i am developing an application that drag image in that frame and can also resize image as per user requirement using mouse cursor.

but when i am dragging image it doesn't dragged it and show an error :

> Exception in thread "AWT-EventQueue-0" java.lang.Error: Destination
> component not connected to component tree hierarchy at
> javax.swing.SwingUtilities.convertPoint(Unknown Source) at
> logic.PictureEditor$MouseHandler.mouseDragged

this error occur when i am using following SwingUtility, point convert code :

here `PictureEditor` is name of main class of Application



and when i am using following code then it dragged whole window :



here label is Jlabel used to display image.
& all this code is inside MouseHandler class which is subclass of PictureEditor class.
and MouseHandler class extend MouseAction
 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
crossposted on SO
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Keyur, please BeForthrightWhenCrossPostingToOtherSites.
 
Slime does not pay. Always keep your tiny ad dry.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic