Need to create a floating label over a graph

hi, i need to create a floating label over data points in a graph when the mouse is over them and then the floating label should disappear when i move the mouse away.
Option 1: i have done the code with jpopupmenu and jmenuitem, but the menuitem does not display multiple lines of text. i then wrote my own jxxx extends jmenuitem where i paint what i want. the paint method is called but nothing is painted ! any clues ?
Option 2: i would like to create my own class extending label and paint in it. i need to display at an arbitrary position with the ability to hide it.
any ideas ?
thanks

BhishmaPitamah,
How about simply using a tooltip? It's possible to have a general tooltip for an entire component, and specific ones for specific areas on the component. For specific tooltips, simply override JComponent's public String getToolTipText(MouseEvent e)See ToolTipDemo.java at http://www.infres.enst.fr/~elc/java/SwingSet2/src/
See "CUSTOMIZING JTOOLTIPS" at http://developer.java.sun.com/developer/TechTips/2000/tt1010.html
If that doesn't suffice, see StanislavL's post in this thread: http://forum.java.sun.com/thread.jsp?forum=57&thread=406659&tstart=0&trange=100
--A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Need help creating return address labels

    Which application do I use to create return address labels?

    That's kind of a vague question.
    Do you mean you just want to print a sheet of address labels? or you want to print entire envelopes with recipient and sender addresses intact?
    If the former, then Address Book will happily print a sheet of address labels and has presets for many common label sizes (e.g. Avery and Dymo). If the latter then any word processing app such as Pages or Word can do that.

  • I need to create a NEW folder for bookmarks, not add to an existing one. I've been looking for over 2 hours and can only find the latter. Also, if possible, I'd like to remove a redundancy on my Bookmarks Toolbar. Thank You!

    I am working on many projects and my bookmark folders suffice. I need to create new folders, but not "Smart Folders." After over 2 hours, I keep coming back to the same description of how to add new folders to existing ones. NOT what I want to do. This used to be easy, but the set up must have changed as I've been trying to do this all day with no success.
    Also, somehow my gmail inbox appears twice in my bookmarks toolbar. Again, I am finding information that does not apply to me in help and former question files and links. How do I remove things from my bookmarks toolbar?
    Thank you and PLEASE, oh Please e-mail the answer to me as I seem to have problems with your site.

    Open the Bookmarks Library, to do that in the Bookmarks menu select "Organize Bookmarks"
    In the Bookmarks Library, in the left hand pane click on "Bookmarks Toolbar" to select it, now in the Organize menu select "New Folder".
    If you have the capability to right-click, you can also right-click on the Bookmarks Toolbar and select New Folder.
    ps Questions on this forum are normally answered by volunteers, and for privacy reasons many will not be willing to send emails. You have also not shown your email address.

  • With my iphone 6 with ios8 I need a new way to create custom contact labels via Apple or  app

    How can I create custom contact labels on my iphone 6 using ios  8?

    I assume you mean in contacts you want to add a custom label, not print a label as FoxFifth suggested!
    Todo this click edit on the contact, then click the name of the field you wish to rename (there should be a red circle with a minus beside it)
    A list comes up and at the bottom you can click "Add Custom Label" and type in the name.
    Please note this doesn't work with Exchange servers

  • How can I edit a still image so that I can float it over the video?

    I would like to edit a still image so that I can float it over the video - How would I save the image in Photoshop so that just the image and not the background can be imported into Final Cut and the footage behind it still shows up?
    Thanks

    You need to either create an Alpha channel or cut out the area of interest and paste it into a transparent Photoshop document. You can save the former as PSD, TIFF or PNG. Save the latter as TIFF with transparency enabled (shows up in TIFF Options at step 2 of the save dialog).

  • What software do I need to create this animation?

    Please watch the first 60 seconds of this video.  I want to create videos pretty much exactly like this fellow is doing. 
    http://www.youtube.com/watch?v=bYvmjdqpT7Y
    What software do I need to create those multi-layered still-image animations?  I assume it's the same software that also does the animated text.
    Anyone know what he's using to get those still images to animate under and over each other?
    -JOHN

    Thank you for the replies.  I read up a bit on the software you all recommended.  The consensus seems to be that Motion is easier and more Mac-integrated than AfterEffects.  So, if I follow your advice, it's between Motion and Photoshop.  Photoshop seems to have a steep learning curve compared to Motion (I'm guessing) and Motion is also cheap at $49.
    So all those floating images ... one image zooming in over another that stays stable ... pop up text ... all that can be done in Motion, right?
    I ask again because the Apple promo page for Motion doesn't really give me an indication of it doing this, but I also understand this is creative software and it can do a lot of things that can't be individually intemized in a promo page.
    If I can get those moving graphics, I'm sold.
    Thanks for the lead.
    -JOHN

  • Do I need to create a view for this?

    Hi Ihave got 2 tables emp and project
    In emp tabe:
    emp_no
    family name
    given name
    In porgect table:
    emp_no
    status(assigned,unassigned)
    start_date
    end_date
    emp_no Family_name given_name
    1 Smith John
    In project table same employee can have many assigement eg
    emp_no status start_date end_date
    1 assigned 01-may-08 01-july-08
    1 assigned 01-sep-08 01-july-09
    1 unassigned 01-july-09 01-oct-09
    In the form:
    there are 2 querable fields "project ends between field1(date) and field2(date)" which is used to
    retrive records which have end date between field1 and field2.
    The following fields are needed to get from database:
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Requirements:
    1. project.start_date and project.end_date must be the latest project_end_date for the same emp
    so in the above sample date
    2. No. of time assigned is a count of total of number records which have status='assign'
    So for the given sample data the record expected after query would be(field1=01-jun-08 field2=02-july-09)
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Smith John 01-sep-08 01-july-09 2
    What is the best approach to get:
    1 The lastest project(latest end_date) for the emp
    2. get No.of time assigned.
    Do I need to create a view for this? If yes, any sample sql code this this?
    Thanks for your help

    Hi W1zard,
    Thanks for your reply. Could you clarify the following points for me:
    1.) you could create a master block basing on your emp table and a detail block basing on your project table with the relation over emp_no. set the default_where clause of your detail block programmatically using
    set_block_property('project', default_where, 'status = ''assigned'' and <your_date_criteria>');
    Q1: where I pit this code? in pre-query trigger in detail block?
    2.) Of course you could create a view to join both of your tables if you don't want to use master detail blocks; Also do the join over emp_no
    create or replace force view v_emp as
    select emp.family_name, emp.given_name, project.start_date, project.end_date
    from emp, project
    where emp.emp_no = project.emp_no
    Q2 As I mentioned before, there are multipal entries for the same emp in project table and we only need the maching record from project table which has latest end_date. So I think I need something like
    max(project.end_date) somewhere in create view to make sure only one record for one employee.
    Also is there possible to include the no. of assigned field(select count(*) from project where status='assigned' and emp=emp_no) into the view as well?
    Q3 All the fields mentioned above are diaplay-only. So Can I create a control block which has all the fields from emp and project. Then populate them with my sql. The question is
    where I put this customerised sql so when user click excute query. My sql will run and display one the form?
    REally appreciated your help!
    Michael

  • How do I move all my files from one User Profile (account) into another? I needed to create a new account and want all of my files accessible in the new one.

    How do I move all my files from one User Profile (account) into another?
    I needed to create a new account and want all of my files accessible in the new one.

    ok, what you're learning right now is 101 unix, which is good. Unix is a good thing
    now: the way unix works, and macos (which uses unix underneath) the files and folders work like a hierarchy.
    the start of that tree is /
    so, if you were to do:
    cd /
    (cd means change directory)
    it will bring you at the highest branch of the file system.
    cd /Users
    will bring you to where all the users are.
    to see whats in /Users you can use your friend ls command
    ls means list files/directories
    so:
    cd /Users
    ls -la
    (the -la here means show all (even hidden) and long format (very verbose))  this flag is very optional.
    you will see
    fred
    user2
    for example.
    if you want to see the desktop of user2 you would change directory to it then list the files.
    for example:
    cd /Users/user2/Desktop
    Note that the files and directory are case sensitive, so, desktop is NOT the same as Desktop, or DESKTOP
    ls -la
    you should then be able to see everything in users2 desktop
    you could have done as well the same thing in smaller steps, for example:
    cd /
    cd Users
    cd user2
    cd Desktop
    this is the equivalent of cd /Users/user2/Desktop
    So, for your file, i don't know where it was, but know that if you log in as user2, it will directly put you in
    /Users/user2
    which most likely the file you had created from the other user was in /Users/user1
    if you copied all the files from /Users/original_user to /Users/secondUser
    most likely yes, all your mail, bookmarks etc would be copied over.
    so in your case.
    sudo chown -R seconduser:staff /Users/secondUser
    should work
    Remember that if you start a path with the character /  it means start from the root of the file system, at the highest top you can ever get.
    so
    cd /Users/fred
    is not the same as
    cd Users/fred
    unless you were in / already
    i know it may be confusing at first but it's actually very logical if you play with it.
    to simplify, think of it that / means C:\  on windows
    you can't go any higher than C:\  (in a way)
    if you're unsure which directory you're currently in, you can always type:
    pwd
    it will tell you where you are.
    for example:
    cd /
    pwd
    this shows  /
    cd Users
    pwd
    this now shows /Users
    cd /System/Library
    pwd will show /System/Library
    cd /
    cd /Users
    cd fred
    cd Library
    pwd will show /Users/fred/Library
    unix can look very scary but it's actually vital and very necessary to do tasks sometimes that would take for ever to do via the windows. This is good learning.
    so for the myfile you had created, i can't tell you where it is, at the time you created, if you can do a pwd command you'll know the path,
    ls -la  (this shows all the files where you are)
    if you see myfile in the list
    do a pwd
    whatever is return, the real location of the file would be:
    whatever pwd returned / myfile
    I hope that makes sense.

  • New to Mac - do I need to create a start-up disc?

    Hi
    I've recently switched over to an iMac from PC - I've worked with macs but I didn't have to deal with back-ups myself (they were all networked)
    I have an external HDD which uses Time Machine to back-up - I did hope to use that as back-up and keep a stash of stock photos (large file!) on there too but I've heard that it's not a good idea to do that (even if I partitioned the drive)
    My main issue is that I've heard that the back-ups cannot be used as a 'start-up' disc in case something happens to the iMac - so can someone let me know how I should go about doing this? (I didn't get any discs with the iMac so what do I do if something does happen?)
    and while I'm asking questions... do you think I should get another external HDD? one to use for photo storage etc (I work professionally with Photography so they are large files) and then use the other for time-machine?
    can you use a smaller sized HDD for time-machine? (the external drive I have now is 500GB -
    Model Name: iMac
    Model Identifier: iMac8,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.8 GHz
    Memory: 4 GB
    Hard Drive 320GB

    I've moved over from a PC to a MBP since May, and have dealt with similar backup issues concerning backups of software projects (also large files) daily. So I can share my thoughts and experience here.
    1) I would keep the photo file originals on a separate external USB HDD (not the Time Machine backup) with Read-Only attribute. When I copy files from my Mac to an external disk drive, I think it automatically takes on an archive attribute (read-only). With Leapord 10.5, I think that drive can even be in NTFS format (as used by Windows XP & Vista).
    Since HDD eventually fails, I would, over time, back up these high resolution photos on Dual density (8GB) DVDs.
    Because it'll probably take too many DVDs to back up al the photos, an easier option is to purchase an external backup drive systems that automatically back up a copy of your data on its own separate physical HDD package inside the same box. At the minimum, the box would actually contain two identical size HDD, but you get to use only one. The second drive is for the automatic backup. These boxes are called RAIDs, and a decent one will notify you when it detects a disk error on any one of the two drives so you can preventively replace the faulty drive to give your data full protection. The best I've seen cost $800 list for a TeraByte of protected disk storage. This box actually uses multiple data redundancy schemes to give you flexibility in buying HDDs as your need grows, but you do need to start with at least two drives for data protection. See...
    http://www.drobo.com/WheretoBuy/Index.html
    A review of its abilities and limitations was published on ZDNet..
    http://blogs.zdnet.com/Ou/?p=508
    The author of the review called himself his first review harsh, and I agree since the limitations was due to physics and user selection of disk drives that were installed, no design.
    2) For any photo files that I am manipulating daily, I would keep them on my Mac so that Time Machine so that every revision I make is backed up.
    As far as whether you need to create a start-up disk, I believe the answer is no. From Apples own online documentation, you can recovering your Mac installation from Time Machine. I understand that if you allow Time Machines to back up up everything (default setting), the procedure to full system recovery is:
    1) Reformat the boot disk and restore MacOS X from the CDs that came with the computer.
    2) Connect the external Time Machine backup drive, bring up Time Machine and restore. You can find the details by searching the Time Machine discussions. I saw some users even tried the procedure out for real.
    I've consider using one of the many backup software to back up a full disk image of my Mac, so I re-install my Mac with that disk image. The problem with this is it's a duplicating backup scheme: twice the amount of work and cost. And when the mac crashes, which one backup do I use?

  • Create a classification view over bapi

    Hello,
    i start a vb Programm to create a material in sap.
    I get all views with material_savedata but the classification view is missing.
    Does anybody know if there exist a special bapi to create a classification view
    over the .net connector ?
    thanks for any help

    Hello , thanks a lot for the answers. I am using a vb programm with the proxy connector.
    In this connector i have defined:
            Dim oClassnum As String
            Dim oClasstype As String
            Dim oKeydatum As String
            Dim oLanguage As String
            Dim oObjectkey As String
            Dim oObjecttable As String
            Dim oUnvaluated_char As String
            Dim oStandardklasse As String
            Dim oStatus As String
            Dim oAllocvaluechar As New BAPI1003_ALLOC_VALUES_CHARTable
            Dim oAllocvaluecurr As New BAPI1003_ALLOC_VALUES_CURRTable
            Dim oAllocvaluesnum As New BAPI1003_ALLOC_VALUES_NUMTable
            Dim oReturn0 As New BAPIRET2Table
    Try
                oProxy.Bapi_Objcl_Getdetail(oClassnum, oClasstype, oKeydatum, _
                oLanguage, _
                oObjectkey, oObjecttable, oUnvaluated_char, oStandardklasse, _
                oStatus, oAllocvaluechar, _
                oAllocvaluecurr, oAllocvaluesnum, oReturn0)
                MsgBox(oReturn0.Item(0).Message.ToString)
            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try
    When i start the programm i get the error:
    The function  OBJECT_CHECK_ does not exist. 
    WHY ??
    I have also tried to use 
    Bapi_Charact_Getdetail
    to test, if something works but i really do'nt know what the meaning of
    the parameters are . Perhaps somebody can explain them to me.
    I have tried with charactername and used a  *  but the result is always 0.
    Has somebody a documentation of the fields and tables that are
    needed or filled or a little example of the us of the classification.
    thanks a lot

  • Need to create a REPORT

    I need to create a kind of report, just like the one you can create in MSAccess, with data taken from a Jtable and also labels and text fields. I know nothing about how to make it. Can you give me some tips? Just know that I'm using Forte for Java.
    Thanks a lot for your suggestions,
    Giorgio

    I was thinking of a JTextArea, in which I should try to write all the informations I have, using it just like a Word page. Will it be easy, then, to print what's inside this JTextArea?
    Giorgio

  • Need to creat box to fill

    i everybody,
    i need to creat boxes to fill with quantity.
    can you help me please.
    thanxs a lot

    I believe you are referring to user input field or a drop down option where user can select quantity.
    You can either use checkbox field in form with different label for quantities , or you can check this option :
    http://musewidgets.com/collections/all/products/forms-bundle
    Thanks,
    Sanjit

  • Need to create temp account if you don't use Migration Assistant first?

    I don't have access to my old iMac right now, so I've gone ahead and created a main account on my new one. When I'm ready to bring over stuff from my old computer, do I need to create a temporary account first on my new iMac? I've heard that unless I do that, Migration Assistant won't bring over the info into my main account but rather will create an entirely separate account with all the old info.

    I have never used Migration Assistant with an Erase and Install, as I have never had 2 computers running at the same time. I always migrate things manually one at a time from my backup external hard drive using the "Import" and "Export" functions under "File". I don't know about the network settings--I just generally set them up anew with the Network Assistant. I don't know about a .Mac account since I don't have one, but I imagine you could do something similar. I like to just start off with only the the address book and Safari Bookmarks and be sure everything is working properly before importing other files, and then I just bring those in one at a time. If you have a good backup of everything, you should be able to import anything you want after an Erase and Install. But it is essential to have a good and complete backup of everything important to you.
    Good luck!

  • Aperture Workflow - need help creating workflow for photo management

    Hi -
    I currently shoot with a Canon SD890 (point & shoot) and a Nikon D300 (SLR). My photography is either personal photography or street photography. I may use some of my photography for a web project but that should not be considered right now. I shoot jpegs with the SD890 and RAW with the D300. I need to create a workflow that will allow me to manage all of my photos as well as the RAW vs JPEG aspect. Here are a few initial questions:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives?
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    Thanks for your help!

    jnap818 wrote:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives? I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    No, use a single Library. Aperture will have no problems with the various formats or with various different cameras.
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    Actually those date or event driven batches of images are very logically "Projects" in Aperture. Simply name each group of images as you import into AP as a new Project.
    IMO it is not good to import camera-to-Aperture (or direct to any app other than the Finder). Best is to use a card reader and use the Finder to copy images from the camera card to a folder on the computer hard drive.
    Below is my Referenced-Masters workflow:
    • Remove the CF card from the camera and insert it into a CF card reader. Faster readers and cards are preferable.
    • Finder-copy images from CF to a labeled folder on the intended permanent Masters location hard drive. I label that folder with the Project name suffixed with _masters, that way I can always find the Masters if Aperture forgets where they are.
    • Eject CF.
    • Burn backup copies of the original images to DVDs or to hard drives (optional backup step).
    • Eject backup DVDs/hard drives (optional backup step).
    • From within Aperture, import images from the hard drive folder into Aperture selecting "Store files in their current location."
    • Review pix for completeness (e.g. a 500-pic shoot has 500 valid images showing).
    • Reformat CF in camera, and archive DVDs of originals off site.
    Note that the "eject" steps above are important in order to avoid mistakenly working on removable media.
    I strongly recommend that every Aperture user spend $35 and work through the tutorial CD Apple Pro Training Series: Aperture 2 (Apple Pro Training Series) by Ben Long, Richard Harrington, and Orlando Luna (Paperback - May 8, 2008), Amazon.com. Note that the value is in working the tutorial, not in using the book as a manual.
    Good luck!
    -Allen Wicks

  • Do we need to create users in expdp

    Hello Guys
    I need to do expdp impdp to migrate a database to another server with same OS and oracle version.
    Do i need to create users.If not will they take the same passwords automatically.
    also please tell which way i can run my expdp and impdp faster.i just know that to use parallel clause in both expdp impdp.
    Also BUFFER parameter i think do some faster work if set to a high value.
    So please tell on what basis i should set its value
    oracle 10g
    os--aix

    Hi,
    As long as the user running the export/import has the correct rights then the user will be created automatically (which is a big improvement over old exp/imp).
    The main way to speed up expdp/impdp is to use parallel as high as possible and have a very large PGA when you import as most of the time is spent building indexes.
    IN your case i would use a network link between the two databases to avoid creating a file which should also make things faster (and simpler).
    There is no buffer parameter in expdp/impdp like there was in old style export/import.
    I would make sure you are on 10.2.0.5 if possible to make sure you have all bug fixes for datapump as there are various issues that can slow it down.
    Cheers,
    Harry

