AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PropertyResourceBundle and packages

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.developer
View previous topic :: View next topic  
Author Message
server
Guest





PostPosted: Thu Aug 25, 2005 7:17 pm    Post subject: PropertyResourceBundle and packages Reply with quote



message unavailable
Back to top
No one
Guest





PostPosted: Thu Aug 25, 2005 7:17 pm    Post subject: Re: PropertyResourceBundle and packages Reply with quote



No one wrote:

Quote:
I've used PropertyResourceBundle to load .properties files before in
unpackaged classes, but now I have some in a package and I can't figure
out the proper file name and base name to give .getBundle(). I have
tried file names such as:

Classname.properties
full.package.path.Classname.properties

and have tried giving boht the .getBundle(). Neither seems to work. the
.properties file does show up in the correct directory in the classes
folder (that is, with the .class file for the class). WHat am I missing
here?

Thanks in advance.

Never mind. I must have been sucking on the stupid pump pretty hard. Duh..

filename: classname.properties
arg to getBundle(): "\\full\package\\path\\classname"

Duh.
Back to top
Adam Maass
Guest





PostPosted: Tue Nov 22, 2005 7:38 am    Post subject: Re: Object scope.... Reply with quote



"Ken" <mkennethclark (AT) comcast (DOT) net> wrote in message
news:Fs2dnchkNYjQDyvfRVn-1Q (AT) comcast (DOT) com...
Quote:
Is there a difference in the following blocks of code?

if ( true ) {
new UserScreen();
}

/==============================

if ( true ) {
Object o = new UserScreen();
}


//end

There seems to be an issue with disposing of the UserScreen object under
the first scenario. To me, the two blocks of code have the same effect.


There is a slight difference. The second variation uses a local variable
slot which won't necessarily be overwritten or otherwise disposed of until
the method in which this code occurs ends. This may prevent the UserScreen
instance from being garbage collected as expected.

-- Adam Maass
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.developer All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.