๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17395

Re: Gifs in JLabel not shown...

#17395
From: Richard Wilkman
Date: Tue, 17 Nov 1998 00:00
76 lines
3680 bytes
Ross:

In 2.0, if you place your images as nodes in the project they will be
copied into the outpath as members of the package.  Outpath and
classpath are, effectivly, the same thing.  You can also store all
your images in a folder in the project and have them copied.  The plus
for having the folder is that the folder shows up in the deployment
wizard and you can archive it all up in one shot.

-Rich

Ross M. Dukeshier wrote:
> 
> St๏ฟฝphane Bonnet wrote:
> >
> > .. when starting the application from MSDos Prompt
> >
> > hi,
> >
> > what a surprise !!!! for the first time today i tried to start from the
> > DOS windows one Java Application, already compiled under JBuilder.
> >
> > And then... all my icons, displayed within JLabels are not visible. No
> > exception is raised, we just can't see them. Anyone has any kind of idea
> > of same experience ? I'm using JDK1.1.6
> >
> > Of course, when i start the application with JBuilder, no problem,
> > everything is perfect... But i need to start from DOS...
> >
> > Thank you very much for your help...
> >
> > Stephane.
> >
> > _______________________________________________________
> > Stephane Bonnet
> > _______________________________________________________
> > Address -> Mikontalo C 155, 33720 TAMPERE, FINLAND
> > Mobile  -> (+358)(0)40 7270601
> > E-mail  -> steph@cs.tut.fi, bonnet@tre.ntc.nokia.com
> > Web     -> http://www.cs.tut.fi/~steph
> > _______________________________________________________
> A little insight, I hope.  My group had this problem about 2 weeks ago.
> What we figured out was that JBuilder's project looks in the project
> directory for the images (if you are using a relative path).  When you
> run it for real, however, Java, as at least I would expect it to, looks
> in your classes location.  Putting the images location in your classpath
> is one solution, but if/when you deploy it, you will probably want them
> with your classes rather than having to set up special directory
> structures so they'll be found.
> 
> Since we kinda wanted to see the GIFs in the designer as well as when we
> ran them, we set our source and classes locations for the project to the
> same directory and may also have set the convention that the project
> would include only java files for the package it was named for (i.e. one
> project = one package).  That way, the package and the classes location
> are the same so JBuilder and Java will both speak the same language, so
> to speak.  I suppose you could set the source to a different location...
> 
> Hope it helps...
> 
> Ross Dukeshier

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team

If you see something that looks like an opinion up there,
it's mine and mine alone.

Mail sent to me from the newsgroups won't bounce but will
be ignored.  If I have time, I'll respond, but you  have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <36519AFD.B5467398@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3650222F.A1AB2D6C@tre.ntc.nokia.com> <3650CAC7.163C@flash.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,2c004dbb716ec9eb
X-Google-Attributes: gidf74b3,public
From: Richard Wilkman <rwilkman@inprise.com>
Subject: Re: Gifs in JLabel not shown...
Date: 1998/11/17
Message-ID: <36519AFD.B5467398@inprise.com>
X-Deja-AN: 412803291
Content-Transfer-Encoding: 8bit
References: <3650222F.A1AB2D6C@tre.ntc.nokia.com> <3650CAC7.163C@flash.net>
Content-Type: text/plain; charset=iso-8859-1
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language