Hi Thomas,

ULC combines features of JPanel and Swing's Layouts in its layout panes:

ULCBoxPane
ULCGridBagLayoutPane
ULCBoxLayoutPane
ULCBorderLayoutPane
ULCFlowLayoutPane
ULCGridLayoutPane

You can read about them in ULCReference or API doc and Chapter 7 of
ULCEssentials guide (of ULC 6.1)

These widgets are part of ULC Release you need not get them from ULC
Community.

Thanks and regards,

Janak

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Thomas Fuller
Sent: Tuesday, May 23, 2006 9:01 PM
To: [email protected]
Subject: [ULC-developer] ULCPanel / JPanel equivalent?


Hi,

I'm trying to port a frame from one of our Swing applications into ULC code
and I have one issue: there doesn't appear to be a ULC equivalent of the
JPanel.

>From what I can see, the components are added to the pane, and the pain is
added to the frame - I've pasted the example below (from
http://ulc-community.canoo.com/snipsnap/space/Contributions/Extensions/Grid+
Bag+Layout)

Can someone please confirm that this is indeed the correct approach?
Thanks,
Tom
ULCGridBagLayoutPane pane = new ULCGridBagLayoutPane();

GridBagConstraints constraints = new GridBagConstraints();

ULCButton button= new ULCButton("1");
constraints.fGridx = 0;
constraints.fGridy = 0;
constraints.fWeightx = 0;
constraints.fWeighty = 1;
constraints.fFill = GridBagConstraints.VERTICAL;
constraints.fAnchor = GridBagConstraints.EAST;
pane.setConstraints(button, constraints);
pane.add(button);

button = new ULCButton("2");
constraints.fGridx = 0;
constraints.fGridy = 1;
constraints.fWeightx = 1;
constraints.fWeighty = 0;
constraints.fFill = GridBagConstraints.HORIZONTAL;
constraints.fAnchor = GridBagConstraints.SOUTH;
pane.add(button, constraints);

ulcFrame.add(pane);


_____________________________________________________________________
This message has been checked for all known viruses for Frontline Ltd by the
MessageLabs Virus Scanning Service.
_____________________________________________________________________
This e-mail message and any attachment(s) are CONFIDENTIAL and may contain
legally privileged information. If you are not the intended recipient you
should not read, copy, distribute, disclose or otherwise use the information
in this e-mail or any attachment(s).
Please also e-mail, telephone or fax us immediately and delete the message
and any attachment(s) from your system.
E-mail may be susceptible to data corruption, interception and unauthorised
amendment, and we do not accept liability for any such corruption,
interception or amendment or the consequences thereof.
Please note that any views expressed in this email may be those of the
originator and do not necessarily reflect those of this organisation.
_____________________________________________________________________

Frontline on the Web : http://www.frontline.ltd.uk
_____________________________________________________________________

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to