Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2154 > unrolled thread
| Started by | "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:37 +0000 |
| Last post | 2011-04-27 15:38 +0000 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.java.gui
JSplitPane divider compon "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
Re: JSplitPane divider co "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
Re: JSplitPane divider co "srefson" <srefson@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
Re: JSplitPane divider co "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
| From | "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:37 +0000 |
| Subject | JSplitPane divider compon |
| Message-ID | <1185527707.988390.291000@r34g2000hsd.googlegroups.com> |
To: comp.lang.java.gui Hello! I have two questions: 1. Is it possible to use the JSplitPane's divider as a divider between components with custom behavior (or doing nothing, not movable, or at least only into one direction)? 2. Is it possible to restrict how far to move the divider left and right? 3. JPopupMenu's use JMenuItem subclasses to add their items, how do I make a JPopupMenu use a GridLayout panel with JButtons instead? It very much looks like the ICQ/MSN smiley popup... TIA Karsten --- * 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:37 +0000 |
| Subject | Re: JSplitPane divider co |
| Message-ID | <1185837863.026601.54520@g4g2000hsf.googlegroups.com> |
| In reply to | #2154 |
To: comp.lang.java.gui
On Jul 27, 2:15 am, Karsten Wutzke <kwut...@web.de> wrote:
> Hello!
>
> I have two questions:
I count three, but thats okay...
>
> 1. Is it possible to use the JSplitPane's divider as a divider between
> components with custom behavior (or doing nothing, not movable, or at
> least only into one direction)?
Do you mean custom JComponents in the JSplitPane? Yes that is
possible.
>
> 2. Is it possible to restrict how far to move the divider left and
> right?
If you bothered to read <http://java.sun.com/j2se/1.4.2/docs/api/javax/
swing/JSplitPane.html>, you might have noticed the
setMaximumDividerLocation and setMinimumDividerLocation methods that
do exactly that.
>
> 3. JPopupMenu's use JMenuItem subclasses to add their items, how do I
> make a JPopupMenu use a GridLayout panel with JButtons instead? It
> very much looks like the ICQ/MSN smiley popup...
JPopupMenus "want" to use the look and feel menu style, and I would
suggest you let it. If you want to use the look and feel of your
system, you can add the following snippet to your main method:
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
// Look and Feel exceptions aren't fatal
}
>
> TIA
> Karsten
---
* 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 | "srefson" <srefson@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:38 +0000 |
| Subject | Re: JSplitPane divider co |
| Message-ID | <1187361762.020007.7020@50g2000hsm.googlegroups.com> |
| In reply to | #2168 |
To: comp.lang.java.gui
On Jul 31, 12:24 am, Daniel Pitts <googlegrou...@coloraura.com> wrote:
> On Jul 27, 2:15 am, Karsten Wutzke <kwut...@web.de> wrote:> Hello!
>
> > I have two questions:
>
> I count three, but thats okay...
>
> > 1. Is it possible to use the JSplitPane's divider as a divider between
> > components with custom behavior (or doing nothing, not movable, or at
> > least only into one direction)?
>
> Do you mean custom JComponents in the JSplitPane? Yes that is
> possible.
>
> > 2. Is it possible to restrict how far to move the divider left and
> > right?
>
> If you bothered to read <http://java.sun.com/j2se/1.4.2/docs/api/javax/
> swing/JSplitPane.html>, you might have noticed the
> setMaximumDividerLocation and setMinimumDividerLocation methods that
> do exactly that.
>
>
>
> > 3. JPopupMenu's use JMenuItem subclasses to add their items, how do I
> > make a JPopupMenu use a GridLayout panel with JButtons instead? It
> > very much looks like the ICQ/MSN smiley popup...
>
> JPopupMenus "want" to use the look and feel menu style, and I would
> suggest you let it. If you want to use the look and feel of your
> system, you can add the following snippet to your main method:
>
> try {
>
> UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
> } catch (Exception e) {
> // Look and Feel exceptions aren't fatal
> }
>
>
>
> > TIA
> > Karsten
Is it really neccessary to be so pompous Mr Pitts? There will always
be people who either know more than you or know less than you. Either
group have something to contribute and don't need petty put downs
because you want to feel more important than them just because you
have looked up something on the internet before they did.
---
* 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 | "Lew" <lew@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:38 +0000 |
| Subject | Re: JSplitPane divider co |
| Message-ID | <xcCdndJvrc9amVvbnZ2dnUVZ_gydnZ2d@comcast.com> |
| In reply to | #2270 |
To: comp.lang.java.gui
srefson@gmail.com wrote:
> On Jul 31, 12:24 am, Daniel Pitts <googlegrou...@coloraura.com> wrote:
>> On Jul 27, 2:15 am, Karsten Wutzke <kwut...@web.de> wrote:> Hello!
>>
>>> I have two questions:
>> I count three, but thats okay...
>>
>>> 1. Is it possible to use the JSplitPane's divider as a divider between
>>> components with custom behavior (or doing nothing, not movable, or at
>>> least only into one direction)?
>> Do you mean custom JComponents in the JSplitPane? Yes that is
>> possible.
>>
>>> 2. Is it possible to restrict how far to move the divider left and
>>> right?
>> If you bothered to read <http://java.sun.com/j2se/1.4.2/docs/api/javax/
>> swing/JSplitPane.html>, you might have noticed the
>> setMaximumDividerLocation and setMinimumDividerLocation methods that
>> do exactly that.
>>
>>
>>
>>> 3. JPopupMenu's use JMenuItem subclasses to add their items, how do I
>>> make a JPopupMenu use a GridLayout panel with JButtons instead? It
>>> very much looks like the ICQ/MSN smiley popup...
>> JPopupMenus "want" to use the look and feel menu style, and I would
>> suggest you let it. If you want to use the look and feel of your
>> system, you can add the following snippet to your main method:
>>
>> try {
>>
>> UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
>> } catch (Exception e) {
>> // Look and Feel exceptions aren't fatal
>> }
>>
>>
>>
>>> TIA
>>> Karsten
>
> Is it really neccessary to be so pompous Mr Pitts? There will always
> be people who either know more than you or know less than you. Either
> group have something to contribute and don't need petty put downs
> because you want to feel more important than them just because you
> have looked up something on the internet before they did.
FWIW, I don't read Daniel Pitt's message the way you do. Perhaps your
interpretation is unnecessarily harsh. Maybe you yourself should avoid
personal attacks.
--
Lew
---
* 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