Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / December 2003

Tip: Looking for answers? Try searching our database.

Thumbnail view with Swing ?

Thread view: 
Abs - 27 Dec 2003 20:25 GMT
Hi!

I'm programming a image browser using swing and I'd like
to know your opinion about which is the best component to build
a thumbnail view of the files (like when you click "thumbnail
view" in the windows explorer). A JTable maybe ?
Any examples (with code) available out there ?

Thanks in advance

Signature

Abs

ak - 27 Dec 2003 20:51 GMT
> I'm programming a image browser using swing and I'd like
> to know your opinion about which is the best component to build
> a thumbnail view of the files (like when you click "thumbnail
> view" in the windows explorer). A JTable maybe ?
yes JTable is ok. You need to write your own TableCellRenderer.

____________

http://reader.imagero.com the best java image reader.
Tor Iver Wilhelmsen - 28 Dec 2003 10:55 GMT
> I'm programming a image browser using swing and I'd like
> to know your opinion about which is the best component to build
> a thumbnail view of the files (like when you click "thumbnail
> view" in the windows explorer).

I'd use a JButton with borderPainted = false and the thumbnail as the
icon.
ak - 28 Dec 2003 11:00 GMT
> > I'm programming a image browser using swing and I'd like
> > to know your opinion about which is the best component to build
[quoted text clipped - 3 lines]
> I'd use a JButton with borderPainted = false and the thumbnail as the
> icon.

this is ok, if you have not much images in directory, otherwise you have to
create many many many JButtons, JTable uses only one renderer instead.

____________

http://reader.imagero.com the best java image reader.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.