Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #429

Re: Windows Decoration Li

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.alt.net!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this>
Subject Re: Windows Decoration Li
Message-ID <1166467463.565666.95890@79g2000cws.googlegroups.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <VFAhh.204014$4Z1.126550@newsfe09.phx>
References <VFAhh.204014$4Z1.126550@newsfe09.phx>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 35
Date Wed, 27 Apr 2011 15:27:29 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918049 96.60.20.240 (Wed, 27 Apr 2011 10:27:29 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:27:29 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:429

Show key headers only | View raw


  To: comp.lang.java.gui


On Dec 18, 12:59 pm, Knute Johnson <nos...@rabbitbrush.frazmtn.com>
wrote:
> Jason Cavett wrote:
> > What I am looking to do is be able to click via a mouse (middle click,
> > but that's not really that important) on the title bar of an
> > application (which is essentially part of the window decorations) and
> > have the application react a certain way.  When using any of the mouse
> > listeners, nothing happens when I click the title bar, so I'm at a loss
> > for where to go next.
>
> > Any help would be appreciated.  Thanks.Somebody else posted a similar question the other day and I think the
> general consensus is that you can't do what you want.  The title bar
> does not handle mouse events.
>
> --
>
> Knute Johnson
> email s/nospam/knute/

Actually, it can be done.  What I forgot to mention is that the window
I am referring to is a JInternalPane.  Because of that, all I need to
do to access the title bar is access the North Pane.  I found the
information in this post:
http://groups-beta.google.com/group/comp.lang.java.gui/browse_frm/thread/f2a64fa719e61171/5b56aa6b744ca606?lnk=gst&q=title+bar+event&rnum=6#5b56aa6b744ca606

However, for anybody else who is looking, Knute is right in that there
doesn't seem to be any way to see actions on the title bar on a JFrame.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Windows Decoration Listen "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
  Re: Windows Decoration Li "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
    Re: Windows Decoration Li "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
    Re: Windows Decoration Li "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
  Re: Windows Decoration Li "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
    Re: Windows Decoration Li "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
      Re: Windows Decoration Li "Thomas Hawtin" <thomas.hawtin@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
  Re: Windows Decoration Li "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000

csiph-web