Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
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
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Swing / AWT / SWT
Swing
Mahesh Mamani
Ranch Hand
Posts: 110
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How to change cursor type on mouse-move over TableHeader?
Manfred Leonhardt
Ranch Hand
Posts: 1492
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Mahesh,
Just use getTableHeader method and place MouseMotionListener onto it.
table.getTableHeader().addMouseMotionListener( new MouseMotionAdapter() { public void mouseMoved( MouseEvent me ) { // Change cursor for over header JTableHeader hdr = (JTableHeader)me.getSource(); hdr.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); } });
Enjoy,
Manfred.
Javaoops
Ranch Hand
Posts: 57
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
thanks Manfred, It works.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Change the mouse cursor
Changing cursors over tables in Netscape
how to make a text field have cursor flushing
cursor style over an image
Help me to solve these problems in JEditorPane
More...