Any one know how to set a picture background in JPanel

I am study java at collage and need to know this for a project
How to set a picture gif or bmp etc to a background in JPanel in Swing
CAN ANYONE HELP!

If you want to just add an image to a JPanel, create a JLabel and add the image to that, then add the JLabel to the JPanel. If you want it to be the background of the JPanel, check this out:
http://manning.com/sbe/files/uts2/Chapter15html/Chapter15.htm
15.2 is where you'll find your answer along with sample code. The whole book is useful, take a look through it if you're interested.

Similar Messages

  • Does any one know how to set up runbox email with iphone

    Does any one know how to set up my runbox email so that I can access it through my i phone?

    Per this link, it appears you can access a runbox email account as an IMAP or POP account.
    http://www.runbox.com/
    Are you currently accessing your runbox email account with the Mail.app or with another email client on your Mac?
    If so, you should be able to use the same account settings used when creating the account with the email client on your Mac. If you are accessing the account with an email client on your Mac and you want to keep all server stored mailboxes for the account synchronized with the server with the email client on your Mac and with the iPhone's mail client, you should access the account as an IMAP account with both email clients.
    If you are accessing the email account with the Mail.app on your Mac, you can transfer the account settings from your Mac to the iPhone's mail client via the iTunes sync process - which is selected under the Info tab for your iPhone sync preferences with iTunes.
    I'm unable to open their support link with a failed to open page error message - looks like they have a scheduled downtime due to server park relocation so I assume this is affecting access to their support link.

  • Dose any one know how to set the MMS in the Belle?

    Hi Nokia and all,
    After updated to the Belle for my N8, the MMS a access point setting is missing. As I remember in Anna version, the MMS access point setting can be find in this way, menu -> Setting -> connectivity -> Settings -> Network destinations -> MMS. In there you can set the IP of the MMS etc.
    Dose any one know how to set the MMS in the Belle, please let me know as soon as possible, thanks a lot!
    Nokia N8
    059D145
    Solved!
    Go to Solution.

    @easydoweb
    This resource has probably not been updated to take account of Belle http://www.nokia.com/gb-en/support/troubleshooting/?action=singleFAQ&caseid=FA134387_en_US but can't you get your network provider to resend "Settings" SMS?
    Happy to have helped forum with a Support Ratio = 42.5

  • Does any one know how to set up ical so that my wife and i can use and edit the same ical

    im trying to get ical to synce to both phonesplease help

    Hi Allan, thanks for that. I've already set up a log in for my wife and that is all working fine. The problem is that when she logs in and opens iTunes and trys to associate her library with her iTunes account she gets the error message "This computer is already associated with another iTunes account". Whilst this is true, the computer is associated with my iTunes account under my separate log in, which should have nothing to do with hers. If she transfers the association to her account it will lock me out of my content on my log in for 90 days - I'm trying to work out how to associate each of the log in accounts with a separate iTunes account so we can access our music independently of one another without locking each other out. Hope that makes sense!

  • Does any one know how to set up an iPhone 4 with out iTunes ?

    I want to get started on my iPhone 4 but my computer is not matching up with my iPhone. So how can I set it up with out iTunes.

    "my computer is not matching up with my iPhone"
    No idea of what that means, but iTunes is completely free.  If you have any problems, and the iPhone is not a stolen device, you can make an appointment with an Apple Genius, and discuss the situation.

  • Does any one know how to set up voicemail on a 3gs

    I have a problem setting up voicemail on my recently gifted iphone,I need to find out how to delete red spot on phone also,
    please any help would be appreciated,
    Many thanks Mary#########

    Contact your carrier.
    Have no idea what you mean by "delete red spot on phone".

  • My mac displays like a negative picture any one knows how to fix it, my mac displays like a negative picture any one knows how to fix it

    my mac book pro display  is just turned into a negative picture sort of any one know how to change it back to normal one

    Welcome to Apple Support Communities
    If you have Snow Leopard, press Control, Alt, Command and 8 keys, so your display will be back to normal.
    If you are using Lion or Mountain Lion, you can change this in System Preferences > Accessibility. You have to turn off the "Invert colors" feature, that is available in System Preferences > Accessibility > Displays, in Mountain Lion

  • In previous versions of Firefox I was able increase the display size on Flickr which remained unless I altered it again. Does any one know how to do this on Firefox 4?

    Question
    In previous versions of Firefox I was able increase the display size on Flickr which remained unless I altered it again. Does any one know how to do this on Firefox 4

    Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode.
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Permanent Private Browsing mode"
    You can use one of these extensions to adjust the default font size and page zoom on web pages:
    * Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    * NoSquint - https://addons.mozilla.org/firefox/addon/2592

  • Can any one know how do restrict that fields in mm

    hi gurus
    can any one know how do we restrict the fields in the material master.  Where do we control  do any one know the transaction code for that.
    Thanks in advance

    OMSR
    and
    OMS9
    Help for OMSR
    Assign Fields to Field Selection Groups
    To define whether a field is hidden or displayed, or whether an entry is mandatory or optional in material master maintenance, you must assign the field to a field selection group. You may assign a field to one field selection group only.
    Before including customer-defined fields in a field selection group together with standard fields, or assigning standard fields to a different field selection group, familiarize yourself with the assignment of fields to field selection groups in the standard R/3 System.
    Standard settings
    The values of the field selection groups have been preassigned as follows:
    001-110 Material master for industry
    111-120 Reserved for customers (except where the values are already in use)
    121-150 Material master for industry
    151-210 Material master for retail
    211-240 Reserved for customers
    Recommendation
    If possible, use the setting in the standard R/3 System. No further action is then required. If you want to make individual fields inaccessible, the easiest way is to group them together in a single field selection group and to set it to Display or Hide.
    Activities
    1. Check the setting in the standard R/3 System.
    For this, you need to know the data screen on which the relevant field appears in the material master, and the name of the screen field, for example, MARA-MEINS in the case of the base unit of measure.
    2. If necessary, change the assignment of fields to field selection groups as required.
    Further notes
    In the case of long texts, you define whether the entire screen is hidden or displayed, or whether entries are mandatory or optional. For this reason, each screen has been assigned to one of the following dummy fields:
    LTEXT_BEST Purchase order text
    LTEXT_GRUN Basic data text
    LTEXT_IVER Internal comment
    LTEXT_PRUE Inspection text
    LTEXT_VERT Sales text
    help for OMS9
    Maintain Field Selection for Data Screens
    In this IMG activity, you create and maintain field references. You can see where a field reference is used by choosing Where-used list.
    Activities
    Define or change the field references as required (except for field references with the prefix SAP which must not be changed). New field references must begin with Y or Z.
    Changing the Field Selection Options for a Field Selection Group
    1. Specify the field selection group.
    2. Select the field selection option (hide, display, required entry, or optional entry) for each field reference as required.
    3. Save your data.
    Creating a Field Reference
    1. Choose New entries.
    2. Specify a field reference beginning with Y or Z.
    3. Select the field selection option for each field selection group as required.
    4. Save your data.
    Changing a Field Reference
    1. Double-click the relevant field reference.
    2. Change the field selection option for each field selection group as required.
    3. Save your data.
    reward if usefull
    Message was edited by:
            Umakant Bhangale

  • When ever I try to export to Perfect Effects 8 a DNG Photo this is the Error message "Unable to complete the export. One or more files could not be found" Any one know how to fix this?

    When ever I try to export to Perfect Effects 8 a DNG Photo this is the Error message "Unable to complete the export. One or more files could not be found" Any one know how to fix this?@

    Adobe web chat come up with a solution.
    Open the PP project.
    Export your sequence or project as a Final Cut Pro XML file.
    Set up a new PP project.
    Import the Final Cut Pro XML file.
    This will get you back up an running.
    Since getting back to editing this project I have found that some things will be lost or change in using XML:
    You will lose position key framing, black video clips, dissolve fx, audio levels, audio dynamic fx, the ability to open a multi camera clip and change the camera view.
    You will keep cut points, crop fx.
    Not perfect but only took a couple of hours to save 3 days work.

  • Any one know how to connect by url ?

    Do any one know how to communicate between servlet
    & applet by http url instead of "socket"?
    Do any one have sample source codes ?
    Thanks a lot

    Perhaps not quite what you're after, but I use Datagrams to talk between an applet and a servlet. I found this much easier than trying to set up a socket connection myself. Check the java tutorial for an example
    Steve

  • Does any one know , how to delete the others in itunes. it takes lot of space

    does any one know , how to delete the others in itunes. it takes lot of space, i wanna delete that... Actually what it contains

    Those are the data of the installed apps. Don't listen if someone says that it's an iOS, because it is not. On your iPhone, go to general > usage. It will show you all the programs installed on your iPhone. If you click any of them you will see how much of "others" it has (documents and data)
    There's no way to delete it if you want to still have those apps. You can reinstal those which has the most "others" but after some time of usage, it will raise again.

  • How can I watch movies in germany with native tone, english? Any one knows how to switch the language when renting a movie?

    How can I watch movies in germany with native tone, english? Any one knows how to switch the language when renting a movie?

    I wonder the Format Tables macros on my site could be adapted?
    http://www.grainge.org/pages/authoring/word/word_macros.htm
    If not, I have used Macro Express to format tables in Rh. No reason it could not be used in Word.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • I need to delete the entire browsing history so when i type in a webpage it soes not bring up previuosly visited sites.  deleting the history does not do this.  any one know how to do this

    I need to delete the entire browsing history so when i type in a webpage it soes not bring up previuosly visited sites.  deleting the history does not do this.  any one know how to do this

    Judy-
    If Private Browsing doesn't do it, try Settings-Safari-Advanced-Website Data-Remove All Websitre Data.
    Or changing Settings-Safari-Autofill to OFF.
    You might also try Settings-Safari and Clear History and Clear Cookies and Data.
    As you can see, there are several controls for Safari.  Which one works depends on what your problem is.
    Fred

  • Can't use down key because it opens automator. Does any one know how to disable this short cut?

    Everytime I press down on down key it opens automator. It doesn't let me delete the app. I don't know what to do, it is very frustating to fill in a chart when I can't use the down key. Does any one know how to disable this short cut?

    Are you talking about the Down Arrow key? To my knowledge there is no way to use that key as a shortcut for anything. But look in the Keyboard section of System Preferences and the Keyboard shortcut tab.

Maybe you are looking for

  • Special chs in DSO expert routine

    Hello All, Data is being pulled from Transfer order DSO to GR DSO. The transformation uses a expert routine which pulls a field 'Requisitiner' from another DSO i.e. Purchase DSO. This expert routine brings invalid characters i.e. the field value whic

  • I live in Nepal. I can access for the first time at the time of using itunes. There isnt option of NONE in the payment mode.Please Help Me Out !

    I live in Nepal. I can access for the first time at the time of using itunes. There isnt option of NONE in the payment mode.Please Help Me Out !

  • WRAP in HTMLDB

    We can hide htmldb metadata by chose "Run Application Only" at Crete Application From Application Export File Wizard. But another guys can uncover this effort by export this application and create back from them. How to hide this metadata like in wra

  • None of the iPhone interfaces are downward compatible

    Over the past 4 years I have bought 9 iPods for friends and family for gifts. I got an iPhone for Christmas. It seemed like a great follow on product. But, I was surprised that it did not work with the tape deck adaptor that I have for my truck. I wa

  • Viewing photo problems

    I have had my iPhone 5s around 2 months and this week have noticed if I take a photo it appears in the box on bottom left corner on the camera screen but when I go to my photos there are not there so can't use them for anything. Anyone know what this