Capturing Alt Space in Solaris CDE

Hello.
I have this table in an application. I need to popup a menu when the user presses "Alt + Space", when a row has focus. Obviosly, one should use getInputMap(..), getActionMap(..) methods to register the desired action for this particular keystroke. It works fine in Windows, fvwm window manager. However, in Solaris CDE, the frame's menu pops up.
Question1: Is it possible to capture "Alt + Space" such that it works in CDE too?
I beleive that the application is not getting the event at all. When I press Alt, a keylistener in the table does get the event. However, the moment i press "Space", the frame's menu gets activated.
Question2: Is this order of event handling?
OS gets the event ---> gives it to Window Manager ---> gives it to application?
Any help would be appreciated.
Thanx
Prasanth.
PS: This is the relavant code snippet.
            final String ALT_SPACE_COMMAND = "ALT_SPACE";
            InputMap keyMap = getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
            // Alt + Space shows the popup.
            KeyStroke ALT_SPACE = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, KeyEvent.ALT_MASK);
            keyMap.put(ALT_SPACE, ALT_SPACE_COMMAND);
            actionMap.put(ALT_SPACE_COMMAND, new AbstractAction()
                     public void actionPerformed(ActionEvent e)
                          showPopupMenuForSelectedRow();
                });

You need to remove a default event from the space bar most probably, look on the api in the keymap class there is a predefined method there

