What is the Java source for setting up the Window object? Ambrose
On Fri, Jun 24, 2011 at 1:24 AM, Antonio Recio <amdx6...@gmail.com> wrote: > I have tried to translate an example of vaadin in java to clojure. But I > get errors. > > This is the java code: > Panel panel = new Panel("Split Panels Inside This Panel"); > HorizontalSplitPanel hsplit = new HorizontalSplitPanel(); > panel.setContent(hsplit); > Tree tree = new Tree("Menu", TreeExample.createTreeContent()); > hsplit.setFirstComponent(tree); > VerticalSplitPanel vsplit = new VerticalSplitPanel(); > hsplit.setSecondComponent(vsplit); > vsplit.addComponent(new Label("Here's the upper panel")); > vsplit.addComponent(new Buton("Here's the lower panel")); > > And this the clojure code. Where I am doing wrong? > (defn -init [this] > (let [app this] > (.setMainWindow this > (doto (Window. "Test application") > (add > (panel (doto (Panel. "Split panels inside this panel") > (.setContent hsplit))) > (hsplit (doto (HorizontalSplitPanel.) > (.setFirstComponent tree) > (.setSecondComponent vsplit))) > (tree Tree. "Menu") > (vsplit VerticalSplitPanel. > (add (Label. "upper panel") (Button. "lower > panel")))))))) > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en