Grow thumbnail to main image and then back

I am wanting to modify the dynamic photo Gallery to Grow each thumbnail to the main image position.
When another thumbnail is selected it should shrink back to it's  original position before the Grow.
When another thumbnail is clicked it does the same grow effect and takes it place of the main image and the first thumbnail shrinks
and returns to where it's original thumbnail positions was.
It would have to be constructed so the thumbnail that is clicked stays and a duplicate of it grows from it's current position.
If someone could help do this in stages so I can understand how the code initializes, this would be greatly appreciated.
WBell

Use a Seperate Thread to do it:
Runnable r = new Runnable() {
    public void run() {
               int k=tree.getSelectionRows()[0];
               DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                            if(node.getNextSibling()!=null)
                                 tree.setSelectionRow(k+1);
                            else
                                 tree.setSelectionRow(k-1);
                            sleepe(k);
public void sleepe(int i){
                     try{
                            Thread.sleep(1000);
                                 }catch(Exception e){
                                     e.printStackTrace();
                              tree.setSelectionRow(i);
    }Then start this thread in a mouse click event(or any other similar),but not in TableSelectionListener because >>if the current selected row is 1 then it will execute the valueChanged method of TableSe..li. and we set the selected row to 2 then again it will execute the valueChanged method of TableSe..li.It will repeat till something,or in error.
tree.addMouseListener( new MouseListener(){
public void mouseClicked(MouseEvent e) {
                   new Thread(r).start();
public  void mouseEntered(MouseEvent e) {
public  void mouseExited(MouseEvent e) {
public  void mousePressed(MouseEvent e)     {
public  void mouseReleased(MouseEvent e) {
  });Note:it worked perfectly for me. So add all the above in the right place and import necessary.It will execute perfectly.

Similar Messages

  • Using applet to select a part of an image and then save it

    Hi ,
    I want to use applet to select a part of an image and then save that particular selected part to a server. can anyone provide me a code for this. I have found codes on the sun site which help in uploading an image but I am having trouble in trying to select a part of the image.

    Sorry to get back to you so late, but I was away from my computer this afternoon.
    I'm not sure just what you are after. I do see that you have positioned the tree on the labels. I went to the web site for the label company, and their instructions are not too helplful.
    http://www.pixentral.com/show.php?picture=15sBkl9OZE9xSkHoLMxgwjTFv2VCg1
    I changed the white portion of 1 label to black - - this can be any color. To do this use the magic wand tool, tolerance=10 worked for me, then go to Edit>fill selection.

  • Apple TV locked up on main menu and then goes to screen saver. Still locked

    Apple TV not even 18 months old. Now out of warranty. Have reset by pulling the plug out aswell as holding the 2 buttons on the remote for 6 secs. No luck. After pulling the plug out for 30 secs and then back in, the Apple intro movie plays, then it goes to main menu. Cursor stuck on Top Movies. It won't budge and I know the remote works as I see the yellow light on the front of Apple TV working and it also works with my Macbook Pro. After the main menu appears the screen saver comes on and its still not responding to my remote.
    Any suggestions please? I'll be bummed if I have to throw this out after 18 months as it cost a few $ and I don't believe Apple will fix it for free. BTW it has been working brilliantly for the last 18 months when connected to my MB Pro. Now its connected to my iMac. In iTunes where I sync everything, I have told it not to sync anything so that the Apple TV is now empty of content. Still no luck. U would think they would have put a hard reset button on the back like they have for my AE Base station/router.
    Thx in advance.
    Adrian

    Thankyou all for your replies and advice.
    I can confirm that the remote is still working by using it with my MB Pro. I have not changed any settings with the remote re pairing/unpairing.
    In a nustshell, I took all my media from my much smaller MB Pro and put it on my much larger iMac. I then added a huge amount of music files to the iMac and in turn synced it with the Apple TV - all 160Gb of the Apple TV was then full. Then it seemed to stop working. In particular when I tried to play an MPEG4 movie that had previously played, it came up with an error message of sorts stating that the video could not be played due to an unrecognised format.
    I even tried to play an iTunes documentary that I had d/loaded from the Apple store that also previously played. Same error message.
    I can't try the unpairing command as the Apple TV will not respond to the remote. Its off at a repair shop so will let the forum know of what success I may have!
    Once again thx for the advice guys.
    KS

  • Filter is blank after switching to another tab and then back

    I perform a lot of filters using the data view for tables/views. However, when I switch to another tab (query editor) and then back to the data view, the filter is first executed (explanation in next sentence) and then blanked out. I was creating a filter and entered the string "<column_name> = '' " and then switched to a query editor to get the correct spelling of the value to fill in the quotes. When I switched back to the data view the filter had been executed using the null quotes (resulting in the previous values being lost) and then was blanked out. This gets a little annoying when a long filter is being built.

    I apologize. I forgot to add the application details. I am using sqldeveloper version 1.5.0.52 build MAIN-52.03 using JDK 1.6.0_05 on a WinXP SP2 laptop.

  • Iphone 6 when held in landscape will not open text messages in landscape. Phone needs to be held upright and then back to landscape. The phone sits in landscape mode on a dock.

    IPhone 6 when held in landscape will not open text messages in landscape. Phone needs to be held upright and then back to landscape. The phone sits in landscape mode on a dock.

    have the same issue even after upgrading to 8.1

  • HT201415 i can only send text messages to one of my IPhone contacts. How can i change it back? ive tried restarting, deleting contact and adding back, turning off Imessages and then back on. not working

    i can only send text messages to one of my IPhone contacts. How can i change it back? ive tried restarting, deleting contact and adding back, turning off Imessages and then back on. not working

    I WANNA SAY IPHONE ONWER PLEASE FORGIGE US AND GIVE DEGRADE OF ISO 7 TO ISO 6
    ISO 7 IS BULLSHITTTT
    PLEASE DO IT AS SOON AS POSSIBLE....,,,,.....

  • BitLocker AutoUnlock second drive (after creating a new OS drive image and then encrypting)

    Hi
    Sorry, not sure which forum to put this question in, so I pick the Security.
    I have a question about the Bit Locker autounlock.
    I have been using BitLocker on Win7 and Win2008.  The autounlock has worked fine.  I have two separate disks (c:\ and e:\).  Using one USB I can unlock the c:\ and then it will auto unlock the second disk.  No problems.  
    However, I had to create a new OS image, and then re encrypt the c:\ (OS drive).  I used the same USB.  When the computer boots up, I can manually unlock the e:\, but it will not let me autounlock the e:\.  I keep getting the "element
    not found" message.
    Any help would be appreciative.
    Thanks

    Thank you for your reply...but that was not what I was looking for.
    I understand, and have setup, how to auto unlock the second drive.  My question is, does the second disk have to be present when the OS drive is encrypting?  Scenario:
    Set 1:
    Original OS Drive (OOD) - already encrypted
    Original Second Drive (OSD) - already encrypted and auto unlocked.
    Set 2:
    New OS Drive (NOD) - encrypted
    Original Second Drive (OSD) - encrypted previously and auto unlocked.
    Using Set 2, I have encrypted the NOD, and was able to auto unlock the OSD while it was present.  However, since I have multiple OSD's, I then inserted another OSD with the NOD.  I am able to unlock this drive, but not able to auto unlock it. 
    I get the dreaded "Element not Found" message.  I am assuming that when the OS drive is encrypting, it somehow attaches to the OSD....therefore it can auto unlock it.  If I add another OSD, it will not be able to auto unlock it.
    Hope this makes sense.  Thanks again.

  • I go to play on a game on my iPad it will load the game up and a minute later will go to a blank screen and then back to all my apps.does it everybtime? Why is that? What do I need to do to stop it?

    I go to play on a game on my iPad it will load the game up and a minute later will go to a blank screen and then back to all my apps.does it everybtime? Why is that? What do I need to do to stop it?

    1. Close all inactive apps in the Task Bar. Double-click the Home button and hold apps down for a second or two and tap the minus sign to close app.
    2. Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple Logo

  • Can I attach a link to one image and then use that linked image multiple times in my site?

    Hi,
    Is it possible to attach a link to an image and then use that image (with link attached) multiple times in my site.
    Thanks,
    Ally

    Use 'Find and Replace'>under the 'Edit' menu.
    Select from 'Find in'- Folder and browse to the folder your website files are kept in to select it.
    Search: Source Code
    In the Find box (but obviously use YOUR image code):
    <img src="images/imageName.jpg" width="200" height="200" alt="" />
    In the Replace box: (use YOUR link and image code)
    <a href="yourLink.html"><img src="images/imageName.jpg" width="200" height="200" alt="" /></a>
    Then select 'Replace All'

  • I changed from english to spanish and then back to english and now it does not recognise english when i type emails. how do i get it back to english?

    i changed the lan uage of my iphone 3gs from english to spanish and then back to english. now it does not recognise enghlish but seems to be using a mix of languages. how do i get it back to english please?

    Please check in Settings: General: Keyboard: International Keyboards how many there are and which.
    If there is more than one you can either delete the ones that you don't use, or if you want to type on different ones at different times you can change between them using the key with a world that appears when you are using the keyboard.

  • HT1454 HELP! ITook loads of photos on my ipod touch, and when i went to look at them they were just black images , and then out of 50 bout 7 of them came out?anyone know how to get the black pictures turn out ?

    HELP! ITook loads of photos on my ipod touch, and when i went to look at them they were just black images , and then out of 50 bout 7 of them came out?anyone know how to get the black pictures turn out ?

    Try the following:
    - A reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup

  • Converting from spreadshet string to array and then back to spreadsheet string

    My questions is; why is the Spreadsheet string to array function creating more data than the original string had when you change the array back into a spreadsheet string. Im trying to analyze a comma delimited file using array functions since my column and row size is constant, but my data varies. Thus my reason for not using string parsing functions which would get more involved and difficult. So, however, after i convert to a 2D array of data from the comma delimited file I read from, and then I convert back to string using the Array to Spreadsheet String, I get added columns to the file, which prevents another program from receiving these files. Also, the data which I am reading is not all contiguous, it has gaps in some places for empty data. Looking at the file compared to the original after it has gone from string to array and then back to string again, looks almost identical except for the file size which got larger by 400 bytes and where the original file has empty spaces, the new file has a lot of commas added. Any idea?
    Charles

    The result you get is normal when the spreadsheet string contains rows of uneven length. Since the array rows have the same number of elements, nil values are added during the coonversion. And of course, the back to string conversion keep those added values in the string, with the associated commas.
    example : 3 x 3 array
    1,2,3
    4
    5,6,7
    is converted into
    1 2 3
    4 0 0
    5 6 7
    then back to
    1,2,3
    4,0,0
    5,6,7
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • HT3209 how long does a rented movie last? and can i download it  in my pc, then to my ipad and then back to my pc?

    how long does a rented movie last?
    when i rent the movie in my pc, can i put it into my ipad and then back to my pc?

    Yu can copy it to your iPad from your computer, but if you rent it directly on the iPad then you can't copy it off - from here :
    If you download a rented movie on your computer: You can transfer it to a device such as your Apple TV (1st generation), iPhone, iPad, or iPod if it’s a standard-definition film (movies in HD can only be watched on your computer, iPad, iPhone 4 or later, iPod touch (4th generation or later), or Apple TV). Once you move the movie from your computer to a device, the movie will disappear from your computer's iTunes library. You can move the movie between devices as many times as you wish during the rental period, but the movie can only exist on one device at a time.
    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer.
    From when you rent a movie you have 30 days in which to watch it, but once you start watching it you have 48 hours to finish watching it (24 hours in the US) - you can watch it as many times as like within those 48 (or 24) hours.

  • Frustratingly, since I upgraded to Yosemite 10.10, I too am having the worst problems with WiFi dropping out. I've never had this problem before on my iMac 27-inch mid 2011 model. Turning WiFi off and then back on again sometimes works. Help please.

    Frustratingly, since I upgraded to Yosemite 10.10, I too am having the worst problems with WiFi dropping out. I've never had this problem before on my iMac 27-inch mid 2011 model. Turning WiFi off and then back on again sometimes works. Help please. I've already tried a lot of your suggested fixes, but without success. Why hasn't Apple Fixed this?

    Please test after taking each of the following steps that you haven't already tried. Stop when the problem is resolved. Back up all data before making any changes.
    Step 1
    Take the applicable steps in this support article. The Wireless Diagnostics program generates a large file of information about your system, which would be used by Apple Engineering in case of a support incident. Don't post the contents here.
    Step 2
    Disconnect all USB 3 devices. If you don't know which are USB 3, disconnect all USB devices except keyboard and mouse.
    Step 3
    If you're not using a wireless keyboard or trackpad, disable Bluetooth by selecting Turn Bluetooth Off from the menu with the Bluetooth icon. If you don't have that menu, open the Bluetooth preference pane in System Preferences and check the box marked Show Bluetooth in menu bar. Test. If you find that Wi-Fi works better with Bluetooth disabled, you should use the 5 GHz Wi-Fi band. Your router may not support it; in that case, you need a new router.
    Step 4
    Open the Energy Saver pane in System Preferences and unlock the settings, if necessary. Select the Power Adapter  tab, if there is one. Uncheck the box marked
              Wake for Wi-Fi network access
    if it's checked.
    Step 5
    Open the Network pane in System Preferences and make a note of your settings in the Wi-Fi service. It may be helpful to take screenshots of the various tabs in the preference pane. If the preference pane is locked, unlock it by clicking the padlock icon and entering your administrator password. Delete Wi-Fi from the service list on the left by selecting it and clicking the minus-sign button at the bottom. Then recreate the service by clicking the plus-sign button and following the prompts.
    Step 6
    In the Wi-Fi settings, select
              Advanced... ▹ TCP/IP ▹ Configure IPv6: Link-local
    Click OK and then Apply.
    Step 7
    Reset the System Management Controller.
    Step 8
    Reset the PRAM.
    Step 9
    Launch the Keychain Access application. Search for and delete all AirPort network password items that refer to the network. Make a note of the password first.
    Step 10
    Make a "Genius" appointment at an Apple Store, or go to another authorized service center.

  • TS3274 Hi I have a 1st generation iPad 64Gb, my problem is when I am surfing the Internet or trying to read a magazine that I have bought and downloaded, the iPad closes down the app and the screen goes blank and then back to the home page. Any ideas?

    Hi I have a 1st generation iPad 64Gb, my problem is when I am surfing the Internet or trying to read a magazine that I have bought and downloaded, the iPad closes down the app and the screen goes blank and then back to the home page. Any ideas?

    Hi Fayed11,
    Welcome to Apple Support Communities.
    You may find this article useful for troubleshooting any apps on your iPad that aren't behaving as expected:
    iOS: Troubleshooting applications purchased from the App Store
    http://support.apple.com/kb/ts1702
    Have a great day,
    Jeremy

Maybe you are looking for

  • ADOBE PHOTOSHOP INSTALL PROBLEMS

    Ok so downloaded a trial from here (NEVER EVER HAD ADOBE INSTALLED BEFORE) and hit the error everyone else has been having. I am on windows 7 64Bit etc So I have been reading the forums all week and trying everything - permissions and ownership (chan

  • Can I Get a Full Refund for Uneven Backlighting on MPB  after 50 weeks?

    I bought a Macbook Pro C2D 17" exactly 50 weeks ago from one of the mac re-sellers that are in towns like Bristol and Swindon in the UK that don't have proper mac's own shops. I've developed some really bad uneven backlighting on my monitor which is

  • How to pass external regions programaticaly from controller ?

    Hi Team, I have a new page. in that page there are 2 stack layout regions. How can we Dynamically open an external region from Controller in OAF page instead hardcording in the property inspector. For example : my DB table datas are like this SEQUENC

  • Mac/PC printer compatiblity

    So, my wife and I want to share a printer. I'm on a Mac connected to a Epson Deskjet via Airport. She's on a PC connected to a HP via USB cable. Is there a way to share the Epson over the network? Thanks D ibook G4   Mac OS X (10.3.9)  

  • MS ACCESS  SAP BW

    Do SAP BW consultant need to know inside and outside of MS ACCESS(Data base)? Thanks in advance