Similar Messages

  • Need way to disable the Alt-Space menu

    We are using xulrunner with a some kiosk software. The kiosk software does not trap the Alt-Space. Does xulrunner provide a configuration option to disable or remap the alt-space to prevent the user from being able to minimize or close the browser?

    Mr Green wrote:Alt-f4 closes windows not sure what Window Manager you are using in Gnome for example you could edit keyboard shortcut
    I am using metacity. I wonder if there is a app specific way.  I don't want to disable all alt-f4.
    In fedora with metacity and their QEMU, alt-f4 will only close window in guest not the host window.

  • Get swap space on Solaris

    Hello
    there are different opinions on how to get the swap space on Solaris.
    some say: swap -s and the space= used + available
    others say swap -l (donno how they get the swap size)
    other say 'top' command
    others say using format command (in print sub-command)
    Could you please advise on how to get the swap size on a solaris machine?
    thanks

    mpfefer wrote:
    Hello
    there are different opinions on how to get the swap space on Solaris.That's because there is no single definition of 'swap'. So if you ask for 'swap space', it's going to be interpreted differently by different people.
    some say: swap -s and the space= used + availableThis shows you the allocation of the VM space. (Most uses of 'swap' by Solaris commands equate it with total virtual memory).
    others say swap -l (donno how they get the swap size)This shows you the allocation of all active swap files.
    other say 'top' commandThat can show you both RAM usage and VM/swap usage.
    others say using format command (in print sub-command)Format can show you disk partitioning information. Disk partitioning may or may not have any bearing on how you're using swap files. You'd need at least 'swap -l' information (and possibly other commands) to make comparisons. But then again, 'swap -l' is all you'd need in that case anyway.
    Could you please advise on how to get the swap size on a solaris machine?What do you mean by 'swap size'?
    Darren

  • How to trap ALT-Space key combo. ?

    Hi,
          Does anyone know how to trap Alt-space?  The user is probing a PC board and may want to keep their eyes on the work.  The space-bar makes a nice big "next" button, and the Alts on either side seem a natural choice for "back".  But, when I try to trap the Alt-key/space keyboard-event, the program nevers sees it.  Instead, a file dialog is displayed, as if Alt is trapped by the VI-menu-bar - which isn't even displayed!
    Cheers.
    When they give imbeciles handicap-parking, I won't have so far to walk!

    I believe Alt-Space is a keyboard shortcut in Windows XP to bring up the window menu for any app...so it's not just a LabVIEW thing. Further, it appears that Windows grabs that key combination before a LabVIEW event structure can get it.  I don't know any way around this behavior, since Windows appears to be taking matters into its own hands with certain key combinations.  My advice would be to use a different key combination for your app.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Capturing Alt key

    I know there have been similar threads in the past but I can't seem to find a decent definitive answer / workaround for the problem I'm facing.
    What I'm trying to do:
    capture ALT+SHIFT+something keyboard events. Pretty straightforward, right?
    Issue:
    When pressing ALT+SHIFT doesn't seem to ever shoot an event. The only combination that seems to work with ALT is CTRL+ALT+something, as pointed out here.
    Question:
    really? I've read that the browser catches some of the keyboard events, but this happens with the basic flash player too - maybe that catches events too? Would love to know if there is a solution that doesn't involve messing with JS.
    thank you!

    You can have a thread that constantly reads characters from System.in and when a character is read, do something :)
    public class ReadChars implements Runnable {
    public void run() {
    DataInputStream in = new DataInputStream(System.in);
    while(true) {
    try {
    char c = in.readChar();
    // do something with the char entered
    catch(IOException ioe) {
    // error handling
    Now you kick off this new thread from somewhere:
    public class Test {
    public static void main(String[] args) {
    ReadChars rc = new ReadChars();
    Thread t = new Thread(rc);
    t.start();
    Something like that.

  • Binding Alt - Space as escape in Screen

    I entered cat and pressed this key combo to get the appropriate escape sequence, which was '^[ ' (can I call that an escape sequence?! It doesn't have a backslash in...). Attempting to map this in .screenrc using
    escape "^[ "
    doesn't work though. *looks glum*
    I've also searched the termcap and terminfo man pages, and haven't found the escape sequence. Looking through the vt100 manual is taking forever. stty isn't any use, or at least I haven't figured out how I can deduce this info from it, despite trying several flags.
    - KD
    Last edited by KomodoDave (2007-04-27 01:09:00)

    pauldonnelly wrote:
    Well, screen wants only a single \ before an octal code. Also, 71 is the digit 9.
    EDIT: It looks like Alt would require you to send NUL followed by octal 71. Would you settle for ctrl+space? Putting "escape "^  " will accomplish that one.
    BTW, screen interprets ^[ as control+[.
    Ok, so I decided to go for Ctrl-Space since it's easy enough to switch ratpoison to use Alt-Space, fortunately.
    However, I can't get Ctrl-Space to work in Screen now!
    I tried putting
    escape "^ "
    in my .screenrc, and it doesn't work. I also tried these:
    escape "^\ "
    escape "^@"
    and neither works (the second I got from trying the key combo in cat).
    I know for certain the rest of my .screenrc is fine, and I had phrakture's bind of 'escape ^\\\' before, which worked perfectly.
    What on earth am I doing wrong?! lol.
    - KD
    Last edited by KomodoDave (2007-04-27 17:43:01)

  • Swap Space Usage Solaris 8

    Hello to all.
    I had an application (a C programme) running on Solaris 2.4. Recently i upgraded to Solaris 8.
    I recompiled this application (everything went smoothly). However i have a serious problem i
    cannot debug further. This application runs as a daemon. As the time passes it eats all my swap space
    available and never releases it. When i run out of swap space, the application crashes and has to be
    restarted.
    Any ideas what may be the problem ?

    Sounds like a memory leak.

  • How can i increase the swap space in solaris 11

    On Solaris 10 I use to select how much swap space i need while installing
    On Solaris 11 it does it automatically? if it does, how can increase the swap

    You can easily create a ZFS volume, see "zfs create -V" for ideas. Then using the swap command you can add that space to your swap. You can also delete swap space with "swap -d" even though that does not delete the underlying ZFS volume.

  • Swap Space on Solaris 8

    We just installed Solaris 8 and allocated 2GB of swap space on the first slice of the disk. When I issue a df -k command, this comes out.
    swap 3.5 GB /var/run
    swap 3.5 GB /tmp
    Is this normal? Where did it get the extra 1.5 GB that it allocated for swap? How about the other 3.5 GB where did it all come from? Can somebody shed light on this? Thanks.

    That's normal. To quote from the system administration guide:
    http://docs.sun.com
    �The Solaris environment uses the concept of virtual swap space, a layer between anonymous memory
    pages and the physical storage (or disk-backed swap space) that actually back these pages. A
    system's virtual swap space is equal to the sum of all its physical (disk-backed) swap space plus a
    portion of the currently available physical memory.�
    I.e. you probably have ~ 2GB memory in the machine + the 2 GB disk
    based swap you've configured gives ~3.5GB virtual swap.
    The two mount points /tmp and /var/run are two different filesystems
    that allocate space from the same virtual swap space. They share the
    swap resource, that is, if you put things in /tmp, not only the space
    available in /tmp but also the space available for /var/run decreases.

  • Swap space on Solaris 2.7

    Hola!
    Does anyone know how much swap space is required for WLS on a Solaris
    2.7 os?
    I'm having swap space errors.
    thanks

    This is not directly related to WLS. It dends on the amount of memory you wish
    to allocate to it and the amount of memory used by other processes on your
    system.
    Guy
    Christopher Opacki <[email protected]> wrote:
    Hola!
    Does anyone know how much swap space is required for WLS on a Solaris
    2.7 os?
    I'm having swap space errors.
    thanks

  • SWAP SPACE ON SOLARIS

    Hi all,
    I want to size of the swap space on test server for installing R12 on solaris 10. I searched on metalink but found most of the notes point to database server but not to oracle applications. Any formula,suggestion,previous bad experience plz
    Regards
    Taher

    Hi Taher,
    And i had really hard time installing ADI today. I did install ADI but was not able to configure. I copied the tnsnames.ora file from $TNS_ADMIN(8.0.6 O_H) to c:\orant\network\net80 and c:\orant\network\network. But it says could not connect to database.What is the complete error message?
    What is the ADI version?
    Did you run "ADI Diagnostic Wizard"? If yes, does it show any error/warning messages?
    And there is another directory orawin95, this also contains the network,net80 folders. Should i copy tnsnames.ora to this directory as well. And should i remove sqlnet.ora from these directories as well..You will have to copy the file to both directories. Btw, what does the tnsping return?
    Plz any step by step document for installing it. I followed the UVA (University of Virginia) documents and configured it properlu. Still the same problem.There are many documents available and I believe the installation of ADI is strightforward. However, you may see these documents.
    Note: 70669.1 - ADI: Troubleshooting Connection Problems with ADI/GLDI
    Note: 131070.1 - Guide to Troubleshooting ADI Connection Problems
    Regards,
    Hussein

  • How NOT to capture empty space in Java

    The small and very urgent problem I have now is related to function trim () which does not work in Java. The desirable result: If space (without text) is entered by the user by clicking space bar I want NO action in search after that. In other words, if user clicks "search" button after entering empty space nothing should happen.
    Right now after I put cursor into a search field (string) and click on space bar I got error: my WHERE clause> with LIKE stops working (FYI, - I Use delimiter (" ") in this search). I tried OR instead og LIKE - same result
    How should it work if only a space character is entered? We need to trim it out and treat it as nothing entered at all. String.trim() does not work here.
    Edited by: user12543361 on Feb 1, 2010 9:00 AM

    Giovanni,
    Thank you very much for your reply. Here is additional info on this problem.
    GUI screen has many separate fields to capture different search parameters.
    After user fills one or all of these parameters he clicks SEARCH button.
    Search has validation code. According to this code if particular field "xxx" has empty space - stop, do nothing. And I cannot use error message (customer requirement).
    According to requirements, search must include any field. For example, search finds "abc" parameter (field "yyy"), but it will go to the first empty parameter (field "xxx") and will read the code that "do nothing" - so the search will stop.
    I must have validation for empty filed "xxx" but I also must continue search using other GUI fields including the empty field "xxx" at the same time.
    Any ideas how to get out of this deadlock will be great
    Respectfully,
    Alex

  • IPS packet captures-disk space

    I have been doing packet captures on High and Medium events and in the IME there is no obvious way to delete old captures. They don't take up alot space but I wanted to know if there is a way to view the disk capacity on the IPS and how I can delete old capture files from the IPS.

    Hi Jason,
         The ip logging functionality stores the logs in a circular buffer, so there is no need (and no supported way) to delete/manage the old log files - they will be overwritten then new logs necessitate it. 
    All of the information on ip logging can be found here:
    http://www.cisco.com/en/US/docs/security/ips/7.0/configuration/guide/cli/cli_ip_logging.html#wp1030704
    Also, unless you have a specific need for full stream captures for all high/medium events, you can use the "Produce Verbose Alert" action instead of the ip logging actions to capture the offending packet with significantly less resource utilization per alert.
    -JT

  • Solaris CDE raises Fonts on JComponents

    Hi,
    I have an application written in swing. No matter what look and feel i use, when i run it on Solaris with CDE, all compents with text get "stretched" to be tall enough to hold two lines of text, even though there is only one line.
    so check boxes look something like this:
    text
    [x]
    with the text raised too high. the same effect happens with buttons that have icons.
    its mostly just really ugly, but in some components, like JTable, the text is shifted up, but the table cell is not stretched, so the top half of the text gets cut off.
    any help would be greatly appreciated!
    -jl

    my collegue has just informed me that it only happens when the application is launched over X11, with X11 server (the computer viewer the application) running on a solaris machine. It does not happen if you run it locally on a solaris machine.
    and its not just on CDE.
    again, any help would be greatly appreciated!
    -jl

  • Newb Question - Running out of disk space after Solaris 10 install (x86)

    After installing Solaris 10 on my x86 environment on a 80GB drive, I noticed I'm practically out of disk space. The space seems to be allocated in \devices\pci@0,0 and \devices\isa. There are several fd@8,0:a like devices in ISA at are a ridicuous number (ie. 8589934592.0GB) Block Device. Can someone give background on what is going on here or what I need to do to fix it?
    Thanks.
    -Vinny_C

    Well - in typical newbie fashion - I actually was out of space. Turns out that during the install I did not allocate enough to the \ root install folder as all the space was in my home mount.
    Cheers!

Maybe you are looking for

  • My ipad  wont let me download java it keep saying unable

     

  • Need help on designing downstream data sync with OLite

    We are trying to build a disconnected desktop application for CRM Sales Application. For Data Synchronization, we would like to use TRS (Transaction Replay Service) for upstream sync (data from client to enterprise server). For downstream sync (data

  • Fabricated ID numbers keep showing up

    OK, in my long, very long quest to understand networking and it's quirks, I am again asking what do these entries mean. Below are outputs of a Terminal request to list all network activity. The only machine code identy that's mine is"00:14:51:ec:e9:0

  • How do I get bonjour to work to allow discovery of printers from print server

    Specs: print server is windows 7 windows users are able to access the the list of printers via \\s-printer-01\ mac clients are using 10.8.3 we have been adding printers manually through ip and using generic post script drivers thus far. so far so goo

  • Unable to set trace level

    Hello, I have a problem with the trace level (by trace level I mean this one: http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/tracing_logging.html) in the Java Console when deploying a Java Applet. With "Next Generation Java Plu