Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2503 > unrolled thread
| Started by | "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:39 +0000 |
| Last post | 2011-04-27 15:39 +0000 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.java.gui
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Gridbag Layout. Fixin "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
Re: Gridbag Layout. Fixin "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
Re: Gridbag Layout. Fixin "Chanchal" <chanchal@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
Re: Gridbag Layout. Fixin "Filip Larsen" <filip.larsen@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
| From | "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:39 +0000 |
| Subject | Re: Gridbag Layout. Fixin |
| Message-ID | <787fcb92a8883@uwe> |
To: comp.lang.java.gui Chanchal wrote: .. >I have JPanel (jPanel1 )on right hand side of a JSplitPane I have >applied GridbagLayout to jPanel1 and added two more JPanels (jPanel2 >and jPanel3) to jPanel1. I need to make sure that the size jPanel3 is >not changed when the divider of the JSplitPane is moved. What do you mean? If the splitpane is resized, the JPanel3 will become 'thinner'. If you won't want that, try *not* putting it in a JSplitPane. >...Kindly advice on how this can be achieved. I might help people* to understand your problem if you post an SSCCE of the current layout. * Your post reads like 'nonsense' to me. -- Andrew Thompson http://www.athompson.info/andrew/ Message posted via JavaKB.com http://www.javakb.com/Uwe/Forums.aspx/java-gui/200709/1 --- * 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 | "tar" <tar@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:39 +0000 |
| Message-ID | <ymid4wd6phv.fsf@blackcat.isi.edu> |
| In reply to | #2503 |
To: comp.lang.java.gui "Andrew Thompson" <u32984@uwe> writes: > Chanchal wrote: > .. > >I have JPanel (jPanel1 )on right hand side of a JSplitPane I have > >applied GridbagLayout to jPanel1 and added two more JPanels (jPanel2 > >and jPanel3) to jPanel1. I need to make sure that the size jPanel3 is > >not changed when the divider of the JSplitPane is moved. > > What do you mean? If the splitpane is resized, the JPanel3 > will become 'thinner'. If you won't want that, try *not* putting > it in a JSplitPane. It seems from carefully reading the description that the OP has two (sub)panels on the right side of the split pane. What he wants is that when the split pane resizes, one of the sub-panels retains its original size and all of the shrinkage comes from the other sub-panel. I think BorderLayout would work most simply, although I'm sure there's a way to do with GridBagLayout. It might also help to make sure that Min, Max and Preferred size of the static subpanel are all the same. -- 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] | [next] | [standalone]
| From | "Chanchal" <chanchal@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:39 +0000 |
| Message-ID | <1190347003.524636.65670@19g2000hsx.googlegroups.com> |
| In reply to | #2512 |
To: comp.lang.java.gui
On Sep 20, 4:39 pm, t...@sevak.isi.edu (Thomas A. Russ) wrote:
> "Andrew Thompson" <u32984@uwe> writes:
> > Chanchal wrote:
> > ..
> > >I have JPanel (jPanel1 )on right hand side of a JSplitPane I have
> > >applied GridbagLayout to jPanel1 and added two more JPanels (jPanel2
> > >and jPanel3) to jPanel1. I need to make sure that the size jPanel3 is
> > >not changed when the divider of the JSplitPane is moved.
>
> > What do you mean? If the splitpane is resized, the JPanel3
> > will become 'thinner'. If you won't want that, try *not* putting
> > it in a JSplitPane.
>
> It seems from carefully reading the description that the OP has two
> (sub)panels on the right side of the split pane. What he wants is that
> when the split pane resizes, one of the sub-panels retains its original
> size and all of the shrinkage comes from the other sub-panel.
>
> I think BorderLayout would work most simply, although I'm sure there's a
> way to do with GridBagLayout. It might also help to make sure that Min,
> Max and Preferred size of the static subpanel are all the same.
>
> --
> Thomas A. Russ, USC/Information Sciences Institute
Hello All,
Sorry for the non-clarity of my post and not posting the
SSCCE. Anyways, thanks for the feedbacks.
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] | [prev] | [next] | [standalone]
| From | "Filip Larsen" <filip.larsen@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:39 +0000 |
| Message-ID | <46f35eeb$0$7608$157c6196@dreader2.cybercity.dk> |
| In reply to | #2512 |
To: comp.lang.java.gui Thomas A. Russ wrote: > It seems from carefully reading the description that the OP has two > (sub)panels on the right side of the split pane. What he wants is that > when the split pane resizes, one of the sub-panels retains its original > size and all of the shrinkage comes from the other sub-panel. I was wondering too what the OP meant, but this makes sense. > I think BorderLayout would work most simply, although I'm sure there's a > way to do with GridBagLayout. It might also help to make sure that Min, > Max and Preferred size of the static subpanel are all the same. Depending on what other panels there might be, another option could be to move the first panel on the right into the right part of the split and let the 2nd panel sit outside, i.e. instead of Split(p1, GridBag(p2, p3)) then use GridBag( Split(p1, p2), p3) or instead of a GridBag perhaps a BorderLayout with the split in center and p3 to the east if that is more suitable. Regards, -- Filip Larsen --- * 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