Fire event when clicking anywhere but on a specific component?

Hi,
I'm having some problems with a feature in my project. I wan't to be able to handle the text inside a JTextField when i click anywhere in my JFrame but the JTextField. Consequently, if I click outside of the JTextField I wan't an event to fire. How do I accomplish this as simple as possible?
Thanks

Have a look at the java.awt.Toolkit.addAWTEventListener(...) method.
Piet

Similar Messages

  • Is it possible to trigger an event when clicking context menu trigger icon?

    When opening a context menu on a UI element, is it possible to trigger an event to handle, eg. set the lead selection for this context element to which the UI element is bound, when clicking the menu trigger icon ?

    First, these NW04s menus are not really context menus. They are static menus that are rendered within the view layout. Real context menus will come later.
    There is no "onMenuOpen" event for an application.
    Armin

  • PC locks up for 5-10 min when clicking anywhere in Files...

    Hello,
    I have a client that recently had his User profile in XP Pro copied from a Domain to a Local profile. It appears that perhaps something got corrupted, I have read the instructions on removing the DW cache file and/or the User Configuration File.
    Now, when he starts DW version 6, and clicks anywhere in the Files, with any of his sites, DW locks up for 5-10 minutes. We can access those files manually over the network using Explorer just fine.
    I should mention that this user has multiple versions of Dreamweaver and CS/Photoshop on his PC.
    Two questions:
    1- Will doing either of these procedures require the user to have to recreate his Site Files?
    2- Are there any other procedures or items I should look at for this issue?
    Thank you!
    Johnathon

    Start with the basics... Are you installing from Software Update or have you downloaded the combo update and manually run it?
    I would recommend you download and run the combo, and not use Software Update.
    Prior to install, backup everything! Then double check that you have backed up everything! You've been lucky 6 times - don't wait for #7 to be unlucky and render your Mac inoperable before thinking of backup.
    Before you run the updater, power down and restart it. Run Disk util and repair permissions. Check the disk to see if there are any issues with it too. If so, repair these prior to updating (post here for more help as disk issues may not be as easy to repair as clicking "repair disk").
    Just let it do it's thing. If it hangs for more than 30 mins I'd say restart it (it shouldn't take all that long really - hats off to you for having 12 hrs worth of patience!). If it fails again, come back and let us know we can help you through checking out some logs.

  • JDev 10.1.3 ADF: How to fire an event when clicking a Radio Button

    I have a <af:table> component with the following code for my radio button
    <af:tableSelectOne text="Select and"
    binding="#{backing_viewFees.tableSelectOne1}"
    id="tableSelectOne1"
    attributeChangeListener="#{backing_viewFees.tableSelectOne1_attributeChangeListener}"
    autoSubmit="false">
    When I click the radio button it does not fire up my event in my backing bean?

    Thank you for the suggestion...it does work and fires the event, but it is still not selecting the current record when I try to perform an Update or Delete.
    I had to modify your code a bit in order for it work in JDev 10...used the JUCtrlValueBindingRef instead of the FacesCtrlHierNodeBinding.
    Here is what my af:table tag looks like:
    <af:table value="#{bindings.FeesView1.collectionModel}"
    var="row" rows="#{bindings.Fees001View1.rangeSize}"
    first="#{bindings.FeesView1.rangeStart}"
    emptyText="#{bindings.FeesView1.viewable ? \'No rows yet.\' : \'Access Denied.\'}"
    selectionListener="#{backing_viewFees.tableSelectOne1_attributeChangeListener}"
    binding="#{backing_viewFees.table1}" id="table1">
    If I put back my 2 original attributes, then my Delete and Updates work.
    selectionState="#{bindings.FeesView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.FeesView1.collectionModel.makeCurrent}"
    Here is my code in the backing bean:
    public void tableSelectOne1_attributeChangeListener(SelectionEvent selectionEvent) {
    JUCtrlValueBindingRef binding = (JUCtrlValueBindingRef)this.getTable1().getSelectedRowData();
    if (binding != null) {
    Row currentRow = binding.getRow();
    if (currentRow != null) {
    System.out.println(currentRow.getAttribute("CurrentRecordInd")); // this does print my selected value!!!!
    }

  • Not Able to track Click Campaign Event when clicking on an ad which belongs to a campaign

    I have made a campaign(WL 4.0) and i have deleted the click product event and display
    product event from the list of persisted events through console.Now when i display
    and click the ads i am not getting the ClickCampaignEvent generated but only getting
    the displayCampaignEvent and sesisonbeginevent(which implies that the behavior
    tracking listener is properly registered).What may be the probable reason?

    Hi,
    maybe you are looking at local universe storage from the rich client ?
    C:/Document and Settings/<User Name>/Application Data/Business Objects/Business Objects 12.0/Universes
    whereas from infoview, those are those secured from the server?
    If however you are connecting your WRC in 3-tier mode, then those would be server .unv
    regards,
    H

  • PDF images that magnify when clicked? (but not in Preview)

    I'm viewing a 3-page PDF document received from elsewhere, using Acrobat 7.0 Standard on a MacBook running OS 10.4.11. The document contains 4 figures. When I run the pointer (the "hand") over 2 of these images, a short horizontal bar with a short arrow pointing downward from it appears inside the hand. Clicking once significantly magnifies the size of the image, up to full screen or full window width. What happens with further clicks is a bit confusing, but there is no further magnification, and eventually a demagnification back to the initial size.
    Nothing like this happens with the other two figures, and nothing like this happens if I view the document in Mac Preview. Only limited information on how this PDF document was created is available, except that maybe PowerPoint was involved at some stage.
    Any ideas as to what's going on here?
    Thanks for any info.

    Hi A.E. --
    If you're looking for a better response than you've gotten so far, I'd suggest the Mac Acrobat forums at http://www.adobeforums.com/webx/.ee6b2ed/
    There's a chance that someone here may know, but since it's clearly an Acrobat "feature" (given that it doesn't occur in Preview), someone will DEFINITELY know the answer over there.
    Best of luck!

  • How can I get rid of a blue square that appears when click anywhere on the screen?

    I have opened an architectural drawing but when I tried to delete some lines and I click on he screen a blue square appears and I can not select the line to delete. Any help would be appreciated to get rid of this annoying blue square.
    Thanks

    Adobe CSS 4, Windows. The file is a PDF file. Please see below ... Thanks for your help !

  • Useful Code of the Day:  Button fires events while held

    Have you ever been making a GUI application with Swing and used some JButtons? Fun, right? Have you ever wanted to have the button fire action events while the button was being held down? Well, if you just stick a plain JButton in your application and press and hold the mouse button on it, you'll see it doesn't do anything except sit there looking pressed in. Insolent button!
    RepeatButton (code below, couldn't think of a better name) is a JButton subclass which contains a timer that is set when the mouse button presses the button, and after a slight initial delay (configurable), fires action events to all registered action listeners repeatedly (with another configurable delay between events) until either the mouse is released or the mouse moves out of the button (it starts up again if the mouse moves back over without releasing the mouse button) or the button is disabled. The event modifiers are passed on as well, so you know if the shift or control buttons (or whatever) are being pressed at the same time.
    There is also a method to disable the repeated action firing while holding. This, in effect, turns the button into a normal JButton, if needed.
    There is a main method for testing which will show a button in a frame and print out the action command for each action event fired.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    import javax.swing.event.*;
    * <code>RepeatButton</code> is a <code>JButton</code> which contains a timer
    * for firing events while the button is held down.  There is a default
    * initial delay of 300ms before the first event is fired and a 60ms delay
    * between subsequent events.  When the user holds the button down and moves
    * the mouse out from over the button, the timer stops, but if the user moves
    * the mouse back over the button without having released the mouse button,
    * the timer starts up again at the same delay rate.  If the enabled state is
    * changed while the timer is active, it will be stopped.
    * NOTE:  The normal button behavior is that the action event is fired after
    * the button is released.  It may be important to konw then that this is
    * still the case.  So in effect, listeners will get 1 more event then what
    * the internal timer fires.  It's not a "bug", per se, just something to be
    * aware of.  There seems to be no way to suppress the final event from
    * firing anyway, except to process all ActionListeners internally.  But
    * realistically, it probably doesn't matter. 
    public class RepeatButton extends JButton
              implements ActionListener, MouseListener {
          * The pressed state for this button.
         private boolean pressed = false;
          * Flag to indicate that the button should fire events when held. 
          * If false, the button is effectively a plain old JButton, but
          * there may be times when this feature might wish to be disabled. 
         private boolean repeatEnabled = true;
          * The hold-down timer for this button.
         private Timer timer = null;
          * The pressed state for this button.
         private int delay = 60;
          * The pressed state for this button.
         private int initialDelay = 300;
          * Holder of the modifiers used when the mouse pressed the button. 
          * This is used for subsequently fired action events.  This may change
          * after mouse pressed if the user moves the mouse out, releases a key
          * and then moves the mouse back in. 
         private int modifiers = 0;
          * Creates a button with no set text or icon.
         public RepeatButton() {
              super();
              init();
          * Creates a button where properties are taken from the Action supplied.
          * @param  a  the button action
         public RepeatButton(Action a) {
              super(a);
              init();
          * Creates a button with an icon.
          * @param  icon  the button icon
         public RepeatButton(Icon icon) {
              super(icon);
              init();
          * Creates a button with text.
          * @param  text  the button text
         public RepeatButton(String text) {
              super(text);
              init();
          * Creates a button with initial text and an icon.
          * @param  text  the button text
          * @param  icon  the button icon
         public RepeatButton(String text, Icon icon) {
              super(text, icon);
              init();
          * Initializes the button.
         private void init() {
              this.addMouseListener(this);
              // initialize timers for button holding...
              this.timer = new Timer(this.delay, this);
              this.timer.setRepeats(true);
          * Gets the delay for the timer of this button. 
          * @return  the delay
         public int getDelay() {
              return this.delay;
          * Set the delay for the timer of this button. 
          * @param  d  the delay
         public void setDelay(int d) {
              this.delay = d;
          * Gets the initial delay for the timer of this button. 
          * @return  the initial delay
         public int getInitialDelay() {
              return this.initialDelay;
          * Sets the initial delay for the timer of this button. 
          * @param  d  the initial delay
         public void setInitialDelay(int d) {
              this.initialDelay = d;
          * Checks if the button should fire events when held.  If false, the
          * button is effectively a plain old JButton, but there may be times
          * when this feature might wish to be disabled. 
          * @return  if true, the button should fire events when held
         public boolean isRepeatEnabled() {
              return this.repeatEnabled;
          * Sets if the button should fire events when held.  If false, the
          * button is effectively a plain old JButton, but there may be times
          * when this feature might wish to be disabled.  If false, it will
          * also stop the timer if it's running.
          * @param  en  if true, the button should fire events when held
         public void setRepeatEnabled(boolean en) {
              if(!en) {
                   this.pressed = false;
                   if(timer.isRunning()) {
                        timer.stop();
              this.repeatEnabled = en;
          * Sets the enabled state of this button.  Overridden to stop the timer
          * if it's running.
          * @param  en  if true, enables the button
         public void setEnabled(boolean en) {
              if(en != super.isEnabled()) {
                   this.pressed = false;
                   if(timer.isRunning()) {
                        timer.stop();
              super.setEnabled(en);
          * Handle action events.
          * @param  ae  the action event
         public void actionPerformed(ActionEvent ae) {
              // process events only from this components
              if(ae.getSource() == this.timer) {
                   ActionEvent event = new ActionEvent(
                        this, ActionEvent.ACTION_PERFORMED,
                        super.getActionCommand(), this.modifiers);
                   super.fireActionPerformed(event);
              // testing code...
              else if(testing && ae.getSource() == this) {
                   System.out.println(ae.getActionCommand());
          * Handle mouse clicked events.
          * @param  me  the mouse event
         public void mouseClicked(MouseEvent me) {
              // process events only from this components
              if(me.getSource() == this) {
                   this.pressed = false;
                   if(this.timer.isRunning()) {
                        this.timer.stop();
          * Handle mouse pressed events.
          * @param  me  the mouse event
         public void mousePressed(MouseEvent me) {
              // process events only from this components
              if(me.getSource() == this && this.isEnabled() && this.isRepeatEnabled()) {
                   this.pressed = true;
                   if(!this.timer.isRunning()) {
                        this.modifiers = me.getModifiers();
                        this.timer.setInitialDelay(this.initialDelay);
                        this.timer.start();
          * Handle mouse released events.
          * @param  me  the mouse event
         public void mouseReleased(MouseEvent me) {
              // process events only from this components
              if(me.getSource() == this) {
                   this.pressed = false;
                   if(this.timer.isRunning()) {
                        this.timer.stop();
          * Handle mouse entered events.
          * @param  me  the mouse event
         public void mouseEntered(MouseEvent me) {
              // process events only from this components
              if(me.getSource() == this && this.isEnabled() && this.isRepeatEnabled()) {
                   if(this.pressed && !this.timer.isRunning()) {
                        this.modifiers = me.getModifiers();
                        this.timer.setInitialDelay(this.delay);
                        this.timer.start();
          * Handle mouse exited events.
          * @param  me  the mouse event
         public void mouseExited(MouseEvent me) {
              // process events only from this components
              if(me.getSource() == this) {
                   if(this.timer.isRunning()) {
                        this.timer.stop();
          * Testing flag.  Set in main method.
         private static boolean testing = false;
          * Main method, for testing.  Creates a frame with both styles of menu.
          * @param  args  the command-line arguments
         public static void main(String[] args) {
              testing = true;
              JFrame f = new JFrame("RepeatButton Test");
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel p = new JPanel();
              RepeatButton b = new RepeatButton("hold me");
              b.setActionCommand("test");
              b.addActionListener(b);
              p.add(b);
              f.getContentPane().add(p);
              f.pack();
              f.show();
    "Useful Code of the Day" is supplied by the person who posted this message. This code is not guaranteed by any warranty whatsoever. The code is free to use and modify as you see fit. The code was tested and worked for the author. If anyone else has some useful code, feel free to post it under this heading.

    This makes word completion possible for JTextArea:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import java.util.*;
    * This class provides word completion for JTextArea.
    public class WordCompleteArea extends JTextArea {
        private boolean isTextComplete = true;
        public WordCompleteArea (Document doc, String text,
                                      int rows, int columns, KeyStroke expandKey) {
            super (doc, text, rows, columns);
            String s = "word-complete";
            Action wordComplete = new AbstractAction () {
                public void actionPerformed (ActionEvent e) {
                    wordComplete ();
            getInputMap ().put (expandKey, s);
            getActionMap ().put (s, wordComplete);
        public WordCompleteArea (Document doc, String text, int rows, int columns) {
            this (doc, text, rows, columns,
                            KeyStroke.getKeyStroke ("ctrl pressed SPACE"));
        public WordCompleteArea (Document doc) {
            this (doc, null, 0, 0);
        public WordCompleteArea (String text, int rows, int columns) {
            this (new PlainDocument (), text, rows, columns);
        public WordCompleteArea (int rows, int columns) {
            this (null, rows, columns);
        public WordCompleteArea (String text) {
            this (text, 0, 0);
        public WordCompleteArea () {
            this (0, 0);
         * Define if text already written in the JTextArea will be used
         * for expansion.
        public void setTextComplete (boolean b) {
            isTextComplete = b;
         * Find out if text already written in the JTextArea will be used
         * for expansion.
        public boolean isTextComplete () {
            return isTextComplete;
        private String tokenDelimiters = "\t\r\n ,;()[]{}%+/-*<>=&|!\"\'.@#";
         * Get delimiters that form a word.
        public String getTokenDelimiters () {
            return tokenDelimiters;
         * Set delimiters that form a word.
        public void setTokenDelimiters (String s) {
            tokenDelimiters = s;
        // Additional words used for expansion.
        private LinkedList wordCompleteList = new LinkedList ();
         * Add words that will be used as expansion.
        public void addCompleteWords (java.util.List words) {
            wordCompleteList.add (words);
         * Add a word that will be used as expansion.
        public void addCompleteWord (String word) {
            wordCompleteList.add (word);
        private String lastExpanded = null;
        private String lastExpansion = null;
        private Set dontAccept = new HashSet ();
        protected void wordComplete () {
            int caret = getCaretPosition ();
            if (caret == 0)
                return;
            String text = getText ();
            if (caret != text.length () && isCompletionLetter (text.charAt (caret)))
                return;
            StringBuffer sb = new StringBuffer ();
            int index = caret - 1;
            char ch;
            while (index >= 0 && isCompletionLetter ((ch = text.charAt (index)))) {
                sb.append (ch);
                index--;
            if (sb.length () == 0)
                return;
            sb.reverse ();
            String word = sb.toString ();
            String toExpand = word;
            if (toExpand.equals (lastExpansion)) {
                dontAccept.add (lastExpansion);
                toExpand = lastExpanded;
            } else {
                dontAccept.clear ();
            String s = findExpansion (toExpand, caret);
            if (s != null) {
                lastExpanded = toExpand;
                lastExpansion = s;
                replaceRange (s, caret - word.length (), caret);
            } else {
                dontAccept.clear ();
                lastExpanded = null;
                lastExpansion = null;
                int diff = word.length () - toExpand.length ();
                replaceRange ("", caret - diff, caret);
        private boolean isCompletionLetter (char ch) {
            return tokenDelimiters.indexOf (ch) < 0;
        protected String findExpansion (String word, int caret) {
            StringTokenizer st;
            if (isTextComplete) {
                st = new StringTokenizer (getText (), getTokenDelimiters ());
                while (st.hasMoreTokens ()) {
                    String s = st.nextToken ();
                    if (    s.startsWith (word)
                            && s.length () != word.length ()
                            && !dontAccept.contains (s)      ) {
                        return s;
            for (Iterator it = wordCompleteList.iterator (); it.hasNext (); ) {
                st = new StringTokenizer
                                ((String) it.next (), getTokenDelimiters ());
                while (st.hasMoreTokens ()) {
                    String s = st.nextToken ();
                    if (    s.startsWith (word)
                            && s.length () != word.length ()
                            && !dontAccept.contains (s)      ) {
                        return s;
            return null;
        // TEST
        public static void main (String[] args) {
            WordCompleteArea a = new WordCompleteArea ();
            JFrame window = new JFrame ();
            window.getContentPane ().add (a, BorderLayout.CENTER);
            window.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
            window.setSize (300, 300);
            window.setVisible (true);
    }

  • Make Video Pause When Clicked?

    Hi, I have a flash video that is set to autoplay when the page loads. We've just implemented thickbox/lightbox system on it now so when you click on the video it enlarges into that new frame. Problem is, when that's done the video/audio is still playing while the video in the thickbox is playing too. This leading to ineffective listening. Does anyone know a code that would trigger the video to pause when clicked anywhere on the video screen?
    Right now the videos being tested at this link - http://edlevinjewelry.com/indexTEST.html
    I don't currently have the video linked up to lightbox, just a link above the video to expand.
    With FLVPlayback,this is my current code (it's currently coded and set up so the video autoplay starts at 52 seconds)...
    import fl.video.MetadataEvent;
    import fl.video.VideoProgressEvent;
    import fl.video.*;
    my_FLVPlybk.addEventListener(VideoEvent.COMPLETE, rewind);
    function rewind(eventObject:VideoEvent):void {
        my_FLVPlybk.seek(52);
        my_FLVPlybk.play();
    var fp:FLVPlayback = my_FLVPlybk;
    fp.addEventListener(VideoProgressEvent.PROGRESS, videoProgressHandler, false, 0, true);
    fp.addEventListener(MetadataEvent.METADATA_RECEIVED, metaDataHandler, false, 0, true);
    fp.autoPlay = false;
    var startSeekTime:Number = 52;
    var videoDuration:Number;
    var videoSeeked:Boolean = false;
    function metaDataHandler(event:MetadataEvent):void {
         if(event.info.duration != null){
              videoDuration =event.info.duration;
    function videoProgressHandler(event:VideoProgressEvent):void {
         var fp:FLVPlayback = event.currentTarget as FLVPlayback;
         var bytesLoaded:Number = event.bytesLoaded;
         var bytesTotal:Number = event.bytesTotal;
         if( !isNaN(videoDuration)){
              if( (bytesLoaded/bytesTotal) >= ( (startSeekTime+4)/videoDuration) && !videoSeeked ){
                   videoSeeked = true;
                   fp.seek(startSeekTime);
    fp.play();

    kglad -
    When I plugged in the code below, it had these 3 errors:
    1119: Access of possibly undefined property toggle through a reference with static type fl.video:FLVPlayback.
    source - if(!my_FLVPlybk.toggle){
    1119: Access of possibly undefined property toggle through a reference with static type fl.video:FLVPlayback.
    source - my_FLVPlybk.toggle=!my_FLVPlybk.toggle;
    1119: Access of possibly undefined property toggle through a reference with static type fl.video:FLVPlayback.
    source - my_FLVPlybk.toggle=!my_FLVPlybk.toggle;
    I put it in the actionscript, was there anywhere specific I was supposed to plug it with the rest of the code?
    Thanks for helping with this.
    - Sean
    = = =
    stage.addEventListener(MouseEvent.CLICK,videoF);
    function videoF(e:MouseEvent){
    if(!my_FLVPlybk.toggle){
    my_FLVPlybk.pause();
    } else {
    my_FLVPlybk.play();
    my_FLVPlybk.toggle=!my_FLVPlybk.toggle;
    = = =

  • Unselect Spark List when clicking in the empty area?

    Hi there.
    I'm wondering if it's possible to unselect a Spark List when clicking in the empty area?
    I've attached this function to the list's click event:
    protected function list_clickHandler(event:MouseEvent):void
        list.selectedIndex = -1;
    But the list gets unselected even if I click on a item in the list. Is there a way to prevent the event when clicking on an item?
    Thanks a lot!:)

    Hi
    It's because the event bubbles all the way up. You have to explicit stop the event doing so.
    You can do it within an "item_clickHandler(ev:Event)" where you can stop propagation via the Event stopImmediatePropagation or stopPropagation methodes...

  • Desktop icons wont open when clicked on

    Hi to all Happy New Year just installed Leopard on both of my computers- on Macbook -desktop icons open when clicked on but not on my Imac computer- tried restarting numerous time any suggestions. Any thoughts. Kevin

    I have a friend that has the same problem. Seems related to plugging in an external monitor. When she unplugs, her Desktop icons are unresponsive and can't be clicked on. In the Terminal I issue:
    killall Finder
    and that temporarily fixes the problem. Wondering if there is a permanent fix. Perhaps I'll delete the Finder .plist.

  • Open transaction when click in the link in sap inbox body text

    Hi all,
    Requirement :
    Have to send mail through program (not workflow) and in the mail body one link should go to the sap inbox. when user click that link it should open the transaction with passing some values to the transaction.
    Solution :
    Can we use the java script in the mail sending FM body so that we can raise a event when clicking the link in sap inbox.
    Please suggest some method to solve the problem.
    Regards,

    Hi,
    Here is the sample code:
    DATA: lr_navigation TYPE REF TO if_crm_ui_navigation_service.
    lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
    CHECK lr_navigation IS BOUND.
    lr_navigation->navigate( iv_link_id = 'ZLINKID' ).
    -ASB

  • Have latest updates for mac and iPhoto.  several of "events" now show as grey squares with a plan tree, no thumbnails when scrolling over as before.  Photos show when clicking on icon but not visible as a group.  What gives?

    Have the latest updates on my iMac and iphoto.  Recently several "Event" folders have turned to grey with a palm tree in the corner.  Before there was a "key" photo to help identify the event.  The event title is still at the bottom of the square but no key photo.  When i click on the icon, the photos that it contained show up, but when closed again disappear.  How do I correct this annoyance?
    Also:  One event that contains about 12 photos has a problem---some of the photos when clicked will enlarge and show individually on the screen and print out, while others when clicken on show a black background with an exclamation mark and will not print.  Thoughts?

    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your iPhoto library database
    LN

  • 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

  • Been using Firefox for 3 years on my iMac (OS 6.8) but , when setting up new gmail acct, it went dead and no clicking anywhere gets response. How reset this??

    I tried user: support but clicking didn't start anything. Firefox is there as is my list of bookmarks, but it is dead. Safari and even Netscape are fine. Would resetting work? I ask this because no clicking anywhere does anything at all.

    Did Firefox lock up? Freeze, slow down? Did you close it?
    We're sorry to hear that Firefox is crashing. In order to assist you better, please follow the steps below to provide us crash IDs to help us learn more about your crash.
    #Enter ''about:crashes'' in the Firefox address bar and press Enter. A Submitted Crash Reports list will appear, similar to the one shown below.
    #Copy the '''5''' most recent Report IDs that start with '''bp-''' and then go back to your forum question and paste that into the "Post a Reply" box.
    [[Image:aboutcrashesFx29|width=520]]
    <br><br>
    Thank you for your help!
    More information and further troubleshooting steps can be found in the [[Firefox crashes - Troubleshoot, prevent and get help fixing crashes]] article.

Maybe you are looking for