Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1389 > unrolled thread
| Started by | "epicwinter" <epicwinter@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:33 +0000 |
| Last post | 2011-04-27 15:33 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.gui
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
| From | "epicwinter" <epicwinter@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:33 +0000 |
| Subject | Title bar on jinternalfra |
| Message-ID | <1175709359.274404.293270@l77g2000hsb.googlegroups.com> |
To: comp.lang.java.gui
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?
---
* 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
[toc] | [next] | [standalone]
| From | "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:33 +0000 |
| Subject | Re: Title bar on jinterna |
| Message-ID | <1176137295.121247.234620@y80g2000hsf.googlegroups.com> |
| In reply to | #1389 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web