A list that's not a JList

Hi all,
I'm trying to create what is effectively a list of panels - where each panel (ie list entry) added to the list will contain additional subcomponents (progress bars, buttons, labels, etc).
I could implement this by creating a custom ListCellRenderer for a JList, but I need the panels to be fully interactive, so I'm trying to come up with a solution involving a main JPanel within a JScrollPane, then adding additional subpanels as needed.
However, I'm having a hell of a time trying to get it right - I want each subpanel entry to have a fixed height (say 100px) but to be as wide as the main window is wide (the JScrollPane shouldn't scroll horizontally) (just like in a JList).
Can anyone suggest recommended layout managers to achieve this? Most things I've tried have always just made each subpanel fill the entire available space, or fixed their width so they don't resize to fit horizontally.
To complicate matters, I need to be able to add and remove entries from the list at runtime. A JList is obviously designed for this, but won't let you add interactive panels as entries - unless I've missed something?
Thanks in advance
Iain

You can do this with a JList by using a custom editor in addition to a custom
renderer.
As far as a layout, you have some choices. Some people would suggest
SpringLayout for this, but I'm more comfortable with GridBagLayout, so try
wrapping the (untested) code below in a JFrame. I'm setting the preferred
height to 100 for each panel separately because there's no way for any
layout to do that for you. The width can be any value.
final JPanel pane1 = new JPanel();
pane1.setBackground(Color.RED);
pane1.setPreferredSize(new Dimension(0, 100));
final JPanel pane2 = new JPanel();
pane2.setBackground(Color.GREEN);
pane2.setPreferredSize(new Dimension(0, 100));
final JPanel listPane = new JPanel(new GridBagLayout());
final GridBagConstraints gbc = new GridBagConstraints();
gbc.weightx = 1;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.anchor = GridBagConstraints.EAST;
gbc.gridx = 0;
gbc.gridy = 0;
listPane.add(pane1, gbc);
gbc.gridy++;
listPane.add(pane2, gbc);

Similar Messages

  • SP2013: List does not exist / The page you selected contains a list that does not exist. It may have been deleted by another user

    There are dozens of entries regarding "
    List does not exist / The page you selected
    contains a list that does not exist. It may have been deleted by another user" and none of them are really SP 2013 so i thought I would create this entry. 
    I am getting the error above after creating a simple list with 4 columns.  the list is created during a new site definition activation but when I click on my list, I get the error above.  the list works if I deactivate the feature and re-activate
    it.  but has the error whenever the new site definition is created.  
    Has anybody encountered this issue on SP 2013?

    Hi,
    For your issue, there are plenty of possible reasons offered when we search this issue online.
    Here are similar issue posts, check whether they are helpful:
    http://sharepoint.stackexchange.com/questions/98239/list-does-not-exist-error-when-opening-the-views
    http://sharepoint2u.com/?p=56https://shareyourpoint.wordpress.com/2012/04/12/list-does-not-exist-the-page-you-selected-contains-a-list-that-does-not-exist-it-may-have-been-deleted-by-another-user-sharepoint-2010-error/
    http://spnovice.blogspot.com/2012/10/list-does-not-exist-or-does-it.html
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • List does not exist . The page you selected contains a list that does not exists. It may have been deleted by another user

    Hi everybody!
    I have a sharepoint 2013 farm with 5 sever. I upgraded a site from sharepoint 
    2007 to sharepoint 2013. I had some problems to install and configure workflow manager and register it. but by now I found problems and I can create a workflow and run it successfully. My big problem is when I try to get a lookup field in my flow. the
    flow suspended and I got the following error:
    “List does not exist . The page you selected contains a list that does not exists. It may have been deleted by another user.”
    Any solution???
    Thanks in advance!

    Hi,
    Please make sure the source list of the lookup column and the list which consumes the content from the lookup column exists on the site collection.
    In addition, to correct this problem the following steps should be applied:
    Delete the affected Workflow association
    Go to "Central Administration" - "Application Management"
    Select the affected web application and choose "General Settings" - "Resource Throttling"
    Increase the value configured as "List View Lookup Threshold"
    Perform an iisreset to ensure that all in memory instances of the web application settings are gone
    Add the Workflow association back to the list
    More information is here:
    http://social.technet.microsoft.com/Forums/en-US/3aeeba20-07dd-4e46-941b-a3db1bb3577e/sharepoint-2013-designer-workflow-the-page-you-selected-contains-a-list-that-does-not-exist?forum=sharepointcustomization
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Duplicate Tracks Listed That Are NOT Really Duplicates!

    My iTunes library suddenly has many duplicate tracks listed for SOME (not all) CD's I imported into iTunes, and I'm not sure why! The CD's that have duplicate tracks listed are split into individual songs. In other words, all the tracks are not listed together with one picture of the album art, but are split into individual tracks, with a duplicate picture of the album art showing for each track (as if each track was an individual CD)! When there are CD's with duplicates showing, there is always two track #1's, two track #2's, two track #3's, etc. If I click on the FIRST track #1 listed, I get the error message that iTunes cannot locate the file, and it asks me if I'd like to locate it. The non-functioning track is ALWAYS the first one listed (in other words, the first track #1 listed, the first track #2 listed, etc). This happened after I moved my iTunes library over to my external hard-drive, and I think it may have something to do with the fact that there may be some extra folders/files in my iTunes folder on my external hard-drive that don't belong there! The folder where I have iTunes save my music to is "G:\iTunes\iTunes Music", and inside my "G:\iTunes" folder are the following folders/files:
    Album Artwork (folder)
    iTunes Music (folder)
    iTunes Library.itl (file)
    iTunes Library.xml (file)
    iTunes Library Extras.itdb (file)
    iTunes Library Genius.itdb (file)
    iTunes Music Library.xml (file)
    Sentinel (file - no extension)
    Is this correct? Does anybody know if I have an extra library file that's "confusing" iTunes? I am going through my library and manually deleting all the duplicates, but I have over 11,000 songs in my library (all recorded off of my over 1,000 CD collection!) and this is, as you can imagine, rather time-consuming!
    Any help/suggestions would be GREATLY appreciated!
    Thank you!
    Dennis

    I've written a script called DeDuper which can help remove unwanted duplicates. See this  thread for background.
    tt2

  • How do I delete contacts from the "to" suggested list that are not in my regular contacts?

    How do I delete a contact from the quick look up in the "to" box that is not in my Contacts folder?

    AFAIK - you cannot eliminate those contacts with the built in mail app on the iPad. There has never been a way to remove them that I have found in the 13 months that I have owned an iPad. You just have to ignore them.
    If you would like to make a suggestion to Apple about adding that feature in a future update, you can do so here.
    http://www.apple.com/feedback/ipad.html

  • How can I edit an Address Book Distribution List that will not display in Lion?

    The option to edit an Address Book Distribution List (to select preferred emails for certain contacts) only appears as light print and does not respond to selection.  I have a number of Address Groups that display and funtion properly in Mail, but since installing Lion, the problem described occurs.  Any fix?  Thanks.

    The key is that the Contact List is now being kept in the Cloud & you cannot edit the Distribution List in your Mac's Address Book.
    The fix is:
    Quit your Address Book
    Go to  Menu --> Sys Preferences --> iCloud
    Uncheck the CONTACTS icon
    Close Sys Pref
    Open Address Book - Edit your Distribution Lists (No longer Greyed out)
    Quit Address Book
    Go to  Menu --> Sys Preferences --> iCloud
    Check the CONTACTS icon
    You should be good to go!
    Hope this helps!
    ...John

  • How do I upload the music in a list that is not purchased music from my iPad to my computer. It doesn't sync automatically.

    I want to download the new 5.0 software to my iPad 2 but I don't want to lose all the music I have in my lists in iTunes. When I sync with the computer, these songs do not automatically sync. Only the ones in "purchased" music will upload. How do I upload these files to my computer from my iPad for downloading later after installing the new software?

    How did you get the music onto the iPad if it is not purchased music and it was not imported via iTunes?
    Manually manage content is for adding content to the iPad from the computer. It is in the summary tab in iTunes.
    If you want to transfer content from the iPad to your computer (if I understand you correctly) - this will help.
    http://www.wideanglesoftware.com/touchcopy/index.php?gclid=CMC-np7qnawCFcFw4AodM 1Kv2g
    Message was edited by: Demo

  • HT1349 trying to import a cd and i am receving incorrect song info, that is, songs are listed that are not on the cd in question what to do?

    trying to import a cd and songs are being downloaded from an older cd with a similar name

    If more than one entry is found for the CD (which can occur if more than one person submitted information for the same CD to the Gracenote service), select one of the entries. If it isn’t correct, choose Advanced > Get CD Track Names again and choose the other entry. If it’s still not correct, you can edit the information yourself.

  • SharePoint 2013 users only see custom list and document lists that they uniquely created

    In my first SharePoint 2013 project, I want to create a view where users can only see their own files that they generated. I think I know how to create this view when the list is associated with the 'Documents; folder. However I have created several custom
    lists where I can only see these items when I am on the navigation pane to the right and the unique custom lists are listed under 'recent'.
    Let me know if you can answer any of the following questions:
    1. When on the main SharePoint website, can lists be displayed in other locations than what I just listed? If so, where would I see these other lists?
    2. I would like to include the custom lists that are located in the 'recent' navigation pane as a view that only I can use. This would be based upon userid. If this is possible,  how would you combine the lists lists in the same view? If this is not possible,
    how would you set a view just for the lists listed under the 'recent' section?
    3. The content approval solution under versioning settings of a library to restrict the documents to only ones that the user created (and also Approver rights).  Then if they create a new view they still won't see the documents that were not created by
    them. What about custom lists that are not in the documents area but are in the 'recent' area? Would this restrict users to see only items that they created?
    4. Item level Permissions in advance settings solve this problem for the list in the document area and the custom list in the recent area? If so, how would you setup these values?

    As it turns out the, setting Item-Level Permissions in a library is fully supported with PowerShell!
    The PowerShell commands for changing this are very simple:
    $web = Get-SPWeb http://YourSite/
    $list = $web.Lists[“Your Document Library Name”]
    $list.ReadSecurity = 2
    $list.Update()
    $web.Dispose()
    Note the 3rd line which is where you determine the value for this setting using the following values:
    1 = “Read all items”
    2 = “Read items that were created by the user”
    If you wish to modify the values for Create and Edit access instead, replace .ReadSecurity with .WriteSecurity with
    the following values:
    1 = “Create and edit All items”
    2 = “Create items and edit items that were created by the user”
    4 = “None”
    For example:
    $web = Get-SPWeb http://YourSite/
    $list = $web.Lists[“Your Document Library Name”]
    $list.WriteSecurity = 2
    $list.Update()
    $web.Dispose()
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to list files that are NOT in a .jar file?

    Is it possible to list files (resources, .gif/.jpg files, etc.) that are NOT included in the jar but are still to be considered part of the application somewhere in the jnlp-file?
    My applications requires lots of icons which I have put into .gif files. So far I kept them in individual files next to the .jar file and that worked fine.
    JWS now seems to support only stuff that is included in (a) .jar-file(s). That in itself woul not be much of a problem, however, when I include my .gif files into the .jar files they seem to get corrupted by the jar-signing process (at least that what's the code says, which can suddenly not handle these images any more).

    My previous seem to have been non-sense. The .gif file were not corrupted, but rather they were not found at all. They actually must NOT be included in the .jar file, or else they are not found. Strange enough, the .properties-file seemingly HAS to be in the .jar file to be found.
    This is something I'll probably never fully understand with java: which file-types it searches where...

  • I am recieving calls from a solicitor. Show up as no caller Id. I want to block all calls that do not show caller Id. Can I do that? I am on the do not call list

    How do I block all in coming calls that do not show on my caller Id. Phone says "no caller id" This particular call is from a place selling septic tank cleaner. They leave an automated voice mail. They are calling me over and over. I am on the national do not call list but that's no help. Because the caller id doesn't show anything I can't even report them.
    I remember in the past calling a number and before my call would go thru I would have to enter my phone number so the party I was calling knew who was calling them. That is what I want to do. I want to block all calls from "no caller id" "number unavailable" Just FYI my phone is an IPHONE 5 and I am on Verizon.
    Any help would be appreciated.
    Thanks

        itbitybob, good day!
    Thank you for taking the time to reach out to us today. I know how frustrating it can be getting phone calls from "no caller id" numbers. We do have an option that is called Family Base that will allow you to block unknown numbers, private numbers, or caller id. This link will provide you with the full details of this option. http://vz.to/1gIklla I hope this is able to answer your question. If you have further questions please feel free to reach back out to us at any time.
    KevinR_VZW
    Please follow us on Twitter @VZWSupport 

  • How do you get Itunes to go the free radio station list, I'm not talkiing about the one that lists the price next to the song that's playing, I'm talking about the one that lists about 50 diffrent genes.

    How do you get Itunes to go to the free radio station list, I'm not talking about the one that lists the price next to the song that's playing, I'm talking about the one that gives you 50 diffrent genes to select from?

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes forums.
    But answering quickly, if you mean the streaming stations, click the Internet item:
    If you don't see that item, checkmark "Internet Radio" in the General preferences in iTunes.
    Regards.

  • I need to know how to set proxy exception list on remote pcs that are not on a domain controller

    I currently manage approx 1,800 computers on a vpn network. They are not part of any AD. There are mixed service packs of XP mostly SP2 and SP3. They all access the internet via a proxy server. They are all running either IE6 (not many left) or IE8. I have
    wrote a script to change the proxy exception list but not all of them have worked I have changed the following reg keys [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] & [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet
    Settings] & [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]. It seems in the ones that have not changed, the local SID account is the one in use and this has not changed because of its uniqueness. Is there a way either
    scripting or a commercial package that I can use to write keys to ALL users. I'm not sure on the details of how to use local policy to set this or how I would be able to write a script that would import the settings from a text file or something. Can anyone
    help with this matter.
    Thanks

    Well that is certainly not an easy task.
    .Default is not the default user account. I do not recommend making changes there. HKLM is for the local machine which is probably your best bet for all users but if it is not propagating through that then it would have to be the current user since they
    are not logged into a domain.
    There is a way to update all the HKCU and there is a walk through here:
    http://micksmix.wordpress.com/2012/01/13/update-a-registry-key-for-all-users-on-a-system/
    Making this management simple I'd suggest joining a domain and using GPO but I understand if it is not an option.

  • How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?

    How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
    I currently run OS X 10.10.1
    Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
    Here is an example of what i want to happen.
    I will have 2 tabs: Contact | Sales
    Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
    for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
    Now how do i do this, Excel can do this so how can numbers do it?

    Hi Shegra,
    Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
    quinn
    Script starts:
    -- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
    property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
    property DataEntryTable : "Sales" --name of table with popups to be refreshed
    set copyRange to {}
    property PopValueSheet : "Sheet 1" --name of sheet with popup values table
    property PopValueTable : "Contacts" --name of table with popup values
    set PopStartRow to {}
    tell application "Numbers"
      set d to front document
      set ps to d's sheet PopValueSheet
      set pt to ps's table PopValueTable
      set s to d's sheet DataEntrySheet
      set t to s's table DataEntryTable
      set tf to t's filtered --this records filter setting on data Entry Table
      display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
      set PopStartRow to {text returned of result}
      tell pt --convert list to alphabetized popups
      set ptRows to count rows
      set copyRange to ("A2:" & name of cell ptRows of column "A")
      set selection range to range copyRange
      set selection range's format to text
      sort by column 1 direction ascending
      set selection range's format to pop up menu
      -- popupsmade
      set selection range to cell ptRows of column 1 of pt
      set v to value of cell ptRows of pt
      end tell
      activate application "Numbers"
      tell application "System Events" to keystroke "c" using command down
      tell pt
      set selection range to range copyRange
      set selection range's format to text
      end tell
      tell t
      set filtered to false
      set tRows to count rows
      set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
      set selection range to range pasteRange
      tell application "System Events" to keystroke "v" using command down
      set filtered to tf
      end tell
    end tell

  • How can i restore my iphone from a back up that is not listed on itunes

    I need to restore my iPhone from a backup that is not listed in the itunes backup section. I only did it at 6 pm yesterday. Is there a way to find this backup on my computer and return it to the itunes backup list?

    Normally backups are incremental, and you can only restore the latest. EXCEPT that a backup of an earlier version is archived, and the first backup of the new version is thus complete. You should be able to restore a 6.1.4 backup to iOS 7. Click the Restore Backup button. The dialog that comes up should have a dropdown where you can select a backup to restore. If the old one does not show up it cannot be restored.
    However, since you appear to have a Mac, if you use Time Machine you can restore an earlier backup over the current one from your Time Machine history.
    You can also back up to iCloud, even if you don't sync to it. See: http://support.apple.com/kb/HT5262
    One well hidden feature (for future use) is archiving backups. If you go to iTunes Preferences/Devices, right click on the current backup and choose "Archive". The next backup you make will be a competely new one, and the old one will be preserved and can be restored at any time.

Maybe you are looking for