JScrollPane now showing up with JList using TableLayout

Hi,
I have JFrame using TableLayout. On this JFrame I have added a JPanel that uses TableLayout too. Now this panel is divided into 4 cells. One each cell I am adding a JList. ALl the lists show up fine on the appropriate cells on the panel, but they don't hav any scroll bars. Below is the code.
Please help.
Thx, Sid.
DefaultListModel listModel = new DefaultListModel();
JList list = new JList(listModel);
list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
list.setVisibleRowCount(-1);
listScroller = new JScrollPane(list);
listScroller.setPreferredSize(new Dimension(250, 80));
listScroller.setVerticalScrollBarPolicy(
     JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
listScroller.setHorizontalScrollBarPolicy
     (JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
panel.add(list, new TableLayoutConstraints(2*itr1, 0, 2*itr1, 0, 
                    TableLayout.FULL, TableLayout.FULL));
lg.getListModel().addElement("Element1");
lg.getListModel().addElement("Element2);
.

Okay, I think I know what I am doing wrong. I need to add the JScrollPane to the panel and not the JList!

Similar Messages

  • Why is Ps and Dw now showing that I'm using a trial version?

    After using Ps and Dw CS6 since the cloud was released these applications are now showing that I'm using the TRIAL VERSION and they expire in 4 days! Yes, my subscription is vaild. The next auto billing is not until June 10th so I'm current. Yes, I've rebooted my PC. Yes, I have a connection to the internet at DSL speed that is a dedicated connection. Yes, I am running a dual core Itel Processor with 6gb of ram and 1 tb of HD. No, I have not made any software changes or installations since it was last working at 2:24Pm this afternoon. No, I have not exceeded my license agreement. These programs are installed and activated only on my PC and my laptop. No, Adobe Application Manager does not show that I need an update to either program.
    Is Adobe mad that I posted critical reviews concerning the Creative Cloud and this is my punishment? I'm sorry Adobe. I promise I'll be good and be quite if I can please have back the software and service I've paid for, I promise.
    Seriously, I know I've seen simular questions like this asked before but did not follow the thread for the answer and looking through the forum discussion area I do not see a recent question or answer for this. Does anyone know why this happens and if Adobe has an answer, fix or work-a-round?

    @Venzg - Thanks I'll keep those steps in mind for next time. This moring everything is working fine. Sometime in the night the fairies must have come and fixed it or more likely a server re-booted somewhere in the vast internet. You know what I find odd though? Not that it happened, we live in an imperfect world and screws fall out, but that it showed trial versions.
    Before I downloaded and installed the "Cloud" and Adobe Application Manager I deactivated and uninstalled all previous version of Adobe software including the TRAIL VERSIONS. That the TRAIL VERSIONS were displayed along with the seemingly correct number of days left on the trial tells me that an Adobe deactivation and uninstall is not complete. Persistant files exist after the uninstall and in my case this could lead to problems.

  • When using Firefox today a strange page with the title wonderhowto showing video instruction appears and all other open pages are closed. I have minimalised this stranger to the screen base and it now shows there with a mini firefox attached!

    Please bear with me as I am quite new to computers. Early today on start up I was asked to upgrade an Apple app. I declined as I did not have time.
    I opened Firefox as usual and went into several sites mail news etc and all seemed fine. Late morning this strange and quite professional looking video instruction page appeared full of photo's and instructions etc, the page took over the whole screen I thought it was strange so I closed it and all my open Firefox sites had gone. This has now happened several times. I have now noticed that when it is up there is a website address at the bottom of the screen. I tried to copy and paste this but it would not let me. There is a name scorecardresearch.com. Does this strike a bell with anyone?

    Hello,
    My name is Bryan Crow, and I am the CEO of WonderHowTo.com. This problem was brought to my attention this morning by others who have reported the same problem to our contact address: [email protected] I'm very sorry to hear this is happening.
    I assure you this is not something our website created or installed on your computer. Most likely it is some form of spyware or virus that is opening our website in order to hide it's true purpose. We are a large and trusted source for how-to articles and videos, so there is no reason we would choose to annoy people with such an obnoxious and intrusive behavior. Frankly it's very upsetting that someone would create malware that directed people to our website.
    Naturally, our team would like to do whatever we can to try and find the culprit behind this so we can report them. If any of you can provide me with additional information by emailing [email protected], it could help us get to the bottom of this.
    Specifically:
    * Have you installed or updated any Firefox Add-Ons recently (go to Firefox -> Add Ons to see the list of add-ons you have installed)?
    * What Firefox Add-Ons do you have installed?
    * Have you tried running a virus or spyware scan on your system? If so, which software did you use and did it help?
    * What URL is opening up when you see WonderHowTo, and what exact time of day (and in what time-zone) did you see it?
    Thank you for your help.
    Bryan Crow, CEO
    WonderHowTo
    1832 Franklin St
    Santa Monica, CA 90404

  • Events past midnight, now showing up with start time on BOTH days.

    If you have an event on one day that goes past midnight, iCal now puts the event on both days with the same start time on both days.  How do I stop this and have it only show the start time on the First day (like it did before Mountain Lion)?

    Hi -
    Thanks for doing that. I clicked on the annotations, nothing happened, was I supposed to see additional stuff or are they just markers? I just see text balloons now.
    MDmacuser wrote:
    As far as the filter, I am just using the built in filter to FCE.
    OK, so you are basically replicating the clip on V1 on V2 and applying a blur, then using the crop tools to constrain the blur to the area that you wanted blurred - so that the blur is the only visible part of V2, the rest of V2 has been cropped transparent and is just showing through to V1 below?
    OK, click on V3 and type Control - B to temporally hide the clip. Does the effect work for masking the first ID, all through the clip?
    Now click on V3 again and type Control - B to re-enable the clip so that it is visible.
    So on V3 you replicated the clip on V1 to V3, and applying a blur, then using the crop tools to constrain the blur to the area that you wanted blurred - so that the blur is the only visible part of V3, the rest of V3 has been cropped transparent and is just showing through to V1 and V2 below?
    If you did it that way - should work.
    Let me know if I don't understand what you are doing.
    thanks
    MtD

  • In address bar, my banking site now shows up with grey padlock, it's always been green before, why?

    Padlock at address bar for my banking site, Wells Fargo, used to be green, now it is grey.
    In chrome and internet explorer it is green. Is this a problem with firefox or is website been re directed somehow? (I have firefox 25.1 on dell inspiron 15 laptop running win8.1 64bit)
    Also, since ver 24, firefox sometimes loads what appears to html code (text only), I have to refresh to get the picturesetc..
    Also, on https sites when i enter and submit info, I get an error message as follows: An error occurred during a connection to startpage.com. SSL received a record with an incorrect Message Authentication Code. (Error code: ssl_error_bad_mac_read)

    have the problems settled?

  • External Firewire Drive Has Now Showing mounting with Intilize

    i have a seagate 1tb external firewire drive. its been working and has about 500gigs of info on it. today it is showing up as a unformatted drive. disk warrior is not seeing it. is there another program that could repair maybe tech tool or any other suggestions
    thanks

    If Disk Warrior won't see it.....ouch.
    Data Rescue II is good, but again, if DW won't see, it might be toast, sorry.
    As well, here is Apple doc.#88338 on getting FireWire to work.
    http://support.apple.com/kb/HT1317?viewlocale=en_US
    ...perhaps it is a bus issue and the drive itself is ok. Do you have another computer/cable etc. to test it with...

  • I don't understand what's happening with my Music. All the songs that I purchased, that were previously on my phone, now show up a Cloud next to them, but I can't play them. If I touch the Cloud, it turns into a red square but never downloads.

    I don't understand what's happening with my Music. All the songs that I purchased, that were previously on my phone, now show up with a Cloud next to them, but I can't play them. If I touch the Cloud, it turns into a red square, acts like it's downloading (which I can see happening in iTunes), but never downloads. The Cloud just stays there.
    I've sync'd my phone, I've turned it to "show all music" in Settings, I've drag and dropped the songs/albums onto my phone again. I feel like I've tried everything I've seen recommended, but nothing works.
    I've purchased a lot of music from iTunes. It should be there. What's going on?
    P.S. Same thing happening with my purchased books. Ugh.

    Once you successfully add you iTunes library to iTunes Match, you go to Settings>iTunes & App Store on your iOS device and turn on iTunes Match.  Your iTunes Match library will then appear on your iOS device.

  • PNGs showing up with white backgrounds

    Hello.
    This is very odd as this has never happened to any of my other files that use the same buttons. My pngs that are saved with transparent backgrounds are now showing up with white backgrounds. They also only show up with white backgrounds when you do one of the following:
    Press F8 to preview the file
    Publish the file
    Has anyone else ever had a similar experience and/or figured out a solution? I have searched the discussion board for similiar experiences...I found one...http://forums.adobe.com/thread/86092. I'm going to play around with "interlace" in Photoshop so I'll keep my fingers crossed. I have also ensured my graphics are smaller than the background--one graphic is an 8kb file and the other is a 13kb file and my background is 112 kb.
    Any solutions and/or thoughts are greatly appreciated.

    hello nyartist, this has nothing to do with quirks mode - it's just the default way that standalone image files are displayed in firefox...
    https://msujaws.wordpress.com/2012/01/04/blinded-by-the-light-an-improved-image-viewing-experience-in-firefox/

  • Dear I am using iphone 4s now its connected with pc to create contact group.  I have 750 contacts in phone but pc showing only 36. How can i solve this? How can I see all contacts in pc?

    Dear I am using iphone 4s now its connected with pc to create contact group.  I have 750 contacts in phone but pc showing only 36. How can i solve this? How can I see all contacts in pc?

    HI,
    It may pay to bookmark this page.
    http://www.apple.com/support/systemstatus/
    8:40 PM      Wednesday; April 10, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • HT4623 My ios update keeps getting stuck on the Restoring iPhone software stage. I uninstalled iTunes and reinstalled it again, but still nothing. Now I can't even use my phone as it shows the plug into iTunes screen. Please help!!!! Thanks,

    My ios update keeps getting stuck on the Restoring iPhone software stage. I uninstalled iTunes and reinstalled it again, but still nothing. Now I can't even use my phone as it shows the plug into iTunes screen. Please help!!!! Thanks,

    A Restore first downloads a new copy of iOS to your computer. On a slow Internet connection this can take a long time. How fast is your connection? How long would you expect it to take to download 900 MB?
    That's assuming nothing is interfering with the download. Some firewalls and antivirus programs will block the download or slow it down. So you should temporarily disable your security software. Security software can also block the update after the iOS download is complete.

  • I have used the same Apple ID on my children's iPads. Both iPads are now showing as the same. How do I get the missing account back?

    I have used the same Apple ID on my children's iPads. Both iPads are now showing as the same. How do I get the missing account back?

    You can clear the iPad and start again with the other account> Settings->General->Reset->Erase all Content & Settings
    Or you can go to Settings->Itunes and App Stores->Apple ID->Sign Out,
    And Then  Sign in with the other account. You can then download the Apps with that account. Though you may block the other account for 90 days.
    Your best bet is to set it up again using the orighinal account it had, so you can get their Apps back. without affecting your account.

  • My wireless keyboard no longer connects with my iMac since changing the batteries. It now shows as not connected, not paired and not configured. A friend recently connected his iPad to the iMac and since then the problem started. Any ideas to resolve this

    My wireless keyboard no longer connects with my iMac since changing the batteries. It now shows as not connected, not paired and not configured. A friend recently connected his iPad to the iMac and since then the problem started. Any ideas to resolve this?

    a friend told me that he wants my os x cd for my macbook pro to upgrade his imac.
    The discs that come with your Mac are "machine specfic" and cannot be used on another Mac.

  • My events photo albums have all been renamed with a number followed by IMPRT instead of the date which was how they were originally named. Also the photo now showing on the top of each folder is not actually in that folder. How do I restore?

    My events photo albums have all been renamed with a number followed by IMPRT (deleting the date on which they were taken) Also the photo now showing on the top of each folder is taken from a different event and so is not actually in the album it is sitting on top of. This happened when I linked to itunes. Any idea how to restore it to how it looked before?

    One thing that I find odd is that iTunes used to rebuild the .itl file when you deleted it.  It seems as if the newer iTunes somehow broke this old capability.  If you delete the .itl file it can't rebuild it- it simple treats this as if this is a fresh installation and completely ignores the fact that the .xml file has all the data in it.  I think Apple needs to bring back this old "feature".  Of course, the negative with that was that you lost all of the "Date Added" info along with some other stuff but at least it still kept the favorites info etc. (and I think maybe even the path although I don't believe I ever tried that because my account path has never changed until now).
    One side note: I can't find where the iTunes Windows SDK is.  I was hoping to try to use that to access the .itl "database" and write a utility to fix this situation.  Seems like this has moved from its original location...

  • HT1752 My MacBook on startup shows file with question mark ,, what now?

    My Mac shows file with question mark, what now.

    Press the power button down to force a emergency use only hardware shutdown.
    Press and hold the Option/alt key on the built in keyboard, boot the machine.
    If MacintoshHD appears, select it and click the arrow, then in System Preferences > Startup Disk reset that. Done.
    Sometimes a NVRAM reset is required then the above done again.
    Folder with question mark issue
    ..Step by Step to fix your Mac
    If MacintoshHD doesn't appear, or if it boots to gray screen or other issues, then it's more complicated of a fix, but once inside OS X then reset the Startup Disk.
    Gray, Blue or White screen at boot, w/spinner/progress bar
    ..Step by Step to fix your Mac
    You might need this if you don't have a recent backup and your problem is software related, Disk Utiltiy can't fix the drive and recommends you backup, erase and install.
    .Create a data recovery/undelete external boot drive
    If Disk Utility + Hardware Test shows no boot drive, then you have a dead drive or cable, or Mac issue.
    My computer is not working, is my personal data lost?

  • I am using an apple ipad 2. has always used facebook on it since the first day I purchased it.  I started to use it last evening, 01/19/14 and received a blank white page on facebook..at the top it shows ipad with wifi running, time in the middle and amou

    I am using an apple ipad 2, have always used facebook on it since I purchased it. now, tryig to open facebook, I receive only a white blank page.  the only thing is that at the very top, it shows ' ipad with wifi running   middle -- time and at the right end.. the battery amount.  then my my white page.  I am not understanding?

    Quit the Facebook app then reset the iPad.
    Double click the Home button to show the screen with running and recently used apps. Each app icon will have a sample page above it. Flick up on the page (not the app icon) and the page will fly away and the app icon will disappear. This quits that app. Then reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

Maybe you are looking for

  • Data in the cube is showing wrong when compared with ODS

    Hello BW Gurus, We have a waste report in production planning on Cube and ODS separately. The same info package loads both targets (which means same infosource) but when we run a report on Cube, the records are showing multiple entries (i.e. Key Figu

  • Help with timing of sound and buttons

    Hello, I've been searching the discussion boards and have tried everything I've found and I'm still stuck. Please help! (I'm working in Captivate 5) Here's the senario - I'm doing a slide before the start of mycaptivate presentation to test that they

  • How do i create this function?

    How do i create a function like this "attached" so that when a customer decides he likes a different color, he can just click the link with the dot or symbol next to the color name.

  • Add fields to transaction VOV8  - Sales Order types maintaines

    Hi, I want to know if it is possible to add new fields to view V_TVAK (threw table TVAK), and then add them also to the view in transaction VOV8  for a sales order type. Thanks naama.

  • Not able to Logg into Workspace

    Hi Friends I have created one user/schema (lets say A) through internal workspace and allocated that user(A) to one workspace.When i created User A that time Default TABLE SPACE allocated USERS and TEMP TABLE SPACE allocated TEMP to that User .Now wi