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


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

Re: Title bar on jinterna

From "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this>
Subject Re: Title bar on jinterna
Message-ID <1176137295.121247.234620@y80g2000hsf.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <1175709359.274404.293270@l77g2000hsb.googlegroups.com>
Date 2011-04-27 15:33 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
On Apr 4, 10:55 am, "epicwinter" <epicwin...@hotmail.com> wrote:
> I have a swing app where I catch mouse clicks on the frame icon of
> jinternalframes.  I do so using this code:
> ((BasicInternalFrameUI) jinternalFrame.getUI()).getNorthPane()
>      .addMouseListener(new MouseAdapter() {
>
>      public void mouseClicked(MouseEvent evt) {
>         System.out.println("Clicked");
>      }
>
> });
>
> However this statement returns null when I run this application on a
> Mac:
> ((BasicInternalFrameUI) jinternalFrame.getUI()).getNorthPane()
>
> Is there another way to access the title bar for a mac or does someone
> know a workaround?

You're counting on platform specifics for your general purpose app...
What is your goal by attaching a mouse listener to the title bar?

---
 * 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 | Find similar | Unroll thread


Thread

Title bar on jinternalfra "epicwinter" <epicwinter@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
  Re: Title bar on jinterna "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000

csiph-web