Hi ,

How can i make a Tabbed Pane scrollable to liit the no. of tabs.
Or is their any other way of limiting the number of tabs in a Tabbed Pane.

Preeti
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 3:34 PM
Subject: Advanced-swing digest, Vol 1 #142 - 3 msgs


> Send Advanced-swing mailing list submissions to
> [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://eos.dk/mailman/listinfo/advanced-swing
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Advanced-swing digest..."
>
>
> Today's Topics:
>
>    1. Why text(label) in tree is not displaying as expected (Ravi Prakash)
>    2. How can I wrap a JDesktopPane in a JScrollPane? (Ralph Kar)
>    3. Re: How can I wrap a JDesktopPane in a JScrollPane? (Nicholas
Wright)
>
> --__--__--
>
> Message: 1
> Date: Tue, 03 Jul 2001 14:48:18 -0700
> From: Ravi Prakash <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Why text(label) in tree is not displaying as expected
>
> Hi all,
>
> I am reading the directory structure and displaying in Jtree.
> for e.g root dir(/) and two files abc.txt and b.java and i am also
> displaying two files
> abc.txt and b.java
>
> for example
>
> abc.txt            20        bytes        2001-06-03 11.30 PM
> b.java             345      bytes        2001-06-03 12.30 PM
>
>
> i am sending this str to be displayed in the tree.
>
> when the jtree displays the string it is not in the above format..
>
>
> /
>     abc.txt            20        bytes          2001-06-03 11.30 PM
>     b.java        345        bytes        2001-06-03 12.30 PM
>
>
> I am using treecellrenderer, i have tried different options I dont know
> why this is happening, is there any thing to do with the label.
>
> Could any one throw light on this......
>
>
> this the method for treecellrenderer
>
> public Component getTreeCellRendererComponent(JTree tree, Object value,
>         boolean selected, boolean expanded,
>         boolean leaf, int row,
>         boolean hasFocus) {
>  Font            font;
>  String          stringValue = tree.convertValueToText(value, selected,
>         expanded, leaf, row, hasFocus);
>
>  /* Set the text. */
>     // find dir name from path
>  StringTokenizer sz = new StringTokenizer(stringValue,"/");
>  String str = null;
>  while(sz.hasMoreTokens())
>  {
>      str = (String)sz.nextElement();
>      str = str.trim();
>  }
>  // add / to dir
>  if (stringValue.endsWith("/"))
>      str += "/";
>  // display str for current dir
>  if (stringValue.equals(rootStr))
>      str = "  /";
>
>  setText(str);
>  /* Tooltips used by the tree. */
>  setToolTipText(stringValue);
>
>  /* Set the image. */
>  if(expanded && expandedIcon != null)
>      setIcon(expandedIcon);
>  else if(!leaf && collapsedIcon != null)
>      setIcon(collapsedIcon);
>  else
>      setIcon(null);
>
>  /* Set the color and the font based on the SampleData userObject. */
>  String         userObject = (String)((DefaultMutableTreeNode)value)
>                                  .getUserObject();
>  /* Update the selected flag for the next paint. */
>  this.selected = selected;
>  return this;
>     }
>
>
>
> raviprakash
>
>
> --__--__--
>
> Message: 2
> Date: Wed, 4 Jul 2001 11:44:57 +0200 (MEST)
> From: Ralph Kar <[EMAIL PROTECTED]>
> To:  <[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]>
> Subject: How can I wrap a JDesktopPane in a JScrollPane?
>
> Hi all,
>
> I have the following scenario:
>
> I have several JInternalFrames that are layered on a JDesktopPane which
> itself is contained in the content pane of a JFrame. It is
> possible to move a JInternalFrame almost all the way outside the visible
> area of the JFrame.
>
> I want to wrap the JDesktopPane in a JScrollPane so that the scrollbars
> appear and shift whenever I move a JInternalFrame into the off of the
> visible area. That way I would have all the JInternalFrames still
> accessible through scrolling to the appropriate area.
>
> So far, all my efforts failed. Has anyone done this before? Are there any
> hints, pointers or code examples available?
>
> Thanks a lot,
> Ralph
>
> ------------------------------------------------
>  Ralph Kar          |
>  Software Developer | mailto:[EMAIL PROTECTED]
>  RTS AG             | http://www.rtsgroup.net
> ------------------------------------------------
>
>
> --__--__--
>
> Message: 3
> Date: Wed, 4 Jul 2001 10:50:19 +0100 (BST)
> From: Nicholas Wright <[EMAIL PROTECTED]>
> Reply-To: Nicholas Wright <[EMAIL PROTECTED]>
> Subject: Re: How can I wrap a JDesktopPane in a JScrollPane?
> To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
>
> Hi
>
> If I'm not mistaken.  You simply need to set a preferredSize on the
> JDesktopPane.
>
> Nicholas
>
> > Delivered-To: [EMAIL PROTECTED]
> > From: Ralph Kar <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> > Subject: How can I wrap a JDesktopPane in a JScrollPane?
> > Mime-Version: 1.0
> > X-Beenthere: [EMAIL PROTECTED]
> > X-Mailman-Version: 2.0.1
> > List-Help: <mailto:[EMAIL PROTECTED]?subject=help>
> > List-Post: <mailto:[EMAIL PROTECTED]>
> > List-Subscribe: <http://eos.dk/mailman/listinfo/advanced-swing>,
> <mailto:[EMAIL PROTECTED]?subject=subscribe>
> > List-Id: Advanced Java Swing programming <advanced-swing.eos.dk>
> > List-Unsubscribe: <http://eos.dk/mailman/listinfo/advanced-swing>,
> <mailto:[EMAIL PROTECTED]?subject=unsubscribe>
> > List-Archive: <http://eos.dk/pipermail/advanced-swing/>
> > Date: Wed, 4 Jul 2001 11:44:57 +0200 (MEST)
> >
> > Hi all,
> >
> > I have the following scenario:
> >
> > I have several JInternalFrames that are layered on a JDesktopPane which
> > itself is contained in the content pane of a JFrame. It is
> > possible to move a JInternalFrame almost all the way outside the visible
> > area of the JFrame.
> >
> > I want to wrap the JDesktopPane in a JScrollPane so that the scrollbars
> > appear and shift whenever I move a JInternalFrame into the off of the
> > visible area. That way I would have all the JInternalFrames still
> > accessible through scrolling to the appropriate area.
> >
> > So far, all my efforts failed. Has anyone done this before? Are there
any
> > hints, pointers or code examples available?
> >
> > Thanks a lot,
> > Ralph
> >
> > ------------------------------------------------
> >  Ralph Kar          |
> >  Software Developer | mailto:[EMAIL PROTECTED]
> >  RTS AG             | http://www.rtsgroup.net
> > ------------------------------------------------
> >
> > _______________________________________________
> > Advanced-swing mailing list
> > [EMAIL PROTECTED]
> > http://eos.dk/mailman/listinfo/advanced-swing
>
>
===========================================================================
> Nicholas Wright    Imperial Software Technology    Senior Software
Engineer
> --------------------------------------------------------------------------
-
> Email : [EMAIL PROTECTED] or [EMAIL PROTECTED]
> Kings Court                            120 Hawthorne Ave, #101
> 185 Kings Road                         Palo Alto
> Reading RG1 4EX United Kingdom         California 94301 USA
> Tel: +44 118 958 7055                  Tel: 650 688 0200
> FAX: +44 118 958 9005                  FAX: 650 688 1054
>
===========================================================================
> ******              VISAJ AT http://www.ist.co.uk/visaj
******
>
===========================================================================
>
>
>
> --__--__--
>
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing
>
>
> End of Advanced-swing Digest

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to