• 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

Resizing, Dragging and Rotating

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone! I will try to explain myself and I apologize ahead of time in case I don't accomplish it(English is not my first language).
Well, I am trying to create a component which can be rotated, re-sized and dragged (almost got it working). The problem is the following, I re-size it and it re-sizes as much as I drag it, however, it need to re-size to the size of the diagonal so when it rotates is still visible. If you were so kind to compile the code I have attached and see it working so you get a better idea of I am saying. Thanks everyone for your time and help!


This is my main class



This is the class definition of the component that is rotated



This is the MouseListener

 
reply
    Bookmark Topic Watch Topic
  • New Topic