Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #23388 > unrolled thread
| Started by | clusardi2k@aol.com |
|---|---|
| First post | 2013-04-08 14:19 -0700 |
| Last post | 2013-04-11 05:25 -0700 |
| Articles | 12 — 4 participants |
Back to article view | Back to comp.lang.java.programmer
No Box.createRigidArea .. In NetBeans Toolbox clusardi2k@aol.com - 2013-04-08 14:19 -0700
Re: No Box.createRigidArea .. In NetBeans Toolbox Lew <lewbloch@gmail.com> - 2013-04-08 15:07 -0700
Re: No Box.createRigidArea .. In NetBeans Toolbox markspace <markspace@nospam.nospam> - 2013-04-08 15:15 -0700
Re: No Box.createRigidArea .. In NetBeans Toolbox markspace <markspace@nospam.nospam> - 2013-04-08 15:35 -0700
Re: No Box.createRigidArea .. In NetBeans Toolbox clusardi2k@aol.com - 2013-04-09 18:23 -0700
Re: No Box.createRigidArea .. In NetBeans Toolbox markspace <markspace@nospam.nospam> - 2013-04-09 20:25 -0700
Re: No Box.createRigidArea .. In NetBeans Toolbox "John B. Matthews" <nospam@nospam.invalid> - 2013-04-10 10:55 -0400
Re: No Box.createRigidArea .. In NetBeans Toolbox clusardi2k@aol.com - 2013-04-10 11:32 -0700
Re: No Box.createRigidArea .. In NetBeans Toolbox clusardi2k@aol.com - 2013-04-10 12:17 -0700
Re: No Box.createRigidArea .. In NetBeans Toolbox clusardi2k@aol.com - 2013-04-10 12:37 -0700
Re: No Box.createRigidArea .. In NetBeans Toolbox "John B. Matthews" <nospam@nospam.invalid> - 2013-04-10 15:40 -0400
Re: No Box.createRigidArea .. In NetBeans Toolbox clusardi2k@aol.com - 2013-04-11 05:25 -0700
| From | clusardi2k@aol.com |
|---|---|
| Date | 2013-04-08 14:19 -0700 |
| Subject | No Box.createRigidArea .. In NetBeans Toolbox |
| Message-ID | <d269c915-01f6-4d6f-97b4-77ee5924d4fc@googlegroups.com> |
I don't think that "Box" is a control in the NetBeans toolbox. Consequently, I'd like to simulate the following lines of code. Question: How do I do it? JPanel MyPanel; MyPanel.add(Box.createRigidArea(new Dimensions 20,25)); MyPanel.add. ... MyPanel.add(Box.createHorizontalGlue()); Thanks,
[toc] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-04-08 15:07 -0700 |
| Message-ID | <4836a41f-6609-482e-83b5-036b40b8067e@googlegroups.com> |
| In reply to | #23388 |
clusa...@aol.com wrote: > I don't think that "Box" is a control in the NetBeans toolbox. IIRC you can add components to the toolbox. > Consequently, I'd like to simulate the following lines of code. > > Question: How do I do it? Type it in directly? > JPanel MyPanel; Variable names are supposed to begin with a lower-case letter. > MyPanel.add(Box.createRigidArea(new Dimensions 20,25)); This doesn't throw a 'NullPointerException' for you? It should. > MyPanel.add. ... > > MyPanel.add(Box.createHorizontalGlue()); Why would you add that to the panel? -- Lew
[toc] | [prev] | [next] | [standalone]
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Date | 2013-04-08 15:15 -0700 |
| Message-ID | <kjvfcq$gjp$1@dont-email.me> |
| In reply to | #23388 |
On 4/8/2013 2:19 PM, clusardi2k@aol.com wrote: > Question: How do I do it? > JPanel MyPanel; > > MyPanel.add(Box.createRigidArea(new Dimensions 20,25)); You have to select BoxLayout on your panel form first. Then the rigid separators and glue appear on the Pallet. Scroll down to Swing Filler to find them (it's a ways).
[toc] | [prev] | [next] | [standalone]
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Date | 2013-04-08 15:35 -0700 |
| Message-ID | <kjvgjd$p53$1@dont-email.me> |
| In reply to | #23391 |
On 4/8/2013 3:15 PM, markspace wrote: > On 4/8/2013 2:19 PM, clusardi2k@aol.com wrote: > >> Question: How do I do it? > >> JPanel MyPanel; >> >> MyPanel.add(Box.createRigidArea(new Dimensions 20,25)); > > You have to select BoxLayout on your panel form first. Then the rigid > separators and glue appear on the Pallet. "Palette." Argh.
[toc] | [prev] | [next] | [standalone]
| From | clusardi2k@aol.com |
|---|---|
| Date | 2013-04-09 18:23 -0700 |
| Message-ID | <f349648e-a2ee-408a-a249-d5bba130ff3f@googlegroups.com> |
| In reply to | #23391 |
On Monday, April 8, 2013 6:15:15 PM UTC-4, markspace wrote: > On 4/8/2013 2:19 PM, clusa...@aol.com wrote: > Question: How do I do it? > JPanel MyPanel; > > MyPanel.add(Box.createRigidArea(new Dimensions 20,25)); You have to select BoxLayout on your panel form first. Then the rigid separators and glue appear on the Pallet. Scroll down to Swing Filler to find them (it's a ways). I tried following these steps exactly, but I couldn't find "Swing Filler". The closest thing that I found was "Separator". Why am I not seeing "Swing Filler". Thanks,
[toc] | [prev] | [next] | [standalone]
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Date | 2013-04-09 20:25 -0700 |
| Message-ID | <kk2lud$ev1$1@dont-email.me> |
| In reply to | #23399 |
On 4/9/2013 6:23 PM, clusardi2k@aol.com wrote: > > I tried following these steps exactly, but I couldn't find "Swing > Filler". The closest thing that I found was "Separator". > > Why am I not seeing "Swing Filler". Beats me. I'm using NetBeans 7.2, if that helps. I see two separators in the Palette, one is under Swing Controls and the other is under Swing Menus. Keeps scrolling, it's further down than either.
[toc] | [prev] | [next] | [standalone]
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Date | 2013-04-10 10:55 -0400 |
| Message-ID | <nospam-CE06CD.10553610042013@news.aioe.org> |
| In reply to | #23400 |
In article <kk2lud$ev1$1@dont-email.me>, markspace <markspace@nospam.nospam> wrote: > On 4/9/2013 6:23 PM, clusardi2k@aol.com wrote: > > > > I tried following these steps exactly, but I couldn't find > > "Swing Filler". The closest thing that I found was "Separator". > > > > Why am I not seeing "Swing Filler". > > > Beats me. I'm using NetBeans 7.2, if that helps. I see two > separators in the Palette, one is under Swing Controls and the > other is under Swing Menus. Keeps scrolling, it's further down > than either. Same in 7.3. Swing Fillers may be easier to spot if the other tree nodes are closed. -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
[toc] | [prev] | [next] | [standalone]
| From | clusardi2k@aol.com |
|---|---|
| Date | 2013-04-10 11:32 -0700 |
| Message-ID | <d7362c8b-ec5b-4562-bf0a-6fda88992324@googlegroups.com> |
| In reply to | #23409 |
On Wednesday, April 10, 2013 10:55:36 AM UTC-4, John B. Matthews wrote: > In article <kk2lud$ev1$1@dont-email.me>, markspace <markspace@nospam.nospam> wrote: > On 4/9/2013 6:23 PM, clusa...@aol.com wrote: > > > > I tried following these steps exactly, but I couldn't find > > "Swing Filler". The closest thing that I found was "Separator". > > > > Why am I not seeing "Swing Filler". > > > Beats me. I'm using NetBeans 7.2, if that helps. I see two > separators in the Palette, one is under Swing Controls and the > other is under Swing Menus. Keeps scrolling, it's further down > than either. Same in 7.3. Swing Fillers may be easier to spot if the other tree nodes are closed. -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews> I have an older version of NetBeans. Thanks,
[toc] | [prev] | [next] | [standalone]
| From | clusardi2k@aol.com |
|---|---|
| Date | 2013-04-10 12:17 -0700 |
| Message-ID | <04caab9a-7bde-4fa6-979e-cd344c5c5ac2@googlegroups.com> |
| In reply to | #23412 |
Are "Swing Fillers" 3rd party controls? Do get them do I have to download them from the Internet. Thanks,
[toc] | [prev] | [next] | [standalone]
| From | clusardi2k@aol.com |
|---|---|
| Date | 2013-04-10 12:37 -0700 |
| Message-ID | <d7c9c3a0-f76a-4d24-aa12-dfa00bbf65f9@googlegroups.com> |
| In reply to | #23412 |
Are "Swing Fillers" 3rd party controls? To get them, do I have to download them from the Internet. Thanks,
[toc] | [prev] | [next] | [standalone]
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Date | 2013-04-10 15:40 -0400 |
| Message-ID | <nospam-154D1B.15403310042013@news.aioe.org> |
| In reply to | #23416 |
In article <d7c9c3a0-f76a-4d24-aa12-dfa00bbf65f9@googlegroups.com>, clusardi2k@aol.com wrote: > Are "Swing Fillers" 3rd party controls? To get them, do I have to > download them from the Internet. Not as far as I know.
[toc] | [prev] | [next] | [standalone]
| From | clusardi2k@aol.com |
|---|---|
| Date | 2013-04-11 05:25 -0700 |
| Message-ID | <fe687bca-4997-4a16-8922-0eeb003fe7a7@googlegroups.com> |
| In reply to | #23417 |
There has been support for the Box.Filler class since NetBeans 7.0. https://netbeans.org/bugzilla/show_bug.cgi?id=8304
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web