Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #11687

Re: Resource confusion

From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Resource confusion
Date 2012-01-31 23:01 +0000
Organization UK Free Software Network
Message-ID <jg9rsr$ro6$1@localhost.localdomain> (permalink)
References (1 earlier) <bs2ei7pl1i8lsq4e4rqtn46a5epgpnfmos@4ax.com> <jg7kk4$8ho$2@localhost.localdomain> <arPVq.4927$EF2.868@newsfe18.iad> <jg9jpf$p7e$1@localhost.localdomain> <aDZVq.2889$Cs3.2859@newsfe22.iad>

Show all headers | View raw


On Tue, 31 Jan 2012 18:08:06 -0400, Arved Sandstrom wrote:

> There are really 2 discussions here: where to put files, and how to read
> them from where you put them. I was focusing initially more on the
> reading bit, because I got the impression that's what the OP was really
> wrestling with.
>
Yes, I agree he was having problems with JFileChooser, but he also had 
the resource files in the mix from the start, thought they weren't 
obvious since they were described in a block of test after his initial 
chunk of problem text.

However, looking back that far, I'm not certain that the OP ever spelled 
out the relationship between the resource files and the user-supplied 
external files. I think you assumed that they were co-equal while I 
assumed some sort of precedence relationship.

It would be helpful if the OP described that relationship.

> As far as the initial provision and bundling of configuration/data files
> I'd be generally inclined to agree with you. And of course there isn't
> any reason why a ream of "data" files that define different
> user-selectable configurations couldn't be bundled in a JAR.
>
Indeed, but the resource file:external file relationship is key to the 
understanding since that determines how they would be selected. 

At a guess, either JFileChooser see resource files or there is a 
different chooser (mandatory for JWS services) that can, but a somewhat 
hasty scan of the Javadocs and tutorial suggests that separate chooser 
instances would be needed for resource files and external files.
   

-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Resource confusion Novice <novice@example..com> - 2012-01-28 17:47 +0000
  Re: Resource confusion Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-28 15:44 -0400
    Re: Resource confusion Lew <noone@lewscanon.com> - 2012-01-28 13:43 -0800
    Re: Resource confusion Novice <novice@example..com> - 2012-01-29 05:40 +0000
      Re: Resource confusion Lew <noone@lewscanon.com> - 2012-01-28 22:43 -0800
      Re: Resource confusion Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-29 13:24 -0400
  Re: Resource confusion Roedy Green <see_website@mindprod.com.invalid> - 2012-01-30 13:33 -0800
    Re: Resource confusion Martin Gregorie <martin@address-in-sig.invalid> - 2012-01-31 02:45 +0000
      Re: Resource confusion Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-31 06:32 -0400
        Re: Resource confusion Martin Gregorie <martin@address-in-sig.invalid> - 2012-01-31 20:43 +0000
          Re: Resource confusion Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-31 18:08 -0400
            Re: Resource confusion Martin Gregorie <martin@address-in-sig.invalid> - 2012-01-31 23:01 +0000

csiph-web