• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSplitter divider location tracking

 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I want to take the divloaction when user Drag the Divder location to some place

Which is the best listner? and Mouse dragged event is not happening

Thanks
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is JSplitter? Is it one of your custom components? It certainly isn't part of the standard java library
 
Rob Spoor
Sheriff
Posts: 20817
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He probably means JSplitPane.

You can add a PropertyChangeListener to the JSplitPane and listen for changes to the JSplitPane.DIVIDER_LOCATION_PROPERTY property. The values will be Integer objects.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!