Daniel Hinojosa
2008-05-19 19:13:14 UTC
Starting pico container for the first time in a real application. I
just want to set a certain container in a JFrame, but ended up with a
problem in the documentation, getAdapter isn't really a method in a
pico container.
Any idea what the correct method is and why documentation has little
problems here and there?
parent = new PicoBuilder().withCaching().withPropertyApplier().withLifecycle().build();
....
parent.addComponent(JFrame.class);
parent.addComponent("myDesktopPane", DesktopPane.class);
PropertyApplicator pa = (PropertyApplicator) parent.getAdapter(JFrame.class);
pa.setProperty("contentPane", "myDesktopPane");
--
Daniel Hinojosa
Programmer, Instructor, and Consultant
2529 Wisconsin St. NE
Albuquerque, NM 87110
dhinojosa-sRlC7LJHFRkitjMjQMKR8gC/***@public.gmane.org
http://www.evolutionnext.com
http://www.abqjug.org
(505) 363-5832
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
just want to set a certain container in a JFrame, but ended up with a
problem in the documentation, getAdapter isn't really a method in a
pico container.
Any idea what the correct method is and why documentation has little
problems here and there?
parent = new PicoBuilder().withCaching().withPropertyApplier().withLifecycle().build();
....
parent.addComponent(JFrame.class);
parent.addComponent("myDesktopPane", DesktopPane.class);
PropertyApplicator pa = (PropertyApplicator) parent.getAdapter(JFrame.class);
pa.setProperty("contentPane", "myDesktopPane");
--
Daniel Hinojosa
Programmer, Instructor, and Consultant
2529 Wisconsin St. NE
Albuquerque, NM 87110
dhinojosa-sRlC7LJHFRkitjMjQMKR8gC/***@public.gmane.org
http://www.evolutionnext.com
http://www.abqjug.org
(505) 363-5832
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email