How can I uses JScrollPane without use the constructor?

This code:
JPanel pn = new JPanel();
pn.setPreferredSize(new Dimension(5000, 5000));
JScrollPane jsp = new JScrollPane(pn);
Draw a Panel with Scroll Bars.
But if I write:
JPanel pn = new JPanel();
pn.setPreferredSize(new Dimension(5000, 5000));
JScrollPane jsp = new JScrollPane();
jsp.add(pn);
Don�t show the scrollbars. Why? How can I do this code function?
Thanks for any help.
Renato

jsp.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
jsp.setHorizontalScrollBarPolicy(...

Similar Messages

  • I have an Apple MacBook Pro with 2 USB ports and a MiniDisplay Port. I also have an HDTV with a HDMI port. How can I use the TV as a display without any tethering wires between my computer and the TV?

    I have an Apple MacBook Pro with 2 USB ports and a MiniDisplay Port. I also have an HDTV with a HDMI port. How can I use the TV as a display without any tethering wires between my computer and the TV? I have a MiniDisplay Port to VGA adapter, but there are two issues with it: The new display doesn't have a VGA port, and even if it did, I wouldn't want to have my mac constantly attached to the display by a cable. I was looking for a way to use the TV as a display without any wires. Is there some type of bluetooth setup I could use? Please let me know if you have any suggestions.

    As I wrote above, I think you should look into the Apple TV yourself. The best place to find information about what it can and can't do and to ask your own specific questions is probably in the Apple TV forum, here:
    https://discussions.apple.com/community/appletv/appletv

  • I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    Contacts are designed to be synced to a supported application on the computer or a cloud service.
    Pictures taken with the device are designed to regularly be copied off the device to a computer as would be done with any digital camera.
    If you have failed to use the device as designed it may be too late to recovery anything.
    Is the device regularly backed up to a computer via iTunes?  If so, the most recent backup (when restored to a replacement iOS device) should contain all contacts and pictures as of when the backup was created.

  • How can I use the gps without internet in my Ipad3 - 4G

    How can I use the gps without internet in my Ipad3 - 4G. Do I need to download any additional app than the one that already came with it?

    The Maps app included in iOS, at least as of the current version, requires an Internet connection, so you'll need to get an app that allows you to download maps to be kept on the iPad. MotionX GPS Drive is one such app, but there are others available.
    Regards.

  • How can I use the Creative Cloud without having a Credit Card? Why are there no other possibilities?

    How can I use the Creative Cloud without having a Credit Card? Why are there no other possibilities?

    Hi @DRB1961, 
    I do not think the Zeen will work if you no longer have the C510 printer. The printer is necessary to ensure the Zeen is up to date. The Zeen is simply not a standalone device, it is a component of the printer.   I can not say this with certainty that it will not work, so it is worth trying to reset the Zeen to finding out for sure.
    When you see this message, "must dock the Zeen to the printer to continue", can you access the settings using the 3rd icon above the touch screen? If so we can do a factory reset, if not there is no other way I can think of to bypass this message.
    I just tried a reset on a Zeen I have access to, after the initialization, it prompts me to attach the Zeen to the printer to continue with product setup. it appears my original speculation was correct. No, you can not use the Zeen without the printer.
    Clicking the thumbs up below helps show me that you are grateful of my efforts   If you have any additional questions, I am happy to help.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • HT4847 i have 5gb of icloud storage, used 2.5gb but it wont let me unlock the other 2.5gb of storage. How can i use the remainig 2.5gb of storage?

    i have 5gb of icloud storage, used 2.5gb but it wont let me unlock the other 2.5gb of storage. How can i use the remainig 2.5gb of storage?

    I got rid of AMDS, ASU ,QuickTime and iTunes from control ones I also found folder in Vista with D:\Users\Rick\Music\iTunes\Previous iTunes Library and there is one dated 2009-03012.itl. I moved this file up one folder and delted existing iTunes Library.itl. iTune still failed to identify my iPhone. There are other files iTunes Library Extras.itdb, iTunes Library Geniyes,itdn and iTunes Music Library,xml date dtd 06/18/2009 after upgrade except the latter which is date 06/23/2009. So something is not allowing me to pull or put everything back to when it worked.
    YES this is my only iPhone and only PC I have access to with iTunes.
    Here is what Apple gave to someone Sunday 28 June:
    http://discussions.apple.com/thread.jspa?threadID=2035950&start=75&tstart=0
    I checked these out too and they appear the same printed out nearly a week prior. I agree with Coach TO, if I had bad drivers or Vista errors it would not have shown up only when I updated to latest Version of 8.2.023. My Phone was identified on a PC with iTunes at the local AT&T store. He suggested I get phone into Recovery made while connected to iTunes and that resolves the problem 9 out of 10 time. Weak spot was he tried to get phone into Recovery without iTunes connection and thought I may have iPhone problem, then changed his mind when it worked while connected. He also stated it could take an hour. I have not tried to put my iPhone in Recovery lately, I think I did a while back and it failed to go into Recovery as error "iPhone detected by, not identified..."Has anyone tried forcing phone into Recovery? I understand you may lose all that is on phone. If iTunes still fails to identify would we not be in worse shape even if iTunes holds a recent backup which it does not for many of us? Will Apple take back or exchange phone if yours is not identitifed, AT&T today told me I had to go to Apple Store for this or anything to happen.

  • How can I use the iPhone 4S with no SIM card?

    How can I use the 4s with
    no SIM card
    Just for photo and internet

    Using an iPhone without a wireless service plan - Support - Apple

  • How can utilize/use  the extended space in system.img ?

    Hello Guru's
    In Oracle VM , How can utilize/use the extended space in system.img ?
    a) Increased the system.img size using the following command:
    # dd if=/dev/zero bs=1M count=12960 >> /OVS/running_pool/18_test1/System.img
    b) Verified the added size of system.img file at OVS server.
    # ls -lh System.img
    -rw-r--r-- 1 root root 19G Feb 9 20:58 System.img
    c) Started GVM and additional size/memory is not shown ?
    # df -m
    Filesystem 1M-blocks Used Available Use% Mounted on
    /dev/xvda2 3984 2292 1652 59% /
    /dev/xvda1 92 12 75 14% /boot
    tmpfs 512 0 512 0% /dev/shm
    + Tried working with resizefs , resize2fs , cmd did not work.
    (GVM is created using Oracle provided template)
    + am i missing anything ?
    Oracle VM Setup Detail:
    oracle-logos-4.9.17-7ovs
    enterprise-linux-ovs-5-0.17
    ovs-release-2.2-0.17
    ovs-utils-1.0-33
    kernel-ovs-2.6.18-128.2.1.4.9.el5
    ovs-agent-2.3-29
    Thanks in advance for your help.
    Best Regards
    Basu

    I am not positive what you did is going to work, but it seems like you did the equivalent of imaging a small disk on a bigger disk. In that case, the first thing to do is update the partition table with fdisk. Start with fdisk -l in the vm for general information about the disk. Hopefully, the additional space will show. Then, work with fdisk to use the extra space. The easiest is to add a partition, then a file system on it. It is also possible to expand the last partition (you might have to delete it first), then expand what is on it (may be RAID, LVM, or the file system), layer by layer. As usual with fdisk, you run the risk of thrashing it all, so you may want to practice on a copy first. Obviously, the extra space can only be added to the last partition of the small disk.
    If the situation is more complex, you may have to boot a VM with both the small disk and the big disk at the same time. If you boot the VM off of an iso DVD image, you can then shell out, then run fdisk to partition the big disk the way you want, then use dd to copy the partitions you want in the order you want from the small disk. I am pretty sure not all combinations will work, but you get the idea. You can then take the small disk out, and boot off of the big disk.
    Come to think of it, you might just be better off with adding more space as a second virtual disk. You would then be free to partition/format it the way you want without messing with the first disk. Linux is so good with disk management, so many options.
    As a general statement, though, I like to put some distance between the high level file systems and the low level disk partitions, so I use LVM (Logical Volume Manager).
    Best of luck, keep us posted.

  • How can we use the SDXC PORT ?

    Hi,
    Im intending to buy a Macbook pro 15" and i wonder how can i use the SDXC to boot my future macbook.
    I heard there is out there some cards to make it boot faster. I am not talking here about sd camera cards.
    And do you think i made the right choice by choosing the 15" 2.2 ghz i7 ?
    Thank you

    fane_j wrote:
    There's only one way to make your "mac faster and use it every day"—replace the internal disk drive with an SSD, or replace the internal SSD with a bigger and faster SSD.
    Disk I/O has alwas been the main bottleneck of all computers. So you either make it occur faster or you reduce de times it needs to occur.
    In the "faster" section, the issues I have with SSDs are several:
    Their price still needs to go down way more. The cost per MB of SSD-based storage is still vastly greater than that of HDDs. Yes, if you compute in extreme environments like karting down Baja or skydiving off the Himalayas, a ruggedized SSD is great, but most of us mortals live in the safe confines of a homey office.
    The size of SSDs has to expand much more. Yes, they are inching up to the 500GB size, but HDDs are at 1TB and promise to break that barrier before the year is out.
    If you purchase your SSD preinstalled in your Mac, you will be paying a big premium, compared to marketplace SSDs, even those from the same maker but not Apple-branded. This also applies to RAM.
    If you put in a non-Apple-branded SSD, Lion will not enable TRIM support by default and you will have to go "under the hood" to enable it. Without TRIM, you will not get the full performance and durability benefit of an SSD.
    Might be me, but I prefer to stick with HDDs for now, just making sure they are of 7200RPM spindle speed.
    In the "reduce" section, must point out that Lion is a 64-bit beast. Meaning that all data structures are twice the size of previous 32-bit cats. Regardless of "minimum" specs, 4GB RAM is the new practical minimum and 8GB makes the fat cat much happier. But buying RAM from Apple is not a financially wise decision; an 8GB upgrade from reputable vendors can be had for around $40, in stark comparison to the $200 premium charged by the Apple store. For the same $200 or a bit less, you can get a 16GB upgrade instead, not officially sanctioned but that works just fine with the latest model Macs. In this case, I don't think the OP will need as much, but it is something to take under consideration. The extra RAM will drastically reduce the disk-based paging that the memory management carries out, thereby minimizing that bottleneck.

  • How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    read this
    https://discussions.apple.com/message/20429789#20429789

  • How can I use the print module to print different size images on one large "canvas"?

    How can I use the print module to print different size images on one large "canvas"? An example would be in Photoshop, go to file>new, and create the size paper I want, and move images of different sizes onto it.
    I was thinking the print module would do this automatically for me.

    You can't, at present. It's been a requested feature, so we'll see if it shows up in a future version, but it's not there at present.

  • How can I use the QR codes with my iPad 2. do I need to download first an app ?

    How can I use the/read the QR codes with my iPad 2 ? Do I need to download an app ?

    Yes.  There are quite a few available for free in the app store

  • HT4314 I have a game under one account, now I have an Itunes card under a different account, how can I use the $$$ in the card for the game I'm playing, I need to purchase different items for my game.

    I have been playing a game for a while under an account, now I have an Itunes card under a different account and would like to use that $$$ to purchase items for my game, but it doesn't let me because the game was downloaded under the original account. How can I use the $$$ in my new account?

    same here but i cant purchase a movie or anything

  • How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?

    With Acrobat 6.0 I was able to copy a stamp in the same position (I mean "exactly" the same one) of different pages just by using the "copy/past" tool.
    Now I am using Acrobat XI and it seems like it is not possible anymore: I am copying a stamp and I am trying to past it in anoter page, but it appears in the center of the page (or wherever it wants to...).
    Does anyone have a solution?
    Thanks in advance.

    Thank you very much. I'll be waiting for you message.
    Messaggio originale----
    Da: [email protected]
    Data: 26/01/2015 17.56
    A: "Umberto Gangi"<[email protected]>
    Ogg:  How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
        How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
        created by Gilad D (try67) in Creating, Editing &amp; Exporting PDFs - View the full discussion
    Well, I was in the same situation so I've developed a tool that allows one to do it. I will send you some additional information about it in a private message.
         If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7132586#7132586 and clicking ‘Correct’ below the answer
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7132586#7132586
         To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, &amp; "Stop Following"
         Start a new discussion in Creating, Editing &amp; Exporting PDFs by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • I have two iphones, different telcos, i am using the same apple id for both - how can i use the 10GB icloud free memory of my new iphone 5?

    I have two iphones, different telcos, i am using the same apple id for both - how can i use the 10GB icloud free memory of my new iphone 5?

    Thank you KiltedTim!
    YES, that is the free 5GB icloud memory for each apple ID. Can I not add the free 5Gb of my second Iphone to my original apple ID (5GB also) as I want to use one Apple ID name on both 2 Iphones? Is it necessary to have a different apple ID for the second Iphone to avail the free 5GB it carries with it?

  • How can i use the iCloud

    how can i use the iCloud,i can't find the icon which should need i download

    system preferences - internet & wireless section - iCloud

Maybe you are looking for