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


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

Interaction between JFram

Started by"Chanchal" <chanchal@THRWHITE.remove-dii-this>
First post2011-04-27 15:37 +0000
Last post2011-04-27 15:37 +0000
Articles 3 — 3 participants

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


Contents

  Interaction between JFram "Chanchal" <chanchal@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
    Re: Interaction between J "Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
    Re: Interaction between J "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000

#2212 — Interaction between JFram

From"Chanchal" <chanchal@THRWHITE.remove-dii-this>
Date2011-04-27 15:37 +0000
SubjectInteraction between JFram
Message-ID<1186658216.219915.83340@57g2000hsv.googlegroups.com>
  To: comp.lang.java.gui
Hi All,

    I want to create a multi-document application.I have a JFrame
which should contain other JInternalFrames, which are invoked using a
menu. The internal frame should occupy the whole area of the JFrame
other than the space needed for the JFrame's title, menubar and tool
bar. Please advice on how this can be done

Thanks in advance

Chanchal

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


#2214 — Re: Interaction between J

From"Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this>
Date2011-04-27 15:37 +0000
SubjectRe: Interaction between J
Message-ID<newscache$30cimj$0ac$1@news.ops.de>
In reply to#2212
  To: comp.lang.java.gui
Chanchal wrote:
>     I want to create a multi-document application.I have a JFrame
> which should contain other JInternalFrames, which are invoked using a
> menu. The internal frame should occupy the whole area of the JFrame
> other than the space needed for the JFrame's title, menubar and tool
> bar. Please advice on how this can be done
For maximizing a JInternalFrame you can call setMaximized(true) on your 
JInternalFrame.

The example given in Sun's tutorial at 
<http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html> 
almost exactly fits your need. Only a toolbar is missing. In order to 
add a toolbar into this example  you can replace
   setContentPane(desktop);
by something like
   setLayout(new BorderLayout());
   JToolBar toolBar = new JToolBar();
   toolBar.add(...);
   toolBar.add(...);
   add(toolBar, BorderLayout.NORTH);
   add(desktop, BorderLayout.CENTER);


-- 
Thomas

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


#2215 — Re: Interaction between J

From"tar" <tar@THRWHITE.remove-dii-this>
Date2011-04-27 15:37 +0000
SubjectRe: Interaction between J
Message-ID<ymi7io45qux.fsf@blackcat.isi.edu>
In reply to#2212
  To: comp.lang.java.gui
Chanchal <chanchal.jacob@gmail.com> writes:

>     I want to create a multi-document application.I have a JFrame
> which should contain other JInternalFrames, which are invoked using a
> menu. The internal frame should occupy the whole area of the JFrame
> other than the space needed for the JFrame's title, menubar and tool
> bar. Please advice on how this can be done

<http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html>

Generally you want to use a JDesktopPane instead of a JFrame to hold the
internal frames.

-- 
Thomas A. Russ,  USC/Information Sciences Institute

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