Results 1 to 3 of 3
- 02-08-2010, 10:38 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 2
- Rep Power
- 0
How to get a reference to a JInternalFrame's title bar?
I would like to be able to perform hit detection on a JInternalFrame's title bar. I'm developing an application for a specialized input device, and having mouse dragging doesn't meet my requirements.
I have a listener that gives me the coordinates of an input, and, based on those coordinates, I would like to be able to see if I have hit the title bar so as to invoke a "dragging" function.
For the rest of my app's needs, I have used Swing's getComponentAt function to find out what is being hit.
Thanks in advance.Last edited by nfw; 02-08-2010 at 11:26 PM.
- 02-10-2010, 06:42 PM #2
(Untested) Try this:
dbJava Code:((BasicInternalFrameUI) internalFrame.getUI()).getNorthPane()
- 02-10-2010, 08:27 PM #3
Member
- Join Date
- Feb 2010
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
String Title case
By bugger in forum New To JavaReplies: 6Last Post: 01-31-2012, 01:21 PM -
set * at tab title
By keffie91 in forum Advanced JavaReplies: 7Last Post: 10-06-2008, 07:21 PM -
Hiding the frame’s title bar
By Java Tip in forum Java TipReplies: 0Last Post: 12-21-2007, 08:41 AM -
How to alter the title of JOptionPane
By mew in forum New To JavaReplies: 2Last Post: 12-17-2007, 10:39 AM -
How can I add an ICON on a JDialog's Title-Bar?
By iimasd in forum AWT / SwingReplies: 2Last Post: 11-06-2007, 12:54 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks