Scrollable picture with other pictures attached to it?

Any ideas how and with what classes this should be done?
I want to make a GUI with largish picture in the background.
The size of the picture exceeds the size of the window
so it needs to be scrollable.
Then I want to have other smaller images on top of that.
These images should also move when the background is scrolled
and my plan is to be able to drag them around with mouse
(i.e. change their position in relation to the background picture).
I managed to create the scrollable picture, but weren't
able to display anything on top of it.
I'm using JDK 1.3.1 (and Borland's Java Builder 7)

All right, I managed to do it all. This Java is pretty quick to use
(when you know what class to inherit ;)
Here's the sollution for those draggable pictures
public class DraggablePic extends JLabel implements MouseMotionListener, MouseListener {
  int clickPositionX;
  int clickPositionY;
  // constructors
  public DraggablePic() {
    super();
    addMouseMotionListener(this);
    addMouseListener(this);
  public DraggablePic(Icon image) {
    super(image);
    addMouseMotionListener(this);
    addMouseListener(this);
  // mouse motions
  public void mouseDragged(MouseEvent e) {
    super.setLocation(e.getX()-clickPositionX+this.getX(),
                      e.getY()-clickPositionY+this.getY());
  public void mouseMoved(MouseEvent e) {
  // mouse events
  public void mouseClicked(MouseEvent e) {
  public void mouseEntered(MouseEvent e) {
  public void mouseExited(MouseEvent e) {
  public void mousePressed(MouseEvent e) {
    clickPositionX = e.getX();
    clickPositionY = e.getY();
  public void mouseReleased(MouseEvent e) {

Similar Messages

  • How do i share pictures with other users on my Mac without using iCloud or photo stream

    How do I share pictures woth other users on my Mac without using iCloud or photo streaming?

    Simplest way is probably to put copies into the Users/Shared folder.

  • Syncing Photoshop Elements 8 pictures with the picture files on my PC

    How do I sync the pics on Elements 8 with the picture files on my PC?

    Since we can't see your computer screen from here, you'll have to tell us in detail (step-by-step) what you're trying to do and what is happening.
    Ken

  • My iPhone 5 synced with another computer and everything on my phone is removed, replacing it with other pictures and messages. how do i get my pictures and contacts back?

    My New iphone 5 was synced on my sisters computer and now when i want to use it all of my things are gone, including my pictures and contacts. they have all been replaced with her contacts and pictures. how do i get my things back? i have tried syncing with my computer again but since it was new and i hadnt synced it at all, there is no backup on my computer.
    Please Help,
    Thank you

    Sonali16 wrote:
    since it was new and i hadnt synced it at all, there is no backup on my computer.
    Then anything you had on the phone is gone.
    Settings>General>Resets>Erase All Content and Settings.
    Set it up as a new device again.

  • Replace a clip or frame with other picture or clip and keep the soundtrack

    How do you replace a clip or part of a clip by another clip or still and keep the sound from the original clip in iMovie '08?

    How do you replace a clip or part of a clip by another clip or still and keep the sound from the original clip in iMovie '08?
    Replace the first clip with the second and then extract the audio from the first clip (Cpmmand-Shift drag) and pin it to the second clip.

  • Sharing pictures with others

    I have been a user of Aperture for some time now and finally decided to make the switch to Lightroom and all in all i am very impressed with the whole program!
    I am wanting to set up a way of 'dynamically' or at least as dynamically as possible sharing certain folders containing family images with our wider family, in the UK and overseas, rather than reinvent the wheel i wanted to see what ways people have found to do it.....any suggestions and tips gratfully received!
    Thanks
    G

    Yeah, with the publish services you have to remember to click the 'Publish' button periodically, but other than that it's automatic.
    Personally, I use the auto-publish feature of ChangeManager (plugin), so I never have to click the aforementioned button (photos are auto-published when they are locked), but that's not compatible with flickr.
    I'm hoping when Adobe implements finalization/lockage that they also support auto-publishing: it's the cat's meow...
    Anyway, if you only have one or two publish services it's not too bad.
    If you have lots, consider PublishServiceAssistant (plugin), which supports configuration of a set of "master publish" services, and a feature to auto-select all of them (which you can't do using the UI) - thus two "clicks" to publish all.
    To be clear: publish collections *are* your "watch" folders.
    Rob

  • Merge original picture with modified picture in Aperture

    Hi everybody!
    I'm a new user of Aperture and like it so far. Actually I think that the application is brilliant and it has helped me a lot to improve and enhance my pictures. I have a couple of questions though that I hope that you could answer.
    Since I've imported a couple of albums from iPhoto I have recognize that Aperture stores two pictures, the original version and a modified version. That's fantastic, but when I'm done with my enhancements I don't need the original photo and is there any possible way to merge the photos or to remove all original files from the albums? I  also wonder how much extra space all my pictures will take if I import my whole iPhoto-library, will it literally doubles?
    http://cl.ly/3y18122P3B1g2J1t1A3P
    Thank you very much!

    iStriem wrote:
    Thank you very much Kirby for your detailed reply! I really appreciate it, and thank you as well for your advice and your sympathetic for my beginner expriences. (1)
    So to clarifie, you meen that all the edited photos that I create are stored as strings rather than actual images when I work in Aperture, and that they are usable/sharable pictures by the time that i Export them? So to get a "real" enhanced image in Aperture I need no export them and then import them again? (2)
    I have also read your post, very good explanation. You have written that:
    "Any image can be in any album, and can be in as many albums as you want."
    I presume that it means that the library file, or my image database store this information so that I don't duplicate my pictures inside Aperture and store a lot of unnecessary memory on my hard drive? Cause you also say that Aperture never removes the original, which in that case are absolutely brilliant. (3)
    As a last question, can I change the view inside Aperture so that it only shows the originals or the edited photos, or both? Obviously I show both right now but If I want to alternate it? (4)
    Thank you for everything!
    1.  You're welcome.  Pass it forward  .
    2. Yes and no.  It's simple, but odd.  Aperture is a program for storing, developing, publishing digital camera negatives.  (In this sense, the "negative" is the data file created by your camera from the light it recorded when you exposed the sensor by opening and closing the shutter.)  Your negative is never altered (this, alone, is fabulous: it means you can redevelop it at any time should the need arise).  Your "edits" -- in Aperture, these are called, for good reason, "adjustments" -- are saved literally in a text file (afaik).  The only reason to export an Image is when you need a shareable image-format file.  "Export" means "make me an image-format file to these specifications".  I'm not sure what you mean by "a real enhanced image".  If you export an adjusted Image, and then import the file you just created, you are making a new Master in Aperture -- with all of the adjustments "baked in".  If you then discard the digital negative (the Master of the Image your exported), you lose the original and cannot re-convert or re-develop an Image from the negative.  There might be unusual circumstances where this would be beneficial, but I can't think of one.
    3. Precisely.  In practical terms, there is no performance or storage price to be paid for creating Albums or Versions.  Create as many as you care to.  You get to create a Library structure that meets your needs, not your computer's needs or limitations.
    4. Behind (so to speak) every Image in Aperture is its Master.  You can toggle the Viewer from Version to Master by pressing "m".  (There is also an icon on the Toolstrip that does this.)  It sounds as though you are creating new Versions when you make Adjustments.  This is normal for beginners -- if you're like I was, you are vaguely scared that if you can't see it, the Master will get lost.  It won't.  I gradually stopped trying to keep track of my Masters -- they are always there -- and now I just make all my adjustments to the first Version created, and then create additional Versions, unless I plan on publishing the un-adjusted Master.
    Aperture rewards experimentation.  Create a practice Library -- a hundred files imported, three or four Projects -- and try stuff.  Break it.  Delete it.  Create another one.  Ask more.

  • Preview of Ken Burns effect doesn't work with some pictures

    I just recently installed a new graphics card (ATI Radeon 7500) on my Sawtooth, 1.2 GHz, so I could utilize the Ken Burns effect in imovie HD. It works but only partly. It works great but with some pictures the preview pane doesn't show the photo. What I see is a what looks like bad reception on an old TV (fuzzies and the picture is distorted so bad you can't even make it out). With other pictures the preview shows up fine. I'm sure I've loaded the drivers. What else can I do?

    Hi Tonyy13.
    I am presenting the same problem. I can set the Ken Burns' effect while I am with the pictures before placing them in the Clip or Timeframe viewer. After placing them there, if I try to edit the picture (either by right clicking and choosing -edit picture or by control clicking and doing the same, I ended up with a black background. If you change the setting in this black ackground and update this changes they will be effective. So, you can change the slide duration, and everything in the sliders but without an image.
    I was running System 10.3.9 and I thought this was the reason. Today, I went and bought Tiger but it didn't sove the problem. I do believe it is a bug in the program. According to Apple's Help and David Pogue's "The Missing Manual" this shouldn't happen.
    If you solve this problem reply to this posting. If I did I will reply to your posting. Thank You.

  • Upgrade Program with other function

    hi disowned married woman i would like to know your name if
    you want to deepen our conversation with interesting solution you
    are for me a interesting subject to share my problem if is possible
    naturally.
    You are much kind one to respond answer to me a question
    about document class PuzzleMain but i can't focus your person so i
    can use your alias name >> " VarioPegged" <<
    I'm very tired because i tried a lot of times to resolve my
    problem but i recognize to have a low preparation to resolve these
    disputes.
    If i don't disturbe i would like to know how can create a
    method that return a object Bitmap because i would like to upgrade
    this program with other interesting modification like load
    dimension of image and analize pixel image.
    To realizate this modification i need to have object Bitmap
    and than i can load pixel image with specific methods and
    dimension.
    I propose to you this question because if i can capture two
    variable like dimension and resolution of image i can modify number
    of colons and rows of picture otherwise it would be optimal to
    resize images with fixed parameter so i can put in folder of images
    , other picture with other optimal subjects .
    Other question that i would like to propose to you is this,is
    possible to know where i can to operate a MovieClip that stay into
    another MovieClip.
    thanks a lot generous Californian married Woman
    kiss and Thanks a lot Luciano from Milano
    Text
    Text

    LOL! I don't think I've laughed this hard in a while. I'm
    sure the translation doesn't help the situation either :D
    Luciano ... here in the States:
    Guy = Man/Dude/Male
    I happen to be a man/dude/male.
    Now, what's a little disturbing (I think) is that you're
    sending kisses to what you believe is a married woman in a public
    Adobe forum!
    OK, I'll help you anyway. You can easily use the
    loader.content.width and
    loader.content.height information to get the dimensions of
    the image and then work from there.
    I don't follow your question about a nested(?) MovieClip
    though.
    TS

  • How can I send a text with a picture attachment on my new iPhone5c?

    How can I send a text with a picture attachment on my new iPhone5c? It won't send or recieve!!.

    Does your carrier support it?
    Follow the steps in this guide.
    http://www.imore.com/how-send-photo-using-imessage

  • When I select a photo to email from "my pictures" or Picasa, Thunderbird is no longer opening a blank email with the photo attached.

    I used to be able to select a photo in my pictures or Picasa, select size, select email, and a blank email would open in Thunderbird with the photo attached. I am wondering if there is a setting somewhere in Thunderbird that should be enabled.
    Hope someone can help.
    thanks

    check Thunderbird is your default mail client. see http://windows.microsoft.com/en-us/windows-vista/change-the-default-e-mail-program

  • How do I email and letter with a picture if I want it to send as one piece, with no attachment? Please help

    How do I send an email with a picture from pages and have it show up with the picture still intact where I have it inserted in the letter? I do not want it to go as an attachment.

    Hi Carol,
    I've read the rule of the commas for modules, but not for tags ... so thought maybe this is why is not working ... but again, I'm just trying to figure it out.
    I'm still confusing about when and how use modules and tags properly.
    I've found this short guide for TAGS that says literaly:
    "Note: Tags are not transferrable and cannot be shared across all modules. Use the specific tags listed with each module as shown below: "
    http://kb.worldsecuresystems.com/134/bc_1342.html?bc-partner
    You may access through your  BC aacount ... search by "Tags - Quick Reference" ... this is a little different that the one from ADOBE site.
    You'll see that the tags can be customizable by modules and not the way you are doing.
    HOWEVER, take a look at another short guide that might give you another options ... I'm gonna try this too.
    This is at http://forums.adobe.com/docs/DOC-2721  .... scroll down until STEP 4 and see some customizations for Product Tags
    I have a similar case like yours .... I want to show discounts and previous prices only on Sale items ... like I do at http://tesonline02.businesscatalyst.com/outerwear/avatar      ... and hide all these for regular items.
    Haven't found a clear tutorial, neither the responses are completly satisfactory... someone told me use the tag_sale and the rest through CSS ... but ... how??? ...  this is so frustrating
    .. have you found a good tutorial?
    I'm trying to find a response for that ...  keep you posted so you may apply it in your case.
    Regards!!
    Eva

  • How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    Photos that were synced from a computer won't show for copying to a computer. If you want to copy them back then you will need a third-party app on your phone such as Simple Transfer which can copy them off via your wifi network. But photos are 'optimised' when they are synced to a device, any that you then copy back to a computer may not be exactly the same as they originally were on your computer (e.g. their dimensions might be different and their colours may look a bit different).

  • When i take a picture with my ipad 2 lets say im looking to the right and i take the picture and when i go to the gallery my face is looking the other way(left)

    when i take a picture with my ipad 2 lets say im looking to the right and i take the picture and when i go to the gallery my face is looking the other way(left)

    The picture in the gallery is correct. The picture you are looking at before you capture it is a mirror image such as you are used to looking at, otherwise you would not be able to handle it.  Look at More Like This >>>>>>>

  • HT201317 Has anybody an idea, why my jpeg-picture uploaded to Photo Stream does not appear on my S4 like all the other pictures before? Ok, it's 4 years old, but JPEG and taken with a digital camera...! I'm despaired after trying since days...! Thank you!

    Has anybody any idea, why my jpeg-picture upoaded to Photo Stream does not appear on my iPhone S4 like all the other pictures before?
    Ok, it's a 4 year old picture, but taken with a digital camera as jpeg...! This cannot be the problem really, but I'm despaired after trying since days...! Thank you all for any hint you've got for me!

    If you asking me, I would suggest to additonally use a second storage service which also allows you to store your pictures over the 30 days period. I personally use Dropbox with automatic upload for that (https://db.tt/cMEgDUFZ), but there are also other storage services like Flickr for example.

Maybe you are looking for

  • Change color in ALV top of page

    Hi all, Can anyone tell me how (if it is possible) to change color in ALV top-of-page? Thank you in advance, Hagit

  • Windows 8 - Itunes update has corrupted itunes file and wont work! HELP!

    Hello .. Im really hoping someone can give me some advice or help with this as I have been trying for hours to try and fix! I have been using itunes on my computer with no problem at all.. Last night I down loaded a new version of Itunes [itunes64set

  • Disable Oncellclick- Tableview

    Hi guys, I'm using Tableview with iterator, in the event GET_COLUMN_DEFINITIONS I've sat my event on a specific column as below: tv_column-columnname          = 'DELE'.       tv_column-oncellclick         = 'event_delete'.       tv_column-title      

  • Pricing: Condition type for advance "ZADV" can be enterted twice

    Hello, I have defined condition type for advance as ZADV in pricing procedure. Issue: Now teh end user is able to enter the advance conditype types "ZADV"  in the sales order, is it any way possible that it should not allow the condition type to be e

  • Finding source TC in a Master sequence

    Hello my good friends, I have a 5 hour long master sequence and the client is giving me source TC (NOT master TC) which I need to edit out. Coming from a Avid background I would simply have a TC window reflecting the video track that I want to see TC