How does one scroll a JPanel?

I have a drawing area in my GUI which is a JPanel on which I draw graphics. I have added scrollbars but I cannot get the JPanel to scroll. I tried setting the size (setSize) of this JPanel much larger than it appears within its JFrame but no go.
Any suggestions?

You have to put your JPanel inside of a JScollPane. For example...
JPanel jp = new JPanel();
// add your stuff to the JPanel
JScrollPane sp = new JScrollPane(jp);
Alternatively you can call setViewportView on the JScrollPane...
sp.setViewportView(jp);
Hope this helps.

Similar Messages

  • This pop up box which tells me everything that I scroll over. How does one turn these off?

    So my daughter got on my mac and turned on this ID box which tells me what everything is that I scroll over. How does one turn these off?

    Turn off VoiceOver in the Universal Access pane of System Preferences.
    (62639)

  • Using family sharing, how does one view and download songs from a family member's collection in itunes?

    Using family sharing, how does one view and download songs from a family member's collection in itunes?

    When you click on your device you are presented with the pages
    Summary
    Info
    Apps
    Tones
    Music
    Movies
    TV shows
    Books
    Photos
    To remove Audiobooks depending on the type of Audiobook ie a series of mp3 files you will find under music and probably have to deselect the album name to remove it. I don't have any of these as I download from Audible or I use Audiobook Builder to stictch together mp3 files into m4b files. To find these Click on Books you will immediately see a section for books (in reality ebooks). Scroll down past that and you will see Audiobooks where you can select and deselect. Deselect the required Audiobooks and Click Sync

  • How Does One Modify Photoshop Templates in Dreamweaver

    I posted this over on the Photoshop forum, but no one has
    replied. It is a hybrid sort of question.
    I've been trying to modify the Horizontal Neutral template of
    the Web Photo Gallery in Photoshop CS using Dreamweaver MX (v.6.1)
    on my G5 running Tiger and am almost there. Aside from the overall
    design (fonts and colors) I really like the interface of this
    particular gallery with a horizontal slider to quickly scroll
    through images, that when selected, appear in large form in the
    center of the page. But I need to customize it to get it to match
    the feel of my site.
    My problem: I'm trying to point to a gif file that is part of
    my website image library as my background. I want the Horizontal
    Neutral Gallery to float in that image background. But, I can't
    seem to get the background image to appear where it is supposed to.
    I've gone into the various components of the template
    (FrameSet, SubPage, etc.) and by duplicating the files and
    modifying the code, I am able to get the background image to appear
    within the tables that make up the navigation and image gallery
    components. But, I've not been able to get the image to appear as
    the background itself.
    I'd even be happy to simply have the entire Horizontal
    Neutral Gallery float in the middle of one of my own pages with the
    image file as a background if it is possible, but can't seem to
    even get it to do that. How does one access the code that controls
    the background image in this template or the script that generates
    these galleries?
    Thanks in advance!

    The reason the that the edit button ( - ) top righthand corner had 'disappeared', was that iCloud was enabled but that the Addressbook subsetting under iCloud was set to off in the phone settings.
    Changing it to 'on' made the edit button reappear.
    Thanks to the guys in Cambridge Apple Store!!
    The reason the that the edit button ( - ) top righthand corner had 'disappeared', was that iCloud was enabled but that the Addressbook subsetting under iCloud was set to off in the phone settings.Changing it to 'on' made the edit button reappear.
    Thanks to the guys in Cambridge Apple Store!!

  • How does one peek at touches without ruining a UIScrollView?

    If you subclass the:
    touchesEnded: withEvent:
    method in a UIScrollView delegate, you will ruin the scrolling. How does one pass this even onto the scroll controller? I now that in a UIWebView you forward the event to the first object, but is there a known trick for handling UIScrollViews?

    To further explain, if I want to note that touches began, and then pass the event onto the scroll handler, how does one do that? Do i pass the event to the "super"? where do I send it?

  • In Pages 5 when I try to attach a pages document to an email it gives me 2 folders and 4 files ???  How does one email a pages document.

    How does one email a pages document? In pages 5 when I try to attach a pages document to a gmail email it gives me 2 folders and 4 other files to choose from. 

    Sounds like you are using Gmail.
    Pages 5 uses a zipped package of files as its format. 3rd party servers don't understand the format and show it as the component parts.
    Use Mail toenail the file or zip the .pages document before sending.
    Peter

  • How does one change the font size for folders and/or file lists in the Bookmarks Library?

    How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
    Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
    As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
    With regard to font size,
    1. there is no “Edit Bookmarks” or like option to edit the list in this version
    2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
    3. expanding the browser window has no effect on font size
    4. “Preferences” settings for font size has no effect in that window either, including advanced settings
    5. “Help” offers none that I can find.
    Can any of you Help?!?

    Maybe this extension helps:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • How does one use an external microphone with the internal camera?

    I want to use the internal camera because I don't have anything better but I want to use an external mic to record video and sound simultaneously, for a video blog. How does one accomplish this? I'm getting no help from the manual.

    Try this. Connect your external mic, either through the audio line in port or, into a USB port if it is a USB mic and then go to System Preferences under the Apple and select the Sound icon under Hardware. Click on your mic shown in the list of input devices.
    Hope that works for you.
    Forest

  • In the new Keynote how does one find the Wrap Inspector to wrap text around a photo??? Thanks

    In the new keynote, the help section refers to the Wrap Inspector.  How does one find that or how does one wrap text around a photo??   Thanks

    You can also use the shape tool to draw a shape roughly following the outline of the graphic you want to wrap text around, change the fill and stroke to "none", then paste your text within the shape. It's a few more steps, but it opens you up to many creative alternative layouts.

  • I have a MacAir, mid 2011 model, and want to view video on my TV.  I see that I need a mini display port to Hdmi but there are many of these.  What exatly do I need and how does one view a movie downloaded to the MacAir on a TV screen?

    I have a MacAir, mid 2011 model, and want to view video on my TV.  I see that I need a mini display port to Hdmi but there are many of these.  What exatly do I need and how does one go about viewing a movie downloaded to the MacAir on a TV screen?

    Welcome to Apple Support Communities
    That's exactly what you need. A Mini DisplayPort to HDMI adapter and a HDMI cable. See > http://support.apple.com/kb/HT4241?viewlocale=en_US
    This is the only way to view a video on the TV. After connecting your MacBook Air to the TV, image on your TV should show immediately. Then, press Command and F1 keys to mirror your MacBook Air display, and open the video

  • HT1918 How does one organise the apple ID so that one uses the same email address to have an account on both the UL and Belgian itunes stores?

    I have in the past created an Apple ID for use with the UK itunes store, because I want to read in English.  If I sign in it seems that this ID will only allow me to purchase from the UK store.  But I live in Belgium, so I can't download from the UK store.  So I tried to create an apple ID for the Belgian itunes store.  But I want to use the same email address as I used for the first apple ID I made (because I'm fed up of having to remember which email address I used for which account).  When I tried this, I just get a message saying that the email address is already in use for another account (which I know, because it's me who made that account).  Does anyone have a workaround for this?
    cheers
    Andrew

    I have tried again using the same password. and it still doesn't work.
    I'm presuming you went ahead and set up a new Apple ID, yes? Using the same password in more than one Apple ID has worked for me in the past, but I haven't tried it in a while so the tightened security may have changed that. You could use the same password but add "-UK" and "-BE", or something like that, to make it easier to remember.
    I understand what you mean about losing the ability to deal with UK purchased stuff, but this is becoming so inconvenient that I do want to delete that UK apple ID account.  I have looked everywhere I can think of on the apple website (apple id, itunes, support etc) and I can't find a link/eplanation/contact point that deals with deleting apple ID and itune store accounts.  Surely this must be possible?
    It's possible, but Apple is very reluctant to do it, and it's not something a user can do on their own. It would be better to just stop using the UK account rather than trying to get it deleted. Just remove your payment information and there should be little reason to have the account deleted. If you really want to try, though, you'll need to send a message to iTunes support specifying that you want the account cancelled.
    On a completely different matter, I have bought my son an ipod touch.  But since he is younger than 13 years old, how does one go about using the itunes store to get music onto his ipod touch?
    You would need to buy tracks for him; he's too young to have his own iTunes Store account. To control what gets synched to his iPod, this should help:
    http://support.apple.com/kb/HT1495
    Regards.

  • Firefox update installs, but does not apprearon screen, or task manger yet is running what is going on and how does one fix it?

    I installed the update Mozilla Firefox 28. It was suppose to launch upon completion. it did not appear on the monitor screen, nor the task manager, but was running; for when I attempted to install the older version again it, it said that Firefox was running and needed to be turned off.
    I restarted the computer and tried opening Firefox, with the same results.
    After restarting again, I attempted to reinstall the update, with the same results taking place.
    I attempted to uninstall Firefox and install the new version. The same results took place.
    In the past, I could install Firefox 27 update, only now I can't for the same thing takes place. Past a certain version (19), this event takes place, but 19 and older can install it with no problems.
    I checked Firefox troubleshooting information. All was normal. I checked my firewall. Again, all was normal. Tried Firefox reset. Did not help. Tried with my firewall disabled. Did not solve the problem.
    Ran a virus check (deep) no viruses. Checked my computer system. No errors.
    I can install updates for my other programs, even install new programs; just not Firefox.
    What is going on and how does one fix it.

    Hi Amseeking,
    Thank you for your question. From your description, you tried to install the 28 update from a version 19 installation. Did you install a fresh install of 28 successfully? Where the name of the file is"Firefox Setup Stub 28.exe"? This is what is sound like happened. When going to about Firefox and searching for updates it installs over the current installation. However if Firefox was already running, there are more than one installation.
    Updating from version 19 to 28 would not be a problem. However the user data from your previous version would have to be imported to the new installation if you have more than one install on that computer.
    An easy way to tell is to search for Firefox in the Start menu to see if more than one icon shows up in the search results.
    I hope this helps.

  • How does one continue to use Mail on the early MacBook Pro, Model 1,1, that is not upgradable to Lion?  I have been running iCloud on my iPhone (OS5) and iMac (Lion) along with the MacBook Pro (OS Version 10.6.8)

    How does one continue to use Mail on the early MacBook Pro, Model 1,1, that is not upgradable to Lion?  I have been running iCloud on my iPhone (OS5) and iMac (Lion) along with the MacBook Pro (OS Version 10.6.8) since November until now.  Mail will no longer download on the MacBook Pro and keeps asking for my password.

    Mail should still be usable with your machine - but you'll need to update the settings to conform to the requirements of your system. Check with your ISP (like ATT, etc.) for the settings that will work with your Mail. Once you've updated this, you should be able to email like before.
    For example, my ISP required that I go to Mail Preferences/Accounts and make sure the details conform to your email settings.
    I have no idea of what your ISP is or what the settings might be, but this is likely the source of the problem.

  • How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac.  Now I can't remove her e-mail address from Facebook.  It was suggested to me that I try clearing temporary files from Safari but I can't find

    How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac running Mac OSX 10.7.5 and Safari 6.1.6.  Now I can't remove her e-mail address from my computer.  When I open Facebook her address shows in the user button.  I do not have a Facebook account.  It was suggested to me that I try clearing temporary files from Safari but I can't find anything that tells me how to do this.  Are temporary files the same as the cache?  It also was suggested that I try clearing Safari cache.  How do I do that?

    Check Safari/Preferences/Passwords to see if the Facebook account is there. If so, select it and remove it. If you are still having problems, Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test. If that doesn't work, Safari/Reset Safari.

  • How does one sync music from iTunes on a Mac with an HTC Windows 8 phone

    How does one sync music files from iTunes running on a MacBook Pro with an HTC Windows 8 phone?

    One doesn't.
    Itunes syncs with Apple devices.
    You can put the music on your phone. You would have to read the directions for your iphone to learn how to put your music on it.

Maybe you are looking for

  • Please help me with my survey...

    I am doing this survy for my professor- I am at Bethedsa community college. (Currently, our JVM runs about 400% faster than commercial JVM, so this is definitely in research stage. ) I will appreciate your response- I need to get 20-30 responses- bef

  • How do i turn permanently off the facebook etc share bar? do not want to have to hide on every page

    I went to about:config and set snav.enabled to false and set social.remote-install.enabled to false but the facebook twitter email print other bar keeps popping up on the side of every window, this is very annoying, please help me disable this!!! tha

  • USB 2.0 problem (K7N2G-ILSR and HP PSC 2210)

    I'm using a K7N2G-ILSR mainboard in combination with a HP PSC 2210 all-in-one printer. The printer sometimes stops printing and produces an error. The print can not be deleted and I have to reset the computer. I'm using the latest HP drivers for the

  • Apache CGI not Working

    For some reason scripts, including the ones packaged with FMIS 3.5.2, are not executing in the script alias defined in httpd.conf. When I access a cgi script from a browser it simply prints the code to the screen, but I can execute the scripts from t

  • My iPhone 6 doesn't get imessage notifications in sleep mode

    I'm having this issue since I bought my iPhone 6 last November 2014. I don't get notifications when someone sends me an imessage, unless I wake the phone up, then the imessage will suddenly appear. Like 'iMessage from someone, 40mins ago'. I'm on wif