Maybe you are looking for

  • Calling a bpel process from other Bpel process

    hi, my req is i have created BPEL process where getting the list of customers by giving the partial name using DBAdapter...... getting the output from the Invoker and the output is assinged to a assing activity(thru copy operations) from assign to re

  • IMessage is not working properly on my AU/KDDI iPhone 4S in Japan.

    I've got an iPhone 4 (AT&T) with iOS5, and just bought my iPhone 4S (AU/KDDI) in Japan.  I set up both phones with my iTunes Account information, but only the iPhone4 (AT&T) will give me the blue send button in Messages app when I'm messaging an iOS5

  • Maximum hard drive on Portege M200

    I've recently bought a Portege M200 on ebay and I'm thinking of installing a new 250GB IDE hard drive. Is there a maximum hard drive size for this model?

  • Oracle VM 3 - How to keep accurate time on the server?

    I'm just starting to play with Oracle VM 3.0.1. It sure is MUCH better than 2.2. The installation went smoothly. Then I installed the VM Manager, and that worked just fine, too. I discovered my server, and created and server pool, and put the server

  • About: how to abap index in abap program.

    Dear expert, I find a question that what's the meaing of these declaration "%_hints oracle 'INDEX(RESB"Z01")" in abap program. Can you explain it to me? Best wishes. George shi