Event when Panel visible

Is there any event invoked, when a panel gets visible?
I have overwritten the paintComponent - Method, but it only works, if the window is repaintet, not when it's paintet first. So I want to call repaint, when the Pane gets visible.
Thanks for your help.

Hello,
I still have the same doubts but at least I have found a way to overcome it: if the Jinternalframe implements DropTargetListener and reject the drag on dragEnter and dragOver the dragevent won't be forwarded to the hidden JInternalFrame, something like:
private class MyInternalFrame extends JInternalFrame implements DropTargetListener
public MyInternalFrame()
super("TEST", true, true, true, true);
setDropTarget(new DropTarget(this, this));
public void dragEnter(DropTargetDragEvent dtde)
dtde.rejectDrag();
public void dragExit(DropTargetEvent dte)
public void dragOver(DropTargetDragEvent dtde)
dtde.rejectDrag();
public void drop(DropTargetDropEvent dtde)
public void dropActionChanged(DropTargetDragEvent dtde)
}

Similar Messages

  • Panel.visible=true doesn't seem to work when logged in.

    Hello,
    I’m tryin to make a flex application. When a user logs in there appears an extra panel. I’m trying to make this work with pnl.visible=false and when logged in pnl.visible=true. But somewhere there must be an error cause the panel is not seen, when logged in. On the base state you have a login button which shows the loginstate when clicked. There you can give username and pass and a button which starts the function checklogin(event). All the code in this function works, except the pnlmonbeheer.visible=true., because when you log in successful and you go back to the base state and you then go to the ‘statetoeristingelogd’ state, the panel is still not visible. Here the code:
    private function checklogin(evt:ResultEvent):void
                            if(evt.result.loginsuccess == "yes")
                            _user = this.username.text;
                            currentState = "";
                            this.lblwelkom.text="Welkom " + _user;
                            pnlmonbeheer.visible=true;
                            if(evt.result.loginsuccess == "no")
                            mx.controls.Alert.show("Invalid username/password");
    The other button on the base state leads you to the state ‘statetoeristingelogd’. The panel ‘pnlmonbeheer’ that I want to make visible is on this state and is set invisible because of visible=”false”.
    <mx:State name="statetoeristingelogd" basedOn="statetoerist">
                      <mx:RemoveChild target="{button3}"/>
                      <mx:AddChild relativeTo="{panel2}" position="lastChild">
                            <mx:Panel  visible="false" x="0" y="348" width="250" height="111" layout="absolute" title="Beheer Monumenten" borderColor="#DEE438" backgroundColor="#B9BBBC" backgroundAlpha="0.7" id="pnlmonbeheer">
                                 <mx:Button x="8" y="6" label="Toevoegen" width="115" click="showaddmon();"/>
                                 <mx:Button x="133" y="6" label="Updaten" click="showupdatemon();"/>
                                 <mx:Button x="8" y="39" label="Verwijderen" click="deleteRow();"/>
                            </mx:Panel>
                      </mx:AddChild>
    Somehow the panel stays invisible
    Can someone help me please, thank you in advance..
        

    hi,
    enterState="pnlmonbeheer.visible=true"
    add this event in your state as following
    <mx:State name="statetoeristingelogd" basedOn="statetoerist" enterState="pnlmonbeheer.visible=true"> 
    if pnlmonbeheer becomes visible then it means pnlmonbeheer dont have visibility from the function checklogin because it may be not added yet to the stage during the state change so you may set its visibiliy on enterState event
    regards
       ATIF

  • ICal events that are visible in Week/Month views but not day view!

    I manage our iCal services for 10 users via iCal server. Everyone has their own calendar and then delegates read/write access as appropriate. In what seems to be a very random and not very reproducible problem we have a few events that are visible from week view and month view, but the event doesn't show up in day view. This is a huge problem when scheduling if we don't see other events in day view and it's a real pain to have to switch views to double check.
    Anyone else have this problem?
    Anyone know the specifics that cause it, so I can prevent it?
    Any fix for said issue?
    Thanks!

    If they are in photos view then they are in an event unless you have a corrupted library
    How are you"merging" the photos?
    most common issue is either bad sort (view menu ==> sort events) or bad camera dates
    select one and show event to see the event
    LN

  • APP-FND-01926 The Custom Event  WHEN-LOGON-CHANGED...

    Hi,
    After compiling and placing a 'custom' CUSTOM.pll (and plx) file on the server, when logging into Applications receiving ERROR:
    APP-FND-01926 The custom event WHEN-LOGON-CHANGED raising unhandled exception: User Defined exception.
    This is for R12.1.3
    The code was moved to the original base version of the R12 CUSTOM.pll file...
    I read many other Notes on this error, but most refer to an error related to a Program Unit Not found and requiring a regeneration of the JAR files.
    Would this be the same situation?
    When we place the original back in place the forms login works.
    Any ideas?
    Thanks,
    Lamonte

    check ur CLASSPATH environment variable ur Custom.plx library should visible on runtime to Classpath variable.
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • How to get event when any library object added to indesign doc?

    I want to do some operation when any library object is added to doc. So please tell me how to get event when any library object is added to the doc. better provide some code snippet.

    Daves61,
    I need to clarify what kind of event you're interested in.
    1. When you click once on page/spead widget in the Pages panel and only widget becomes selected. The layout window remains unchanged. OR
    2. When you doubleclick on page/spread widget the selected master spread appears in the layout window.
    In the first case you work with Pages panel.
    Have a look to file PageTransitionsPanelObserver.cpp from SDK. 
    PageTransitionsPanelObserver::LazyUpdate()
    In the second case you work with Layout window.

  • How to separate "Key down" event from panel and numerical control

    Hi, All
    I have a vi proecess key down events for panel and  a numerical control in this panel. the application will do: 
    1. when panel is focused, user can use "up" and "down" key to driver some hardware.
    2. when the numerical control has the focus, "up" and "down" key will change it's value as usual.
    somehow the second one did not work, because the panel "key down" event was trigger as well when I use "up' "down" key inise the numerical control. 
    then I used "Key down?" of numerical control to block the "up/down" key. But the first time when I run the Vi, the panel still got triggered one time. 
    any suggestions on this? test code attached  in this post too. 
    thanks
    CQ
    Solved!
    Go to Solution.
    Attachments:
    KeyDown_Up_valuechange.vi ‏16 KB

    This works for me in 2014.  In short, you just need to check to see if your numeric has the focus.  If it doesn't, then you process the key value.  No need for any other event here except for the stop button.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    KeyDown_Up_valuechange_BD.png ‏32 KB

  • Is it possible to fire an event when radio buttons are clicked in a report?

    Hi All,
    I have got a requirement. In the selection screen i have certain input fields and three radio buttons. When radio buttons are clicked i have to grey out certain input fields. Is it possible to fire an event when i write program through se38??
    Thanks
    Rakesh

    Hi Rakesh,
    Check this code.
    SELECTION-SCREEN BEGIN OF BLOCK FINPUT WITH FRAME TITLE TEXT-001.
    PARAMETERS  : FILENAME(132) TYPE C LOWER CASE  NO-DISPLAY,
                  FDLOAD RADIOBUTTON GROUP RAD1
                  USER-COMMAND R1 ,
                  FUPLOAD RADIOBUTTON GROUP RAD1 .
    SELECTION-SCREEN END OF BLOCK FINPUT.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FUNAME(132) TYPE C LOWER CASE MODIF ID AA.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTION USER-COMMAND
                     BTNACT MODIF ID AA VISIBLE LENGTH 8 .
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCEL USER-COMMAND
                     BTNCAN MODIF ID AA VISIBLE LENGTH 8  .
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FDNAME(132) TYPE C LOWER CASE MODIF ID BB.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTIONS USER-COMMAND
                     BTNACT1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCELS USER-COMMAND
                     BTNCAN1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN END OF BLOCK B2.
    DATA : ACTNAME(8) TYPE C,SCRGRUP(2) TYPE C.
    INITIALIZATION.
    ACTIONS = 'Download'.
    CANCEL = 'Cancel'.
    ACTION = 'Upload'.
    CANCELS = 'Cancel'.
    ACTNAME = 'Download'.
    SCRGRUP = 'AA'.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF FUPLOAD = 'X'.
         MOVE 'Upload' TO ACTION.
         MOVE 'Upload' TO ACTNAME.
    ELSEIF FDLOAD = 'X'.
         MOVE 'Download' TO ACTION.
         MOVE 'Download' TO ACTNAME.
    ENDIF.
    AT SELECTION-SCREEN.
    IF SY-UCOMM = 'R1'.
        IF ACTION = 'Download'.
          SCRGRUP = 'AA'.
         MESSAGE S007(ZMESSAGE).
        ELSEIF ACTION = 'Upload'.
          SCRGRUP = 'BB'.
         MESSAGE S008(ZMESSAGE).
       ENDIF.
    ELSEIF SY-UCOMM = 'BTNCAN' OR SY-UCOMM = 'BTNCAN1'.
      LEAVE PROGRAM.
    ENDIF.
    *AT USER-COMMAND.
    CASE SY-UCOMM.
       WHEN 'ACTIONS'.
         LOOP AT SCREEN.
           IF SCREEN-NAME = 'FUNAME'.
           ENDIF.
         ENDLOOP.
    ENDCASE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR FUNAME.
      PERFORM call_filedialog CHANGING FUNAME.
    PERFORM call_filedialog CHANGING FUNAME.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Download' .
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Upload'.
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    FORM call_filedialog CHANGING fname.
      DATA: li_filetable TYPE STANDARD TABLE OF file_table,
        lv_return TYPE i,
        lw_filetable TYPE file_table.
      CALL FUNCTION 'TMP_GUI_FILE_OPEN_DIALOG'
        TABLES
          file_table = li_filetable
        EXCEPTIONS
          cntl_error = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      READ TABLE li_filetable INDEX 1 INTO lw_filetable.
      fname = lw_filetable-filename.
    ENDFORM.                    "call_filedialog
    Reward Points, if useful.
    Regards,
    Manoj Kumar

  • Is there a way to detect the event when device goes to sleep and the screen blackens?

    I want to detect the event when the iOS device goes to sleep and the screen blackens?
    Is there any way to do it?

    Hi,
    A small idea, please check whether it will work or not.
    You can achieve this by using combination of DNS server and reverse proxy server.( Customized apache). Make 'A' record for www.abcd.com to reverse proxy server IP address in your DNS.
    So it will resolve your reverse proxy IP address for requests.
    Configure appche to accept incoming request for www.abcd.com and points towards www.abcd.com/parameters.
    I think this will solve your problem.  Only one condition is that proxy server will communicate with www.abcd.com on behalf of client.
    Follow the link for configuration of reverse proxy server
    http://www.slashroot.in/how-configure-basic-apache-reverse-proxy
    HTH
    Naisam

  • How to add an attachment to a google calendar event when uisng safari

    how to add an attachment to a google calendar event when uisng safari?

    A similar question/answer here How can I detect end of HTML5 video and do something?
    See if that helps
    Darrell

  • Why does ical put a random time in front of added events when I print?

    How can I prevent ical from putting a random time in front of added events when I print?

    In Word go to File, Options, Display and uncheck the box to print document properties.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Splitting events when capturing footage from tape

    Using Final Cut Pro x, I want to capture footage from tape which is of a more then one event. what is the best way of doing this so as to avoid all of the footage captured as one event.

    One way of doing this is to simply go into the Import from Camera window and select the clips that belong to one event then hit the Import Selection button.  A window will come up asking you which event you want to import to and also give you the option to create a new event.  After the little clocks fill up on each of the selected clips, that import is done.  Now you can select the other clips and import them in the same way specifying a new event when you are asked where they are to go.  Best wishes.
    stpehen

  • Help using app_standard.event(when-tab-page-changed')

    Hello ,
    I need to create a form with the following requirements . There is one content canvas which contains a tabbed canvas and on this there are two stacked canvases .
    The problem is that when I compile my form and ftp to oebs , I cannot view the tab pages on the canvas .
    I see only my the fields displayed in the first tab page without the 'tab pages'.
    How do I solve this issue please ?
    My when-page-page-trigger contains the following :
    BEGIN
         APP_STANDARD.EVENT('WHEN-TAB-PAGE-CHANGED');
    if name_in('system.cursor_block') = 'XX_ERROR_MANAGEMENT' then
    if not form_success then
    -- Revert tab to prior value and exit
    set_canvas_property('CAN_INT',topmost_tab_page,name_in('system.tab_previous_page'));
    return;
    end if;
    -- Move to first item on each tab
    if target_canvas_name = 'CAN_INT' then
         SHOW_VIEW('CAN_ONG1');
    go_item('XX_ERROR_MANAGEMENT.INTERFACE_TYPE');
    else
    show_view(target_canvas_name);
    end if;
    END IF;
    END;
    Any help will be much appreciated . Thanks .

    bump

  • Raise an event when an idoc invoice (INVOIC02) gets created in error

    Hi All,
    I’m trying to generate an email message from an output invoice when processed incorrectly.
    I created a subtype of IDOCINVOIC, updated the linkage table using swe2  but the events are not raised when I go to re-issue my invoice output.
    I know it’s possible to raise these events in idoc invoice exit ZXEDFU02 but  the status is not created at this stage.
    Is it possible to raise an event when an idoc invoice gets created in error?
    King Regards
    Ann

    @CoolDadTX -That's because I've written com servers in the past using VB.net, however they were not registered with the Running object table.
     What I'm trying to do in this case is have an application that will be started by the user, and then they will start another application written in .Net to connect to that first application.  The reason for this is that we have an application
    written in an old version of smalltalk that doesn't seem to support getObject but can create an IUknown, and we already have base classes to attach to COM objects written in .Net.  As this new application needs to be started first it can't be tightly
    coupled to the legacy application, so we are trying to register the new application and then connect a Dotnet Client that is being started through a  COM Interface from the legacy application.  I know it's convoluted but we need to keep the legacy
    application alive for a bit longer while we rewrite it as an add-in for the new application.
    The article that you linked to has been very helpful on the server side, but do you have any ideas as to how I can connect the sink on the client side in C#?

  • Triggering event when entries inserted in standard table

    Hi Experts,
    I've a requirement to trigger an custom event when entries created in table TOA01 table. We can do this for Z-tables by through options available in table maintenance generator screen. But, in my case its standard table, so i cant change the table. And I dont want to use change document objects. Can you please let me know is there any other method to achieve this.
    Thanks in Advance,
    Siva Sankar.

    Have you checked that if there is a standard event triggered when an entry is done to this table? I think that there might be. If an event is triggered, you can for example create a check function module, and trigger your own event from there.
    Regards,
    Karri

  • Trap event when Application server is shutdown

    Hi All,
    Actually I want to catch an event do something when weblogic server is shutdown.
    How can I catch the event.
    Any help would be highly appreciated.
    I tried by implementing ServletContextListener interface, but in that I can only catch the event when weblogic is started, but not when it is shutdown.

    Why not? ServletContextListener.contextDestroyed() will always be triggered when the container is shutting down.

Maybe you are looking for

  • Changing Reconciliation account in Customer master

    Dear Experts, I am trying to change the reconcilation account in a customer master and getting the following error while doing so, 'Invalid Reconciliation Account, please use 0000140068 or 0000140060 Message no. Z1013 Diagnosis You have entered the w

  • Flash content won't play if HTML is in a different directory

    I have a flash CS3 slideshow that loads it's content from an external .xml file. If I export the HTML it plays fine, but if I move the HTML to the site root directory and let dreamweaver update the links the flash slideshow will not play. my site is

  • Problems connecting two wireless rooters without cable.

    How do I set two Roter, if one is already configured. The other is a  model Edimax BR-6504n. For the first Roter I know the MAC address and  no password ... I connect with any laptop without the password, I am  interested in someone who knows better

  • Cross-doesnt work??

    Ok its not really that the cross-fade transition doesnt work, its just that sometimes when i will atempt to add this default transition in between two clips, it will only be 3 fams long (or something like that). I always wondered why exactly this hap

  • How to install or replace lion on Mac OS X Leopard simultaneously reinstall time machine backup of  OS X Leopard

    Hi, I am new or know nothing about Mac Mini which I received from relative as gift along with few software including lion OS. I want to install lion after time machine backup of current files Mac OS X 10.6.8. MY question is that backup of Mac OS X 10