02:29 pm - amanita_d - Frames problem I'm coming back to Java after quite a while away; I 'did' it in college, but Swing is completely new to me, and I'm having trouble making frames display as I want.I have an application that searches for gif and jpg files and gets the dimensions and file size. I would like it to display each image with a text summary underneath like:(image)100x200 - 20k(image 2)400x50 - 10k... etc.Currently it scans through an array of images, and resizes the frame (I think) so that it is the right size to contain all the images, one after the other. I haven't addressed the text issue yet; I'm hoping it will be trivial once I have the image part working...( Details of the problemCollapse )
09:33 pm - mistersuperhate - Making Nemo Move... So, I am creating a fish tank in which fish move depending on their speed and hunger. But the latter doesn't matter for now.Basically I have my tank, with buttons on the east side of a border layout that allows fish (currently Nemo) to be added to the tank. The fish appear at random pixels in the tank image, which is on the west.Currently, I am having alot of trouble getting the fish to move. their X,Y coordinates are stored in the class Fish along with their speed etc.. I have been told about threads but I am unsure how to use them properly and where they should be placed, as in what class..If anyone could shed some light and guidance, or even help me on MSN to some extent I would be eternally greatful.Thankyou guys,DannyPS. If requested I can post code (or send code) but it's too long to include in the post..