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


Groups > comp.lang.java.gui > #4086 > unrolled thread

JInternalFrame - Title Ba

Started by"Ian Semmel" <ian.semmel@THRWHITE.remove-dii-this>
First post2011-04-27 15:48 +0000
Last post2011-04-27 15:48 +0000
Articles 5 — 2 participants

Back to article view | Back to comp.lang.java.gui


Contents

  JInternalFrame - Title Ba "Ian Semmel" <ian.semmel@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
    Re: JInternalFrame - Titl "Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
      Re: JInternalFrame - Titl "Ian Semmel" <ian.semmel@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
        Re: JInternalFrame - Titl "Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
          Re: JInternalFrame - Titl "Ian Semmel" <ian.semmel@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000

#4086 — JInternalFrame - Title Ba

From"Ian Semmel" <ian.semmel@THRWHITE.remove-dii-this>
Date2011-04-27 15:48 +0000
SubjectJInternalFrame - Title Ba
Message-ID<D0Dsk.31254$IK1.25341@news-server.bigpond.net.au>
  To: comp.lang.java.gui
Is it possible to remove the title from a JInternalFrame ?

---
 * 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]


#4089 — Re: JInternalFrame - Titl

From"Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this>
Date2011-04-27 15:48 +0000
SubjectRe: JInternalFrame - Titl
Message-ID<RMSdnaQVKazkQS7VnZ2dnUVZ_r_inZ2d@comcast.com>
In reply to#4086
  To: comp.lang.java.gui

"Ian Semmel" <isemmelNOJUNK@NOJUNKrocketcomp.com.au> wrote in message 
news:D0Dsk.31254$IK1.25341@news-server.bigpond.net.au...
> Is it possible to remove the title from a JInternalFrame ?

Not in all cases. For L&Fs that use a BasicInternalFrameUI subclass,
you can use BasicInternalFrameUI.setNorthPane(null) .

---
 * 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] | [next] | [standalone]


#4101 — Re: JInternalFrame - Titl

From"Ian Semmel" <ian.semmel@THRWHITE.remove-dii-this>
Date2011-04-27 15:48 +0000
SubjectRe: JInternalFrame - Titl
Message-ID<wNZsk.31521$IK1.21675@news-server.bigpond.net.au>
In reply to#4089
  To: comp.lang.java.gui


Larry A Barowski wrote:
> "Ian Semmel" <isemmelNOJUNK@NOJUNKrocketcomp.com.au> wrote in message 
> news:D0Dsk.31254$IK1.25341@news-server.bigpond.net.au...
>> Is it possible to remove the title from a JInternalFrame ?
> 
> Not in all cases. For L&Fs that use a BasicInternalFrameUI subclass,
> you can use BasicInternalFrameUI.setNorthPane(null) .
> 
> 

That didn't seem to work. Thanks. I will try to use some other component.

---
 * 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] | [next] | [standalone]


#4105 — Re: JInternalFrame - Titl

From"Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this>
Date2011-04-27 15:48 +0000
SubjectRe: JInternalFrame - Titl
Message-ID<SP2dndbkLIbkwyjVnZ2dnUVZ_vednZ2d@comcast.com>
In reply to#4101
  To: comp.lang.java.gui

"Ian Semmel" <isemmelNOJUNK@NOJUNKrocketcomp.com.au> wrote in message 
news:wNZsk.31521$IK1.21675@news-server.bigpond.net.au...
>
> That didn't seem to work. Thanks. I will try to use some other component.

What L&F are you using?

You need to do something like (code assumed to be in JInternalFrame
subclass):
   javax.swing.plaf.InternalFrameUI ui = getUI();
   if (ui instanceof BasicInternalFrameUI)
      ((BasicInternalFrameUI) ui).setNorthPane(null);

Also, if the UI updates, it will reset, so your JInternalFrame
subclass needs:

public void updateUI() {
   super.updateUI();
   -- call the method that nulls the title pane or duplicate
   -- the code here
}

---
 * 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] | [next] | [standalone]


#4106 — Re: JInternalFrame - Titl

From"Ian Semmel" <ian.semmel@THRWHITE.remove-dii-this>
Date2011-04-27 15:48 +0000
SubjectRe: JInternalFrame - Titl
Message-ID<3Shtk.31853$IK1.27690@news-server.bigpond.net.au>
In reply to#4105
  To: comp.lang.java.gui


Larry A Barowski wrote:
> "Ian Semmel" <isemmelNOJUNK@NOJUNKrocketcomp.com.au> wrote in message 
> news:wNZsk.31521$IK1.21675@news-server.bigpond.net.au...
>> That didn't seem to work. Thanks. I will try to use some other component.
> 
> What L&F are you using?
> 
> You need to do something like (code assumed to be in JInternalFrame
> subclass):
>    javax.swing.plaf.InternalFrameUI ui = getUI();
>    if (ui instanceof BasicInternalFrameUI)
>       ((BasicInternalFrameUI) ui).setNorthPane(null);
> 
> Also, if the UI updates, it will reset, so your JInternalFrame
> subclass needs:
> 
> public void updateUI() {
>    super.updateUI();
>    -- call the method that nulls the title pane or duplicate
>    -- the code here
> }
> 
> 

Thank you, exactly what I needed.

---
 * 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