Re: Dynamically accessing static fields

2009-06-22 Thread Sean Devlin
There's already a miglayout wrapper in contrib. It seemed usable when I looked at it. On Jun 22, 7:35 am, Laurent PETIT wrote: > Hi, > > BTW, if it can be an option for you, there's also the MigLayout layout > manager (http://www.miglayout.com/) that allows to write constraints > as Strings. It

Re: Dynamically accessing static fields

2009-06-22 Thread Laurent PETIT
Hi, BTW, if it can be an option for you, there's also the MigLayout layout manager ( http://www.miglayout.com/ ) that allows to write constraints as Strings. It has already been mentioned on this ml, so maybe there's clojure stuff done for integrating it more closely with clojure ? HTH, -- Lau

Re: Dynamically accessing static fields

2009-06-17 Thread James Koppel
Thanks! Seems I forgot java.lang.reflect exists when I wrote that. On Wed, Jun 17, 2009 at 4:47 PM, Michael Reid wrote: > > On Mon, Jun 15, 2009 at 9:13 AM, Parth wrote: > > > > > > > > On Jun 15, 7:08 am, James Koppel wrote: > >> I am trying to write a function to simplify working with > GridB

Re: Dynamically accessing static fields

2009-06-17 Thread Michael Reid
On Mon, Jun 15, 2009 at 9:13 AM, Parth wrote: > > > > On Jun 15, 7:08 am, James Koppel wrote: >> I am trying to write a function to simplify working with GridBagConstraints >> -- that is, instead of writing >> >> (let [c (GridBagConstraints.)] >>     (set! (.weightx c) 2.0) >>     (set! (.gridwid

Re: Dynamically accessing static fields

2009-06-15 Thread Parth
On Jun 15, 7:08 am, James Koppel wrote: > I am trying to write a function to simplify working with GridBagConstraints > -- that is, instead of writing > > (let [c (GridBagConstraints.)] >     (set! (.weightx c) 2.0) >     (set! (.gridwidth c) GridBagConstraints/REMAINDER) >     (let [button (JB

Dynamically accessing static fields

2009-06-15 Thread James Koppel
I am trying to write a function to simplify working with GridBagConstraints -- that is, instead of writing (let [c (GridBagConstraints.)] (set! (.weightx c) 2.0) (set! (.gridwidth c) GridBagConstraints/REMAINDER) (let [button (JButton. "Hello, world!")] (.setConstraints (.getLayo