Is it possible to allow the user to highlight specific label in the GUI.

i have an existing GUI tt allows user to key in records of information eg, patient records in a hospital system.
and display them based on wat the user key in for the patient's id no:
is it possible to allow the user to highlight label in the GUI.
Label as in information like Illness:<Red>Cancer<Red>
for tt customer only.
and re open the file to have the color still there.
i serialized my vector of objects into a file, and have the gui to retrieve them upon execution.
color wise i m lost.
one solution is to have a corresponding Color attribute to each of my other attribute in all my other classes.
besides this, any idea how to do it?
i also did a search on java map..
couldn't really find sth useful abt it..
seems like few ppl know how to use it well..
API doesn't seems to show how i can use it to reach my objective.
anyway, i hope the user can highlight A attribute of a record and not highlight the entire record..
tt's why i find it soo cumbersome to have another Color object created for each atttribute.
eg:
patientId, patientName, etc.....
thanks in advance

Several Swing components understand HTML tags, eg JLabel, which is VERY useful, as in the previous example.
Are you asking "how do I highlight a field" or "how do I make it remember the color it has"?
As Color is itself Serializable, why not store your data in a Hashtable not a Vector?

Similar Messages

  • HT2688 Working on a single computer with multiple users, I have set things up to allow each user to view and listen to the others' music libraries under the "Shared Library" function.  Can you then connect an iPod touch and copy music from a shared librar

    Working on a single computer with multiple users, I have set things up to allow each user to view and listen to the others' music libraries under the "Shared Library" function.  Can you then connect an iPod touch and copy music from a shared library?

    Was your wife logged into the libray at the time you tried to log in? I have had a similar problem and it was because another user was logged into the library when I attempted to. I got the permission denied banner.

  • TNS-01190: The user is not authorized to execute the requested listener com

    Hello All,
    I just re-installed oracle forms10g and oracle 10g rel 2 on windows vista. The first time i installed both software, i swithched d pc off without turning off the listener on my laptop. When i rebooted, i found that i could not startup both forms 10g and oracle 10g database let alone loggin in. So i re-installed both prodcts. Every time i try to turn off the listener i get the error TNS-01190: The user is not authorized to execute the requested listener com. I have tried several ways to turn this off, but all effort has failed. After reading several literature on this issue, I learnt that if you change the password then any user who knows the password should be able to turn off the listener. But I still get thesame error on trying to add a password. Please can anyone help me by telling me how i can deduce the oracle user that has the administrative right to perform this task.
    Pls forgive me for the long text. Thanks again. Pls note I am not an expert so pls be explicit in your explanations.
    cheers
    aj

    Many thanks for your reply. It did not allow me to set up the password. It came back with thesame error TNS-01190 The user is not authorized to execute the requested listener command.
    I used the change_password command in lsnrctl from Dos. Note that I have created several users eg Oracle, on windows and gave it the Administrator privilege. But still it will not let me stop the listener or create a password for it. Hope anyone has experienced this before? Due to this my system has been on for the past 24hrs, approximately. Many thanks.
    Cheers
    Aj

  • How do the User and Shared Folders relate to the main drive? Can we delete?

    I'm curious how the User and Shared folders relate to the main hard drive and if there is duplicate files in these folders and the main hard drive. Some software programs I have seemed to have loaded content/info into these folders and I'm wondering why they put files in there instead of just the regular main hard drive pathing. These 2 folders are more confusing than anything. I can see that might be of use to a family and each family member wants to keep files in a personal file, but when I'm the only one using my computer, it seems like I should have the option to remove these folders completely, but I don't because I feel like I would be deleting some important files that I wasn't aware were in these folders.
    Another thing is, when I click on User folders (at least I think it's the User and not Shared folder), it brings up my name and 'Shared' in 2 seperate subfolders. Is anything in these folders duplicates of what's on my main hard drive? Is there anything significant about these folders if I'm the only user on my computer?
    I would nice to get rid of clutter and to eliminate options for software to install things by deleting these folders and not have home/user/shared folders. Is that possible?

    stikygum wrote:
    Yeah, I'm really low on space, so I'm going about a bunch of different consolidating options. But I mainly posted my main question to help me understand what 'stuff' is in the User and Shared folders and whether or not they act like an Alias, in order to help me make an informed decision what is best for my needs.
    They are not aliases; it is a hierarchy, and there is intentional duplication at different levels. This is a feature.
    First thing is that Users and Shared are at different levels. Users is at the top level, but Shared is one level inside Users, at the same level as any other user account you have created.
    Therefore, if you delete the Users folder, you delete all user accounts, which means you delete all personal data. OS X probably won't even let you delete the Users folder unless you start up from a different hard drive, because you can't delete your user account while you are running in it.
    Now, more about the hierarchy. The intentional duplication is so that documents and software can exist for individual users or all users. For example, there are multiple Applications folders:
    Hard Drive\Applications - applications any user can see, installed at the system level
    Hard Drive\Users\username1\Applications = applications only that user can see
    Hard Drive\Users\username2\Applications = applications only that user can see
    In the same way, there are multiple Preferences, Cookies, Application Support, etc. folders at different levels, for the same reasons.
    If you do not know what you are doing and you delete one of these folders that "looks like a duplicate" you could cripple some essential part of your system or your account. That is why people are telling you not to do this.
    The Shared folder is there because if you are in one user account you are prevented from seeing the files inside other user accounts. (Because you don't want other accounts to be able to see your personal data.) If you want to share files with others in your house using the same Mac, that's a problem. But the Shared folder solves this. if you want some files to be accessible to all users, like some photos or music, just put them in the Shared folder and now anyone with an account on that computer can see those shared files.
    The reason shared files are not simply stored at the top level is because everything above the Users folder is supposed to be reserved for the system. User-specific are supposed to stay in the Users folder. That is why they put the Shared folder in there.
    If you are not using the Shared folder and are just eyeing it because you want to free up some disk space, well, it probably won't help to delete it. Because if you are not using the Shared folder, it is probably not taking up much space, even though you see stuff in there. And if there is stuff in there taking up space, first figure out if someone put it there for a reason before you delete it.

  • I am in the process of expanding a database of chemistry journal articles.  These materials are ideally acquired in two formats when both are available-- PDF and HTML.  To oversimplify, PDFs are for the user to read, and derivatives of the HTML versions a

    I am in the process of expanding a database of chemistry journal articles.  These materials are ideally acquired in two formats when both are available-- PDF and HTML.  To oversimplify, PDFs are for the user to read, and derivatives of the HTML versions are for the computer to read.  Both formats are, of course, readily recognized and indexed by Spotlight.  Journal articles have two essential components with regards to a database:  the topical content of the article itself, and the cited references to other scientific literature.  While a PDF merely lists these references, the HTML version has, in addition, links to the cited items.  Each link URL contains the digital object identifier (doi) for the item it points to. A doi is a unique string that points to one and only one object, and can be quite useful if rendered in a manner that enables indexing by Spotlight.  Embedded URL's are, of course, ignored by Spotlight.  As a result, HTML-formatted articles must be processed so that URL's are openly displayed as readable text before Spotlight will recognize them.  Conversion to DOC format using MS Word, followed by conversion to RTF using Text Edit accomplishes this, but is quite labor intensive.
      In the last few months, I have added about 3,500 articles to this collection, which means that any procedure for rendering URL's must be automated and able to process large batches of documents with minimal user oversight.  This procedure needs to generate a separate file for each HTML document processed. Trials using Automator's "Get Specified Finder Items" and "Get Selected Finder Items", as well as "Ask For Finder Items"  (along with "Get URLs From Web Pages") give unsatisfactory results.  When provided with multiple input documents, these three commands generate output in which the URLs from multiple input items are merged into a single block, which yields a single file using "Create New Word Document" as the subsequent step.  A one-to-one, input file to output file result can be obtained by processing one file at a time, but this requires manual selection of each item and one-at-a-time processing. What I need is a command that accepts multiple input documents, but processes them one at a time, generating a separate output for each file processed.  Is there a way for Automator to do this?

    Hi,
    With the project all done, i'm preparing for the presentation. Managed to get my hands on a HD beamer for the night (Epason TW2000) and planning to do the presentation in HD.
    That of course managed to bring up some problems. I posted a thread which i'll repost here . Sorry for the repost, i normally do not intend to do this, but since this thread is actually about the same thing, i'd like to ask the same question to you. The end version is in AfterEffects, but that actually doesn't alter the question. It's about export:
    "I want to export my AE project of approx 30 min containing several HD files to a Blu Ray disc. The end goal is to project the video in HD quality using the Epson  EMP-TW2000 projector. This projector is HD compatible.
    To project the video I need to connect the beamer to a computer capable of playing a heavy HD file (1), OR burn the project to a BRD (2) and play it using a BRplayer.
    I prefer option 2, so my question is: which would be the preferred export preset?
    Project specs:
                        - 1920x1080 sq pix  (16:9)
                        - 25 fps
                        - my imported video files (Prem.Pro sequences) are also 25 fps and are Progressive (!)
    To export to a BRD compatible format, do i not encounter a big problem: my projectfiles are 25 fps and progressive, and I believe that the only Bluray preset dispaying 1920x1080 with 25 fps requests an INTERLACED video  (I viewed the presets found on this forum, this thread)... There is also a Progr. format, BUT then you need 30 fps (29,...).
    So, is there one dimension that can be changed without changing the content of the video, and if yes which one (either the interlacing or the fps).
    I'm not very familiar with the whole Blu-ray thing, I hope that someone can help me out."
    Please give it a look.
    Thanks,
    Jef

  • For multiple users on a computer, will Firefox Sync synchronize all the users on a computer or only the one logged on?

    For multiple users on a computer, will Firefox Sync synchronize all the users on a computer or only the one logged on? For instance my spouse and I will share a laptop and I want to sync my Firefox when I log on there also but do not want to sync her data.

    Curt
    how do you know if your using the
    Central cache all distributed cache ?
    and are they both stored in the same place ?

  • How to force the user to enter a value in the prompt

    Is there a way to force the user to enter a value in the prompt before they run the report?
    We have a customer specific dashbaord. The user has to enter a customer number in Dashbaord prompt on a first page of the dashboard. We store that value in a presentation variable. That presenatation variable value is being referenced in all the other pages of the dashabord. If the user does not enter a values in the first page and directly navigates to the other pages on the dashbaord, the reports on the other pages start to run for all the customers. Is there a way to force the customer to enter a value in the prompt before running any of the reports on the dashboard?
    Thanks!

    by Answer prompts, do you mean Column prompt?
    I can not use Column prompt in this senario as the user should not have to enter the same customer number over and over again when he navigates from one page to another on the same dashboards. If there is a way to default the column prompts then this would be an acceptable solution.
    I have already defaulted the prompt to a value as suggested in hte blog, but the issues occurs when the user erases the defaulted value. Is there are way to set the default value within the report?
    Can you please explaing mroe about option 3 regarding Java Script. Also please let me know what other options there are so that I can check whether they will fit my needs.
    Thank you very much!

  • Scripts for changing the address of the user when they have been in the box for 6 months

    Scripts for changing the address of the user when they have been in the box for 6 months
    If users are in a folder for deactivated users and disabled users in Active Directory, and been there for 6 moths do: change email address in exchange to existing email address.old 
    Anyone have suggestions on how I can go about it?

    What is this "box"?  What is this "folder" you're asking about?  You'll likely get a better answer if you use standard terminology.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • I know the user name and password but forgot the secret question

    I know the user name and password but forgot the secret question

    Check the AppleCare number for your country here:
    http://support.apple.com/kb/HE57
    Call them up, and let them know you would like to be transferred to the Account Security Team.@

  • "The User profile Service service failed at the logon. User profile cannot be loaded".

    Hi
    I'm having the below problem while i'm starting to logon to my system.  when i entered  the password, i'm getting the below msg as 
    "The User profile Service service failed at the logon. User profile cannot be loaded."
    i m trying since morning . 
    please help me in this issue .
    This question was solved.
    View Solution.

    Hi,
    You could try the following.
    Shut down the notebook.  Tap away at f8 as you start the notebook to enter Windows Recovery Console.  Use the arrow keys to select Safe Mode and hit enter.  If windows will load in this mode, from the Start Menu, click All Programs, click Accessories, click System Tools and launch System Restore.  Pick a restore point at least 48 hours before the log-on issue and then proceed with the restore process.  When complete, Windows will reboot as normal so check if you can now log in correctly.
    Another option if the above does not help is as follows.
    Shut down the notebook.  Tap away at f8 as you start the notebook to enter Windows Recovery Console.  Use the arrow keys to select 'Start Using Last Known Good Configuration' and hit enter.
    If neither of the options above are successful, try running through the procedure detailed in the guide on the following link.
    http://www.sevenforums.com/tutorials/186131-user-profile-service-failed-logon-user-profile-cannot-lo...
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Why the mac claim that the user password that i enter in the smb file sharing settings is incorrect although it is correct?

    why the mac claim that the user password that i enter in the smb file sharing settings is incorrect although it is correct?

    Maybe the Caps Lock key is lighted?
    Is your Apple ID password the same as your user password?

  • How i can show the user input in alv list on the top

    hi all,
                   please tell me how i can show the user input in alv list on the top.
                         and  also tell me how i  can hide the toolbar in alv.
    regards
    vikas saini

    Hi,
    Use the Below Code.
    form top_of_page.                                          
      data : it_header type slis_t_listheader,
             is_header type slis_listheader.
      is_header-typ  = c_h.
      is_header-key  = space.
      is_header-info = 'Pending Order Information Report'(018).
      append is_header to it_header.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
          it_list_commentary = it_header.
    endform.                    "top_of_page
    and finally pass it to .
    call function 'REUSE_ALV_GRID_DISPLAY'
          exporting
            i_callback_program     = sy-repid
            i_callback_top_of_page = 'TOP_OF_PAGE'
    call function 'REUSE_ALV_GRID_DISPLAY'
          exporting
            i_callback_program     = sy-repid
            i_callback_top_of_page = 'TOP_OF_PAGE'
    Regards.
    Arbind

  • Can Dropdown menu item stay on the "roll over" state while the user's mouse is hoving over the sub

    Can Dropdown menu item stay on the "roll over" state while the user's mouse is hoving over the parent's sub-menus?
    Thanks

    Thanks for the response. My main goal here is to get the drop
    down menu word "Overview" to remain red once it reaches the frame
    "WhoWeAre" or "OurMission" on the main timeline. If I turn the
    button inside the movie clip into an MC to do this, the drop down
    menu no longer works. Any thoughts on how to get this drop down
    menu to do this?

  • Is there a way in an unstructered Frame11.0 file to change all anchored frames in the file to a specific size at the same time?

    Is there a way in an unstructered Frame11.0 file to change all anchored frames in the file to a specific size at the same time?

    Rog,
    This is perfect use case for ExtendScript. You could easily iterate over all anchored frames and resize them. You would probably want to resize the contents as well, though, which would add a few extra lines of code.
    Russ

  • I have a project on Imovie with pinned audio to the project. I want to know how to stretch the audio to a specific point of the song?

    I have a project on Imovie with pinned audio to the project. I want to know how to stretch the audio to a specific point of the song?

    See this Tutorial for how audio works in iMovie. In general, you drag the left or right edge of your audio clip.
    You can also use the Clip Trimmer. Click the Gear icon in the music track and select the Clip Trimmer.
    http://www.apple.com/findouthow/movies/imovie08.html#audioclips

Maybe you are looking for