Thumbnail view of a TableView populated by an ObservableList

Hello

I'm inhabiting a TableView dynamically with objects in an ObservableList.  I want to score a few lines with different colors according to their content and want to display the lines marked in a thumbnail view of the TableView.  Essentially, the idea is to do something like the impressive app Beyond Compare is in the upper left window (see http://www.scootersoftware.com/images/TextCompare.png). Click on the thumbnail would be basically scroll your tableview to this location.  The square on the thumbnail represents the data that is displayed on the screen and are sized in proportion with how long the TableView is and how many lines can be displayed on the screen at this time here.

Maybe I can bind a ListView to the same ObservableList who is populating the TableView, but just show a picture (thin colored line) for each line of the TableView which was marked.  Any ideas on how I could make something like that?

Thank you

Yes, so I watched it again and that doesn't even come close to answer what you were asking. I was looking at the bottom of the image (which resembles a version filtered main screen) rather than the thumbnail at the top.

For the thumbnail, I think I'd try a VBox filled with thin horizontal rectangles. Something like:

final VBox thumbnail = new VBox();
thumbnail.setPrefWidth(50);
table.getItems().addListener(new ListChangeListener() {
     public void onChanged(Change change) {
          buildThumbnail(table, thumbnail);
     }
});
buildThumbnail(table, thumbnail);
// ...
private void buildThumbnail(Table table, VBox thumbnail) {
     thumbnail.getChildren().clear();
     int index = 0 ;
     for (T item : table.getItems()) {
          Rectangle rect = new Rectangle();
          rect.setHeight(2);
          rect.widthProperty().bind(thumbnail.widthProperty().subtract(2));
          if ( itemShouldBeHighlighted()) {
               rect.setFill(Color.RED);
          } else {
               rect.setFill(Color.WHITE);
          }
          final int itemIndex = index ;
          rect.setOnMouseClicked(new EventHandler() {
               @Override
               public void handle(MouseEvent event) {
                    table.scrollTo(itemIndex);
               }
          });
          thumbnail.getChildren().add(rect);
          index++;
     }

Tags: Java

Similar Questions

  • Cannot enlarge the thumbnail view in my analysis of file

    The thumbnail views are 10 across the page.  You will have to show all my scans of large miniature views.

    (1) download and install the free Win XP PowerToy TweakUI.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Windows XP downloads
    http://Windows.Microsoft.com/en-us/Windows/downloads/Windows-XP
    (Search for TweakUI featured downloads tab)

    When the program is installed, open it and go to...
    Explorer / thumbnails... to change the quality and
    maximum size of 256 pixels.

    (2) If you download and install Windows Live Photo
    Gallery... He has a slider that allows the size of the thumb
    adjusted tbe nails.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Windows Live Photo Gallery 2011
    http://explore.live.com/Windows-Live-Essentials-Photo-Gallery-get-started
    (There are other apps when you)
    install... uncheck those you don't want to)

  • I still need help with a thumbnail view in video files Real Player XP sp 3

    I still need help with thumbnail view in video files Real Player XP sp 3-Help! Help! Help!

    You will need to contact the support of Real Player, since the problem occurred with their program.

  • Image of the hand in the thumbnail view

    One of our files is displayed with an image of the hand in the thumbnail view, and in the details, view has a dark area at the bottom of the image in folder of files.  What does that mean?

    One of our files is displayed with an image of the hand in the thumbnail view, and in the details, view has a dark area at the bottom of the image in folder of files.  What does that mean?

    It seems that if you want something like the "Family Photos" folder in this image: http://www22.verizon.com/NROneRetail/NR/rdonlyres/E54BDDF6-5BB6-4A60-93C7-F2F0785D56BD/0/XPSharePhotoFolder.jpg

    This icon indicates that the folder has been shared (for example, it is available on your network).  The "dark area" in the Details view is the same, it is more difficult to see because the icon is so small.

    If you do not want to share the file (and thus the files in the folder), right click, select Properties, click the sharing tab and check the box "do not share this folder.

    Note: Windows XP has a "Simple file sharing" mode that is enabled by default in XP Pro and is the only mode available in XP Home.  In XP Pro, you can turn off this mode.  The 'Sharing' tab is a little different depending on whether you are in the mode.  For Simple file sharing, clear the checkbox "Share this folder on the network" instead of the above option button.

    The sharing tab, Simple file sharing enabled: http://tech.ifelix.net/images004/file018.gif
    Tab sharing, Simple file sharing NOT enabled: http://tech.ifelix.net/images004/file004.gif

  • How can I change the thumbnail size when you view the contents of a folder in Thumbnails view?

    None

    Rustic17,

    You can work with the unrolling of view in windows Explorer. However, if you mean specifically change the size ONLY in the thumbnail view, and then I found an article in which people have found a solution.

    Change the size of the thumbnail and quality under XP

    Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk.

    I hope this helps.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • AVI files created with only fraps capture movie online no thumbnail view

    have vista prem all the service packs and years until ago never had a problem same true old avi files allways showed thumbnail view but after reinstalling windows this year something strange media player 11 customer would play my videos but keep playing in the back ground even after clicking this box at top right to dismiss the media player that has not closed it was going on for a long time It was the first problem more no thumb nails now I have realplayer to play both music / divx player videos just to play the types of test files a few times Flash flash mp4 don't thumbs realplayer videos flash show the thumbnails, but not flash mp4 videos I have a flash drive, he plays as much as I want to pull up and watch isn't a problem here.  other players in support of windows vista movie maker Centre Photo Gallery of nero player photo viewer 7 do not use it a lot just love mp4 videos when fire videos on disc, I noticed last time I did a sort of what mite be wrong with my system on the nail of the thumb and videos avi file in windows Explorer with who can have an intelligence to share... will add this note a few videos due AVI see the thumb nail view... just not my those more returned to the folder as in player media of record fraps I added this file, he showed the thumbs nails it ok for the of works very well...

    have vista prem all the service packs and years until ago never had a problem even true old avi files allways showed overview thumbnail but after reinstalling windows this year something strange customer of media player 9 would play my videos but keep playing in the back ground even after clicking this box at top right to dismiss the media player that has not closed it was going on for a long time It was the first problem more no thumb nails now I have realplayer to play both music / divx player videos just to play the types of test files a few times Flash flash mp4 don't thumbs realplayer videos flash show the thumbnails, but not flash mp4 videos I have a flash drive, he plays as much as I want to pull up and watch isn't a problem here.  other players in support of windows vista movie maker Centre Photo Gallery of nero player photo viewer 7 do not use it a lot just love mp4 videos when fire videos on disc, I noticed last time I did a sort of what mite be wrong with my system on the nail of the thumb and videos avi file in windows Explorer with who can have to share intelligence...

    ==============================================================
    The following article might be worth a visit:

    (FWIW... it's always a good idea to create a system)
    Restore point before editing the registry)

    For Windows Vista file association problems
    http://www.Winhelponline.com/articles/105/1/file-association-fixes-for-Windows-Vista.html

    If you want to display the content of the downloadable
    regfixes... just save to your desktop, unzip (or simply drag
    the file on the zip file and drop it on your desktop)
    and open with Notepad.

  • How to display a thumbnail view of pictures? My vista does not list the thumbnails in the dropdown display menu.

    How to display a thumbnail view of pictures?  When I open the folder what I see is a generic panoramic picture rather than individual images.  My vista does not list the thumbnails in the dropdown display menu.  Before updating the Windows I used to be able to see thumbnails of my photos views when I opened the files with images inside.

    Here's a possibility... go to... Start ORB / Control Panel.
    Folder options / tab / files and folders / uncheck
    "Always show icons, never thumbnails" / apply / OK.

  • Windows7-how can I get my photos to allow me to move the individual to the neighbourhoods, in a file, picture when they are in a thumbnail view? __

    Windows7-how can I get my photos to allow me to move the individual to the neighbourhoods, in a file, picture when they are in a thumbnail view?
    XP has allowed this and then handed over to the correct order seen again in list format

    Thank you for visiting the Microsoft answers community.

    You can organize is more manually the files in the folders - Windows 7 change is design, but if you think this is something that you want changed, please submit your suggestion on the Microsoft Connect site for your comments.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • BlackBerry Z10 how to move music from thumbnail view to display the list

    In the application of music in the main library, how do you change the music of thumbnail view with album art and the name arranged in a grid, in a classic, if possible list view?

    NCtrans wrote:
    In the application of music in the main library, how do you change the music of thumbnail view with album art and the name arranged in a grid, in a classic, if possible list view?

    I checked every where I could think of, and I can't find any way to do this

  • Thumbnail view

    Is Adobe Acrobat Reader for iPad support view miniature as an alternatIve to the view of the list? It is would be good if we have one.

    Thank you

    Hey kresna_s,

    We're sorry, but right now the thumbnail view is not supported in Reader for iPad.

    You may fill out the feature request for the same thing:

    Feature request/Bug Report Form

    Kind regards

    Ana Maria

  • All my video clips display a generic logo in thumbnail view when they used to show an image of the film.

    HI - all my video clips (avi) show with a generic logo on the view thumbnails - when they used to show a frame of the video image.  Do you know how can I restore this view?

    original title: thumbnails

    Well I don't know how it works - but I just moved my videos folder in the "My videos" folder and all the icons appear as images!  I don't think that these files have different properties do?  Weird - but there you go.  They work very well in my photos, but not in my documents...

  • How to assign pockets for individual music (thumbnail view) files?

    I have SEVERAL music files and I noticed that some files appear to have the album art in the file itself.  (Pic/thumbnail appear when you drag the files from one folder to another media outside player, but only on certain files).

    I wish I could change the thumbnail attributed on certain files (where the existing art is incorrect).

    On the other files, I want to assign the album art to be that it is view miniature (where it shows only the symbol of music when you drag the file between folders).

    Thank you

    1. in Windows Explorer, it has the ability to edit the data file; However, NO cover / icons.

    2. in Media Player, I found where Add/Remove album art...
    a. right click on the file and select "Advanced Tag Editor"
    (b) if the file is an image that are entrusted to him, there will be a tab named "Images." Click on this tab.
    c. there bad art can be removed.

    3. to add new album art, two ways to do this from inside Media Player...
    from the 'Image' tab (see point 2 above), click on 'Add '. then, navigate to the correct photo.
    b. right-click/Copy to the Clipboard the .jpg file that is desired; Then, go to the album, icon album right-click and 'paste album art.  (Note that selection 'paste... art' is only availible after YOU copy the .jpg to the Clipboard)

    Thanks for your help!

  • images not showing in the thumbnail view

    My pictures do not show in the view thumbnails, only the image of space booked by default. How can I get my real pictures to show in the thumbnail?

    I answered my own question. in folder options, I had the "always show icons, not thumbnails" box checked.

  • Windows 7 - How can I see my real pictures when I'm in the thumbnail view?

    I just bought a laptop with Windows 7 installed.  In my pictures folder, all my photo files display as an icon generic picture of Windows in the sample photo.  I can't figure out how to get the thumbnail to display my photo.   I have Windows 7 and this has never happened before.  It's a pain in the neck to find a photo in particular, when each photo in the folder has the same generic image and not a thumbnail of the photo.  I have to double-click the generic icon and open it to what is photography.  Help! I've never had this problem with Windows XP.

    I just bought a laptop with Windows 7 installed.  In my pictures folder, all my photo files display as an icon generic picture of Windows in the sample photo.  I can't figure out how to get the thumbnail to display my photo.   I have Windows 7 and this has never happened before.  It's a pain in the neck to find a photo in particular, when each photo in the folder has the same generic image and not a thumbnail of the photo.  I have to double-click the generic icon and open it to what is photography.  Help! I've never had this problem with Windows XP.

    Assuming that your images are stored in the pictures folder in your Windows 7...
    Start button > photos > tab organize > folder and Search Options > view tab, uncheck always "show icons, never thumbnails" > OK

    t-4-2

  • How can I get a real jpg or gif image is displayed in thumbnail view in Win7

    Just upgraded to Windows 7 and there is no miniature display in Explore, just the views ICON.

    I thought about it, just by chance.  Under Folder Options, the box is checked that says: always show icons, never thumbnails... Who's going to do.
    Thanks anyway for your input.
    Don

Maybe you are looking for

  • M4 - HP Pavilion Notebook PC: how to disassemble my laptop

    Can you please help me or give me a manual on how to disassemble my m4-1001tx, hp laptop? There is a huge amount of dust accumulate inside my laptop. My laptop is overheating even on minimal use. Temperatures slow down on CPU and GPU is 70 - 90 c.

  • unknown video controller (7200 series)

    Dear reader, I recently upgraded my 7200 MS Win 98SE for MS Windows 2000 professional (SP 4). Now, my screen shows only 16 colors. The Hardware Wizard Windows tells me that my video controller (VGA Compatible) is unknown ("readers of this device are

  • Firefox does not correctly load a gmail theme

    I have problems to load the theme of an account of gmail on firefox. whenever I opened my Inbox through mozilla, I get a basic gray background. If I use IE instead, I get the correct background. I also have problems with labels and other customizatio

  • "HP windows 8: enter the password administrator or power on password.

    It asks me a password, but I enter the wrong 3 times and I get this number 81131762 someone help please

  • Stops running after the recall of custom Manager runtime error

    I have written a custom runtime error handler based on the example of ErrorHandlerExample which comes with TestStand uses Teststand 2010 SP1. It has been implemented as a reminder of StationPostStepRuntimeError in my folder of reminders of the Statio