IntelliJ Java IDE
The moose likes Swing / AWT / SWT / JFace and the fly likes JSplitter divider location tracking Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "JSplitter divider location tracking" Watch "JSplitter divider location tracking" New topic
Author

JSplitter divider location tracking

Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 273

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

-Chiru
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 7602

What is JSplitter? Is it one of your custom components? It certainly isn't part of the standard java library


[Donate a pint, save a life!] [How to ask questions]
Rob Spoor
Saloon Keeper

Joined: Oct 27, 2005
Posts: 18370

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.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
 
subject: JSplitter divider location tracking
 
Threads others viewed
WA #1.....word association
iFrame src doesn't update
SCWCD
Wanted: Looking for partner to build startup
J2ME Embedded Architect - June 11, 2002
MyEclipse, The Clear Choice