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


Groups > comp.lang.java.programmer > #23389

Re: No Box.createRigidArea .. In NetBeans Toolbox

Newsgroups comp.lang.java.programmer
Date 2013-04-08 15:07 -0700
References <d269c915-01f6-4d6f-97b4-77ee5924d4fc@googlegroups.com>
Message-ID <4836a41f-6609-482e-83b5-036b40b8067e@googlegroups.com> (permalink)
Subject Re: No Box.createRigidArea .. In NetBeans Toolbox
From Lew <lewbloch@gmail.com>

Show all headers | View raw


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

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web