• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dragging all sorts of JComponents?  RSS feed

 
Emil Karlsson
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helle dear Javaprogrammers!
I have a JPanel with GridBagLayout that I have done Drop enabled. To this JPanel I add some JTextFields, a couple of JButtons, JCheckBox and so on. What I want to is to be able to drag the added components to another cell in the GridBagLayout.
Is it anyone who has done something similar?
Every idea is welcome!
/Emil
 
Emil Karlsson
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I finnaly found a solution on my problems.
/Emil
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Care to share your solution with the rest of us?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!