Re: [Java-gnome-developer] Problems with FileChooserWidget
Brought to you by:
afcowie
From: Igor F. <if...@re...> - 2005-06-08 16:05:59
|
On Sat, 2005-06-04 at 17:44 -0300, Joao Victor wrote: > --- Igor Foox <if...@re...> escreveu: >=20 > > Hi everyone, > >=20 > > I'm a fairly new user to java-gnome, so please bear with me. >=20 > Hi Igor, welcome! Thanks for the warm welcome, from you as well as Andrew Cowie. >=20 > >=20 > > I seem to have some trouble with the FileChooserWidget. I first tried= to > > use it in a semi-complex window, and got the following error (and no > > widget): >=20 > Hmm, just so i get it right: do you want to just show a filechooser, or= do you want to embbed it > in another window? To just show it, this is the code i used in an app: I am trying to display a FileChooser widget inside an existing window, not a separate FileChooserDialog. I've been away for the past few days, but now I've tried just importing an empty window from my glade file, and creating a FileChooserWidget in the code (instead of glade), and adding it to the window. This works perfectly, so it seems there's some problem with libglade. I'll try to look into it. Thanks, Igor >=20 > ---- > FileChooserDialog dialog =3D new FileChooserDialog("Select a picture", = this, > FileChooserAction.ACTION_OPEN); > dialog.addButton("gtk-cancel", 0); > dialog.addButton("gtk-ok", 1); > dialog.setCurrentFolder(System.getProperty("user.home")); > int result =3D dialog.run(); >=20 > if (result =3D=3D 1) { > //.... > } > ---- >=20 > Now, if you want to embbed it, i haven't tried doing it yet (will try),= but take a look at GDVB, > it seems to have a nice customized FileChooser, from what can be seen i= n this screenshot: > http://news.nopcode.org/gdvb02.png >=20 > Cheers, > J.V. >=20 >=20 >=20 > =09 > =09 > =09 > ____________________________________________________ > Yahoo! Mail, cada vez melhor: agora com 1GB de espa=E7o gr=E1tis! http:= //mail.yahoo.com.br >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you s= hotput > a projector? How fast can you ride your desk chair down the office luge= track? > If you want to score the big prize, get to know the little guy. =20 > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=3D20 > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |