Please tell me how to put Image on MDI window

Brothers i am new in swings please help me in this matter that i want to put image an image on JdesktopPane in swings please give me some code or guide me in this matter. thanks in advance.

public class MDIDesktopPane extends JDesktopPane {
private ImageIcon DesktopImage;
public MDIDesktopPane() {
DesktopImage=new ImageIcon(new java.net.URL("http://80.96.36.11:8080/hq/RBMS.jpg"));
public void paint(java.awt.Graphics g)
Rectangle r = g.getClipBounds();
Color c = getBackground();
if(c == null)
c = Color.black;
g.setColor(c);
g.fillRect(r.x, r.y, r.width, r.height);
g.drawImage(DesktopImage.getImage(),this.getWidth()/2-DesktopImage.getIconWidth()/2,this.getHeight()/2-DesktopImage.getIconHeight()/2,c,null);
super.paint(g);

Similar Messages

  • Dear apple, can you please tell me how to put my 'x' key back onto the computer properly without giving me an answer which will make me want to buy a pc like 'we WILL only replace the entire keyboard'?

    dear apple, can you please tell me how to put my 'x' key back onto the computer properly without giving me an answer which will make me want to buy a pc like 'we WILL only replace the entire keyboard'?

    My profile does say level 1 (0 points) quite obviously pointing out i am a noob at this, although i did try to correct myself in the previous responce to **macbook.
    I am confused why you think i havn't answerd michaels question though. 'I assure you the keyboard or the joining parts aren't broken and if it isn't broken i dont feel the need to replace it. '- that was me in the first responce explaining why im not buying a new one, answering the very question he asked.

  • Please tell me how can I put Bookmarks for all pages opened in Firefox.There was an option ("bookmark all pages") which vanished.

    Please tell me how can I put Bookmarks for all pages opened in Firefox.There was an option ("bookmark all pages") which vanished.

    It moved to tab contextual menu :
    Right-click on any tab -> Mark all tabs (or something close, my FF is not in english).

  • I'm using iphone 5 but its camera is not properly working. all the images i'm clicking are of dimension 600X800 and the size of the image is just 60-70 kb. now please tell me how to increase the dimension of images and its size.

    i'm using iphone 5 but its camera is not properly working. all the images i'm clicking are of dimension 600X800 and the size of the image is just 60-70 kb. now please tell me how to increase the dimension of images and its size.

    ''rojere [[#question-1055991|said]]''
    <blockquote>
    i try to keep my thumb palms off the mouse pad when i am typing but every now and then my screen resizes larger or smaller until i take my left palm off the keyboard base its only when my left palm is resting on the base next to the touch pad. i type pretty fast so it gets annoying and yes it also jumps screens or reverts back to previous message and i have to choose ctrl z to undo and get back to my message i was typing... it also switches tabs on me as well... not sure why my palm being on the left of the keypad on the base should effect anything but it does after a while. and i have to stop what i am doing...and go to the firefox menu and change the screen size back down to 100% sometimes it goes up to 200-300 other times it goes down to 70-80% i find it annoying i i wish there was a way to turn off the screen resize in the setup panel. if its just left to be 100% i am happy with that... i don't need it to be bigger or smaller... there should be a way to LOCK it down... i understand that there are people out there with eye problems and needs to have the screen size increase using the + or - but there should be a lock so it just stays no matter what is happening on my keypad or touch pad or base of the pad... that screen size will not increase or decrease. unless i turn off the lock... perhaps this is something they can implement in the next version or do a quick update of the browser
    </blockquote>
    sorry that is all greek to me thanks for attempting to explain what you were trying to explain sorry i just not tech person to be able to understand or where to begin ... have good day and thanks for again trying

  • How can I disconnect the call in when the keypad is lock mode. I have  option either to put it silent or answer. Please tell me how to disconnect?

    How can I disconnect the call in when the keypad is lock mode. I have  option either to put it silent or answer. Please tell me how to disconnect?

    Push the Sleep/On/Off button.
    Stedman

  • HT204053 I recently purchased Pages for my MAC notebook and I would like to put it on my new IPad.  Can someone please tell me how to do this?

    Can someone please tell me how to get the "Pages" Ap that I recently downloaded to my MacBook Pro downloaded on my new IPad?  I have done everything I have read about but it does not seem to work.  Do I have to buy a seperate ap for my iPad?
    Thanks!

    You would have to buy Pages for your ipad from the App store.
    The program you bought is for your Mac.  it does not work on your ipad.  They are completely different platforms.

  • Hi Everyone, i lost my KN presentation that i spent a day with my boss to finish it. I lost it by mistakenly shutting down my Macbook pro. Can anyone please tell me how to recover the files back as i'm really2 in trouble and my job depends on it...

    Hi Everyone,
    I lost my KN presentation that i spent a day with my boss to finish it. I lost it by mistakenly shutting down my Macbook pro. Can anyone please tell me how to recover the files back as i'm really2 in trouble and my job depends on it...
    hmmm...how i hate myself for being such a careless person...
    PLEASE HELP ME...
    Thank you in advance.
    Keynotes '09
    Version 5.1.1 (1034)

    How exactly did you shut down your laptop? Not a hard restart (holding down the power button), I hope... if that's the case, then it is extremely unlikely the file is still intact on your computer. If it is, it would be an image on your RAM, and it is time-and-resource-intensive to recover it if it is even there. RAM memory is disposable and always being written over. Sorry dude...
    If it wasn't a hard restart, Keynote should have made a backup, unless you 'Force Close'd it.
    It really all depends on how your mac was shut down.

  • I have read the manual, but as I can see there is nowhere where it tells me how to put my Pages document in iCloud storage, could someone tell me?iDocbackup

    I have read the manual, but as I can see there is nowhere where it tells me how to put my Pages document in iCloud storage, could someone tell me?

    Here is some information on how to get a document from your iDevice to iCloud (which means you need to have the iOS version of Pages installed on your iPad or iPhone:
    http://www.apple.com/support/icloud/documents/
    And here is a slew of other help articles:
    http://support.apple.com/kb/index?page=search&src=support_site.psp.more&locale=e n_US&q=Documents%20in%20the%20Cloud
    And, icloud is not really "storage" - it is meant to "push" a document you create on one iDevice to another.
    FWIW, I assume you are on Lion? Please change your profile - it still shows 10.5.8...

  • Can anyone please tell me how to set a long tip dynamically?

    Hi Team,
    Could you please tell me how to set a longtip dynamically??
    Thanks,
    Swetha S

    Hi Shweta,
    As mentioned, the parameters for the setLongTip(OAPageContext pageContext, String tipMessageApplShortName, String tipMessageName)
    Instead, you are passing setLongTip(pageContext,String string). Put in the Message Application Short Name and respective Message name in above method parameters.
    Regards,
    Zahid

  • Can somebody please tell me how to stop IDOC before transformation.

    My Question is that if we have 2 CSV file and in each file field 6 is the status field if the status is 1 then we have to transform the idoc i.e Generate the Idoc but if the status is 0 then we have to stop the transformation of idoc i.e don't send the idoc.
    Can somebody please answer my question as quickly as possible because i am stuck in this scenario.

    > Could you please tell me how it's not pickup the file in ID
    >
    > let suppose i put the condition output =1 for correct file and output = 0 for wrong file but how do the system knows the condition that only generate the idoc if field =6 other don't do anything.
    >
    > As i am still bit confuse.
    Well, when you put conditions in RD under xPath by taking F4 help and choose field6 and then assign a value = 1 in xPath thats it.
    now whenever your sender adapter will pick the file and try to send to receiver then it will check the conditon in receiver determination under xPath and if condition is true then only it will process the file otherwise it will not process it.
    I guess I have answerd your question.

  • Please tell me how to create a slider in the program Adobe Edge Reflow?

    Please tell me how to create a slider in the program Adobe Edge Reflow?

    There is no way to add animations in Reflow. If you want to add animation, then you can either use Muse which has many slider plugins to choose form or use the exported Reflow code in Brackets and add JavaScript for animating images there using various jquery plugins http://www.jssor.com/

  • Can someone please tell me how to save a snapsnot taken with Adobe Reader X?

    Could someone please tell me how to save a snapshot taken with Adobe Reader X ?

    After taking the snapshot, you need to open a new document in an application that allows you to paste images.

  • Can some-one please tell me how to transfer photos from my ipad to my macbook air ? thanks

    Can some-one please tell me how to transfer photos from my ipad to my macbook air ? thanks

    To copy photos to your Mac that were taken with the iPad, copied to it via the camera connection kit, or saved from emails/websites then see this page - on a Mac you can use Image Capture, iPhoto and Aperture.
    To copy photos that were originally synced from a computer you will need a third-party app such as Simple Transfer which can copy them off via your wifi network. But as photos are 'optimised' when they are synced to the iPad, any that you then copy back to a computer may not be exactly the same as they originally were on your computer.

  • I forget my passcodee, getting ipod disabled mesage, please tell me how to  the passcode.

    i forget my passcodee, getting ipod disabled mesage, please tell me how to remove the passcode.

    If You Are Locked Out Or Have Forgotten Your Passcode or Just Need to Restore Your Device
      1. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
      2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
      3. iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup. If you do not have a
              backup to restore, then restore as New.
    If you are restoring to fix a forgotten Restrictions Code or as a New device, then skip Step 9 and restore as New.

  • I am new to this, so can someone please tell me how to reply to someones comment

    As I said could someone please tell me how to reply to somes solution to my question.

    Click the image below to see it at a legible size.

Maybe you are looking for

  • IMessage not working (only with 2 of my contacts)

    Hey guys. My iMessage is working fine, except for this group text that I am in. The two other people I have been texting have iPhones and have iMessage turned on. When they text each other outside of group, iMessage works fine. However, if I try to t

  • Adding/Deleting keywords for multiple images

    Well, I'm finally paying the price for bad keyword management and I'm trying to clean up my nightmare of a system now but running into trouble. I'm using Lightroom 3.2. My workflow follows one of two types: 1) I'm shooting something specific (soccer

  • Employee id's of resources assigned to the project

    Hi All, I need to send employee id's of the people assigned to a project from sap ps to third party ps system. I am able to find the projectid, netwrok id and activity id and work center assigned to it but how do i find which resource(employee id) of

  • 6120 Classic Bluetooth Dongle Not Working

    Any ideas guys my bluetooth dongle which works fine with my 6230i will not connect on my 6120 classin its fine with usb cable but not my dongle Bob

  • [SOLVED] how to check current colorscheme in vimrc?

    I am trying to write a function in vimrc that behaves differently based on colorscheme but I can't work out how to test the value of :colorscheme in vimrc. I'm trying to do this: if (&colorscheme == 'myscheme') ...something... else ...something else.