How to create a label after hitting a button

l = new JLabel();
l.setSize(22, 22);
l.setBackground(Color.blue);
jContentPane.add(l, null);
i tried this code in actionPerformed but nothing happens
could anyone help me plz

l = new JLabel();
l.setSize(22, 22);
l.setBackground(Color.blue);
l.setOpaque(true); //<-- insert this line to see a blue label
jContentPane.add(l, null);

Similar Messages

  • How to create an ods after creating info objects?

    Hi,
    Please Explain me How to create an ods after creating info objects with all screenshots in BW 7.0?
    Thanks,
    Jini

    Hi Jini,
    In the create screen u will find some settings related information which u need to check and then there are key fields and data fields option.
    In Key field u need to include those objects which should make ur ODS Key fields. and then rest of the fields in the data fields.
    For setting related information u can search in help.sap.com or even on SDN threads.
    Thanks,
    Nagesh.

  • Hi Experts, how to create a subform after a subform?

    Hi Experts,
    does anyone know how to create a subform after a subform? thanks in advance!
    Kind regards
    Dawson

    Dear everyone,
    does anyone know the answer? thanks in advance! and the subform is in the content node, and at this time I have another question that is the content used in the pages of master page automatically? because there is a untitled content area in the pages of master page, can anyone give some tips?
    thanks.
    Kind regards
    Dawson

  • How to create mail labels, Avery 5160, using Pages?

    How to create mail labels, Avery 5160, using Pages?

    The application Contacts holds all your addresses and telephone, email etc details.
    It has a comprehensive set of Avery labels in its print dialog.
    You select the Contacts or groups of Contacts you want to print then in the Print dialog click on Show Details where you can choose Style : Mailing labels and choose which labels you want.
    Peter

  • HT201269 I have lost all my contact details on my iphone 4s and I cant get them back even after hitting restore button.

    I have lost all my contact details on my iphone 4s and I cant get them back even after hitting restore button.

    This might be because that your game update or other software automatic update killed your contacts. You should make a frequency and regular backup for your iPhone so that all the data could be renewed to your backup data. Whenever you lost iPhone data, you have a choice to restore from iTunes. That is easy and free.
    However, this is not the end of the world if you don't have any backup of your iPhone contacts, you can recover contacts with iPhone data recovery software, but that need you to pay for it. So making a backup is a good habit.  Do you know how to use iPhone data recovery software to recover iPhone contacts without backup? If not, you can search in YouTube to get step-by-step guide to recover iPhone contacts from iPhone without backup. This is such an example: How to Recover iPhone Contacts - Step-by-step Guide.

  • Hi all, how to dubug an application after clicking ok button on popup

    Hi all, how to dubug an application after clicking ok button on popup, pcan anyone give me the porcedure
    Regards,
    Sre

    Copy the below text into a notepad file and save.
    [FUNCTION]
    Command=/H
    Title=Debugger
    Type=SystemCommand
    Now when you get a popup and want to debug from the same, drag & drop the saved file on to the popup window and debug starts right after the next user-command.

  • How to create a dropdown menu with sub buttons that link back to the labels on click.

    im trying to create a dropdown menu buttons that when you rollover to the top central button the button it opens up like a drop down menu would containg two other subsectional buttons. This makes the sub sectional buttons seperate from the main stage making it difficult to simply give them a on click,  sym.play("label") function.
    the buttons work like this in symbols or sections stage/panel/homebutton inside home button is group dev containg another group dev containg the button which I need to link back to a "label" in the /panel/ symbol or section. Thank you very much.

    pdp_1 wrote:
    Hi!
    I would like to create a DVD menu that offers two languages. So the first page gives two options: Language 1 and Language 2. Then depending on which language you choose, you go to a menu that proposes different videos and a photo slideshow.
    Regardless on which language button you click on initially, you get the same content but in different languages.
    I've been looking at Premiere's templates, which I can certainly customize, but I really don't see how to create the double menu. Does anybody have an idea?
    Put the video with the first language on the timeline followed by the video with the second language.  Use chapter markers so you can have each video as a chapter in the menu.
    I use Premiere Pro, so I can't give more specific directions. Perhaps somebody like ATR will chime in.
    Also, I have another question: can I put videos from different projects in the same DVD with Premiere or must all of the videos that go into the DVD be in the same project?
    Thank you very much!!!
    pdp1
    They must be in the same project.

  • How to create a file after ElapsedTime

    Hi, I have a situation where my BPEL process consumes messages off of a queue and creates a output file using them via a FTP Adapter. The number of messages vary greatly depending on the day and the business needs only 1 file a day with the appropriate dateTime stamped to it. I tried using the elapsedTime option on the FTP adapter but it seems to be waiting for invocation before creating the file. I set the time to 2 minutes but instead of creating the file after 2 minutes of inactivity, it waits for a message to be triggered with more than 2 minutes time difference from the last one. Since the messages come in a burst on this queue, the next message wont come in until the next day for the file to be triggered.
    I also tried appending to a file but this is over a SFTP connection so it just kept overwriting the file and in the end I just have 1 record on the file. Any suggestions on this would be really helpful as to how should I go about creating this file in a way that it captures all the messages for today and creates the file the same day as well. Thanks!

    like an action class?Huh? What exactly is your requirement?
    Creating a file is usually done with java.io API. Read the java.io tutorials how to play with files.

  • Creating CD label after burning

    I've burned a few CDs for friends from my Itunes library and would like to create a label. It appears Itunes will let me pring a jewel case label but has no cd label option. All tracks names and artist are listed in itunes, however when opening up a 3rd party label creator, the track names and artist are not recognized and I have to manually type in the names before I can create the label. It would seem to me there would be an easier way...what am I missing?

    I've burned a few CDs for friends from my Itunes
    library and would like to create a label. It appears
    Itunes will let me pring a jewel case label but has
    no cd label option. All tracks names and artist are
    listed in itunes, however when opening up a 3rd party
    label creator, the track names and artist are not
    recognized and I have to manually type in the names
    before I can create the label. It would seem to me
    there would be an easier way...what am I missing?
    good question- anyone know an answer? otherwise, i will have to go back to using another program like roxio or nero to burn and label cds. itunes is great, but not if i can't label cds.

  • How to create a custom control of a button where the look will be applied to all others but not the Boolean text?

    Hi all
    I would like to create a customized button as a master so that if I change the look of the master all other buttons will change too.
    I have done this with a custom control as a "strict type def" otherwise the look will not change BUT If I do this as a strict type def I cannot change the Boolean text anymore which should be different on every button.
    How can I create a master control of a button where the look will be applied to all others but not the Boolean text?
    Stay Hungry, Stay Foolish
    Solved!
    Go to Solution.

    Steve Chandler wrote:
    I don't think you can do that. I just looked and as I suspected the Boolean text property is read only for strict typedefs so you cannot use property nodes to change the text.
    As a workaround just make it a typedef. When you want to change the look open the typedef and make it strict, make your changes, then make it non strict again. You will have to update the Boolean text again for all instances. Kind of a pain. Maybe this is something for the idea exchange.
    Kudos for being sneaky.
    I like these creative work-arounds!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Restrict Navigation after hitting Apply Button

    Hello All,
    I want to restrict the user not to go to next page after Apply button is hit .
    Issue
    One of the values get populated only after the Apply Button is hit and based on the value, i need to restrict the user to provide correct details.
    I have extended the CO and trying to achieve this, please let me know.
    Thanks
    Rakesh
    Edited by: Rakesh S on Nov 25, 2009 11:43 AM

    How are you navigating to next page? SetforwardURL or forwardImmediately?
    Try to do setForwardURLToCurrentPage() at the end of the processFormRequest()
    --Prasanna                                                                                                                                                                                                                                                                                                                                               

  • How to create a dialog window with no button that opens along with the main window?

    When the main window is open, the dialog window opens up immediately and can be closed by key press. At other times, when the next step, ie: decision, comes to, the another dialog window pops up again and is again closed by key press. Does anyone know how to do? Use the sub-Vi? notification method? occurrence method?
    And another thing: how to create a reusable dialog window with no button so that different messages can be sent to it and it can closed by key press. And how to pass the string to the title of the dialog window programmatically?

    For your functionality (If I understand it right), nothing needs to be in the event structure. Pressing any key just triggers the event, thus finishing the VI (there is no while loop).
    Could you tell me what you mean my "it won't run properly"? Make sure that the front panel of the subVI is closed before starting the main VI. Remember that the subVI is set to "open when called" and "close afterwards if originally closed". So, if you had the panel open already, it won't of course close when finished!
    (Actually, the problems is worse when you have the subVI panel open when starting the main VI. you get a catch22 and labVIEW locks up because (1) the subVI is set to dialog and grabs all attention but (2) it has not been
    called, thus the event cannot be triggered. So don't do that!!!! As a quick workaround, add the modification shown in the attached image to ensure the panel of the subVI is closed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    CloseNoButtonDialog.gif ‏3 KB

  • How to create the composite control with textinput,button and grid.

    I have created the application having two Textinput  and three button and a DataGrid.
    1. on click of first button next to "select a value" , a DataGrid will be open.
    and i am using all the functionality of DataGrid.
    2. now by using all of these control i have required to create single composite control.
    plz help me how to create this composite control.

    Right click the graph and select Create>Property Node. On the diagram, find the property node, right click it and first select Change All to Write. Right click again and if you select Properties, you will see a list of all the available properties for the graph. The properties you want are XScale.Minimum, XScale.Maximum, XScale.Increment, YScale.Minimum, YScaleMaximum, and YScale.Increment. You can grow the single property node to have as many properties that you want. Once you have all the properties created, create front panel controls and wire them to the property node. See the attached picture.
    Attachments:
    graph_properties.jpg ‏16 KB

  • 3 GS freezes to white screen occasionally after hitting home button.  Has anyone ever experienced this?

    Has anyone ever experienced a white screen that freezes then turns black after hitting the home button?

    I have had intermittent white screens for some time (as in three years). It happens when the phone "wakes up". I hae lost calls that I could not answer because the screen was white. It has come up white when I hit the home screen. Not always, but with random frequency. All I have to do it hit the power button (I do not have to power off, just hit the button) and  reopen the phone and it is gone. I know the phone is functioning under this screen, I just cannot do anything.
    My first 3GS had the problem so severly I called Apple. After two and a half hours of resets of various kinds, they decided the phone was bad and sent my a replacement. It was better, but it still has the issue. I have gotteb used to it and am waiting until I can get an upgrade to the phone in the hopes it takes care of it. In the meantime, I occasionally doa search here and un the intertubes to see if someone else has the issue and a solution.
    My suspicion has been that some app I downloaded causes it, but I have deleted apps and cannot get rid of the issue.

  • How to Do Validations When Approval Hits Reject Button?

    The transaction has been initiated and now it routes to the next approval.  The approval opens up the work item and it brings the form with the details transaction initiated.  The approval hit "Reject" button to reject the transaction.
    Is there a way / BADI that I can put a validations so that it'll throw a message whenever user hit "Reject" button?

    Hi Shreya,
    I saw that this question has been marked answered.
    Do you mind to share the solution as I am also having the same problem here.
    What i need to do is to add validation when approvers hit on Approve button or Back to Author button.
    The validation will be checking whether comment is entered, error msg will be prompted if no comment entered.
    Please advice.
    Thanks
    Regards,
    Justin

Maybe you are looking for

  • Problem with 5300 and 2 GB memory card

    Hi, I just bought 5300 phone and 2 gb micro sd card, sandisk. And I am now storing music files to the card via usb connection and phone is shown to pc as a disk. It transfers 990 MB of music and after that is says card is full. From gallery it shows

  • Crystal Report 2008 - File Locations

    I'm running out of space on the OS partition (C drive) and want to change the default location(s) in Crystal Report so when reports are created and run,  they use space on the D drive.

  • How to automate the purging of archivelogs on primary when backing up from physical standby?

    Hi, When configuring archivelog backups to run from my Active Standby database (11.2.0.3) I am running into an issue where the archivelogs on the primary database are not getting purged. This is resulting in the archiver hanging on the primary. run {

  • Vault size smaller than Library

    I have 30k referenced photos (188 gb) with a Library size of 11 gb. The Vault size is only 1.7 gb! This makes me nervous. In the past, both have been about the same size. What is happening?? thank you

  • Look for a table for a field in ECC.

    Hello expert,         I want to enhance a datasource with a field,  I can find out the position of this field in the ECC system, how can I know which table this field is in? Many Thank.