For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > March 2004 > Is there a data type a form editor will detect represents a classpath?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Is there a data type a form editor will detect represents a classpath?
Mark McKay

2004-03-19, 8:45 pm

I'm creating a bean which needs to access image and sound resources
within my source tree. At the moment, the user is typing these values
into a String bean field which the bean then puts into a
getClass().getResource() call to get the resource. It would be a lot
nicer if rather than having to type in the string, the NetBeans editor
would pop open a browse dialog box that could be used to locate the
resource (similar to what happens when the data type is Icon). Is
there a special datatype that will give me this functionality?

Mark McKay
--
http://www.kitfox.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com