|
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] ULCPanel / JPanel equivalent? Thomas Fuller
- RE: [ULC-developer] ULCPanel / JPanel equivalent? Janak Mulani
